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

ci: add re-test functionality to staging workflow #134

Merged
merged 1 commit into from
May 6, 2024

Conversation

zvigrinberg
Copy link
Collaborator

@zvigrinberg zvigrinberg commented May 6, 2024

Description

Add re-test functionality to staging workflow - using re-test github action

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

In case head branch ( feature/topic/hotfix - whichever ) forked from the base branch, and before merging it back, base branch commits tree advanced with additional commits ( merged from different branches or pushed directly - whichever ), in such case, if the head branch is not rebased on top of the base branch, there is a chance ( not big chance but still) that tests that were passed on PR workflow will fail after head branch will be merged to base, in this case, i want to identify such situations during the staging workflow, but still, i don't want to run all the time tests before publishing the npm package, but i want to identify if a re-test is needed, so probably most of the times re-test will not be required , and then there is no point to run the UT + IT Tests in staging , but in few times that re-test is needed in staging( before publishing the package), we'll run the tests. That way i'll guarantee that no broken packages will be staged.
I've noticed that checkout action of PR workflow, by default ( being used there - the action checkout, checking out the base branch - main, and merged the Head into it), but still in such case, if the PR workflow executed successfully , both tests suites passed flawlessly , still the PR need to be reviewed, approved and merged before the staging workflow will run, these lifecycle actions of PR might take couple of days, during this time, base branch can advance with new commits containing new logic.
In order to identify all of these use cases, we'll use a dedicated action that capable of identifying precisely whenever re-test is needed.

@zvigrinberg zvigrinberg merged commit 726cebd into main May 6, 2024
5 checks passed
@zvigrinberg zvigrinberg deleted the feature/add-retest-to-staging-wf branch May 6, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant