Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Test System integration #369

Merged
merged 7 commits into from
Oct 22, 2024
Merged

E2E Test System integration #369

merged 7 commits into from
Oct 22, 2024

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented Oct 21, 2024

Adds a CircleCI config to kick off end-to-end platform integration tests and report results back, passing in the branch ref of the deno-slack-sdk as a parameter into the tests.

This should execute on both PRs as well as on main, and pass the correct branch in either case.

@filmaj filmaj self-assigned this Oct 21, 2024
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.54%. Comparing base (834464d) to head (47fa569).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #369   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files          67       67           
  Lines        2742     2742           
  Branches      148      148           
=======================================
  Hits         2702     2702           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@filmaj filmaj marked this pull request as ready for review October 21, 2024 19:54
@filmaj filmaj requested a review from a team as a code owner October 21, 2024 19:54
@filmaj filmaj added the semver:patch requires a patch version number bump label Oct 21, 2024
Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an expert in this but it looks good 💯

Left some small comments

command: |
E2E_RESULT="{}"
E2E_STATUS="running"
while [[ $E2E_STATUS != "failed" && $E2E_STATUS != "canceled" && $E2E_STATUS != "success" ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the other states 🤔
Any risk of an endless loop? or waiting for a timeout when the process could fail fast

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you head to the CircleCI API ref and expand the response schema:

Screenshot 2024-10-21 at 5 12 29 PM

You bring up a good point: not just that this should probably handle all the states, but also one problem I encountered while testing this. If the token is incorrect, E2E_STATUS will end up being set to null - and that could result in an infinite loop. See for example this run.

E2E_STATUS="running"
while [[ $E2E_STATUS != "failed" && $E2E_STATUS != "canceled" && $E2E_STATUS != "success" ]]
do
sleep 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reasoning behind 10?

Also adding a specifier suffix can make it clearer for new bash devs

Suggested change
sleep 10
sleep 10s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow didn't know you could do that! Great suggestion. As for 10 seconds: no specific reason. Our tests take a minimum of 1min to run. We could probably bump this delay up to 30s without a huge impact to us and be slightly nicer to our friends at CircleCI.

Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@filmaj filmaj merged commit 2f2196e into main Oct 22, 2024
12 checks passed
@filmaj filmaj deleted the devxp-test branch October 22, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch requires a patch version number bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants