-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix(repo-server): completely clean up Git working directory (#3683) #13001
Conversation
e61335e
to
9c8e218
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #13001 +/- ##
==========================================
- Coverage 49.17% 49.17% -0.01%
==========================================
Files 248 248
Lines 42872 42872
==========================================
- Hits 21084 21081 -3
- Misses 19687 19689 +2
- Partials 2101 2102 +1
☔ View full report in Codecov by Sentry. |
Looks good! Would it be possible to add an E2E test that exercises that this works as intended? |
1f6d7b6
to
7b5b290
Compare
Hello @blakepettersson, it’s done 😉 Adding this test showed me that my PR wasn’t correct, as |
7b5b290
to
07dd9b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM at least, good stuff! Will need to add a few more eyes on this though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good!!
…nt with runCmd() one Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
In some cases, for example when a Git submodule wasn’t present anymore in a Git revision, the repo-server didn’t completely clean up its Git working directory. Fixes argoproj#3683 Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks @yann-soubeyrand!
Seems the fix has not released in version 2.5 / 2.6 / 2.7 yet Keen to see if we can have this fix release for v2.5 as part of the upgrade path from v2.4 |
I don’t know if I can run these commands, but just trying 😉 /cherry-pick release-2.7 |
Seems not working... haha Just checked the new release for both 2.7 / 2.6 / 2.5, not including these changes as well |
Hi @crenshaw-dev, I can’t issue cherry-pick commands myself, could you do it please? Or tell me if I should open cherry-pick PRs instead. |
I believe this is the fix required to get Gitlab to sync properly. Any idea if it will be in 2.8? I just updated to 2.7.9 a bit ago and my Gitlab app has an error |
It should be @ldacey, try out the latest 2.8-rc and see if that helps. |
…#3683) (argoproj#13001) * refactor(util/git/client): make runCredentialedCmd() signature coherent with runCmd() one Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com> * fix(repo-server): completely clean up Git working directory In some cases, for example when a Git submodule wasn’t present anymore in a Git revision, the repo-server didn’t completely clean up its Git working directory. Fixes argoproj#3683 Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com> --------- Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
…#3683) (argoproj#13001) * refactor(util/git/client): make runCredentialedCmd() signature coherent with runCmd() one Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com> * fix(repo-server): completely clean up Git working directory In some cases, for example when a Git submodule wasn’t present anymore in a Git revision, the repo-server didn’t completely clean up its Git working directory. Fixes argoproj#3683 Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com> --------- Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
In some cases, for example when a Git submodule wasn’t present anymore in a Git revision, the repo-server didn’t completely clean up its Git working directory.
Fixes #3683
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
Please see Contribution FAQs if you have questions about your pull-request.