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

Update GitCheckoutTask, so it re-runs if the repo is dirty #3712

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

adam-enko
Copy link
Member

@adam-enko adam-enko commented Jul 29, 2024

Currently, GitCheckoutTask might not re-run if the checked-out repository is dirty. This can cause invalid test results.

So, update GitCheckoutTask to re-run if the repo does not exist, is invalid, or contains any modifications.

^OSIP-355

@adam-enko adam-enko added the infrastructure Everything related to builds tools, CI configurations and project tooling label Jul 29, 2024
Currently, GitCheckoutTask might not re-run if the checked-out repository is dirty. This can cause invalid test results.

So, update GitCheckoutTask to re-run if the repo does not exist, is invalid, or contains any modifications.
@adam-enko adam-enko force-pushed the adam/feat/OSIP-355/update-GitCheckoutTask branch from f05f310 to 53758fb Compare July 29, 2024 19:01
- return a result with a more detailed message
- add more logging
- when checking if a repo is valid, use the `.git` directory
- set `parameters.expectedCommitId = commitId`
@adam-enko adam-enko requested a review from Tapchicoma July 30, 2024 09:04
@adam-enko adam-enko merged commit 8f386ba into master Jul 30, 2024
13 checks passed
@adam-enko adam-enko deleted the adam/feat/OSIP-355/update-GitCheckoutTask branch July 30, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Everything related to builds tools, CI configurations and project tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants