fix: improve handling of repository clones in the .remote folder#1393
fix: improve handling of repository clones in the .remote folder#1393
Conversation
👷 Deploy Preview for endearing-brigadeiros-63f9d0 processing.
|
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (79.10%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1393 +/- ##
==========================================
- Coverage 81.34% 81.19% -0.15%
==========================================
Files 65 66 +1
Lines 4648 4670 +22
Branches 792 797 +5
==========================================
+ Hits 3781 3792 +11
- Misses 852 863 +11
Partials 15 15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jescalada
left a comment
There was a problem hiding this comment.
LGTM after fixing up Fabio's comment! 👍🏼
I think the Architecture doc might need some tweaking after this. We could go ahead and merge #1391 and then update a few things on docs/Architecture.md:
- The
clearBareClonedescription and potential error - The Action Chains section to show the
clearBareCloneas a cleanup step rather than an intermediate one - The
pullRemoteentry should mention that errors may be thrown on concurrent requests
|
CI failed with: @jescalada @coopernetes CI failed with: Is the matrix unnecessarily large and should we be authenticating? |
|
@kriswest I think this is due to running the build CI on several PRs/branches at the same time. We may want to address the flakiness (probably fails around 5-10% of the time at the moment). Maybe authenticating is the easiest fix? The - name: Log in to Docker Hub
if: github.repository == 'finos/git-proxy'
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: finos
password: ${{ secrets.DOCKER_PASSWORD }} |
|
I also note the e2e tests depend on test-repo in @coopernetes namespace: git-proxy/tests/e2e/push.test.ts Line 271 in 2452f10 Should we fix that? Its a real repo: https://github.com/coopernetes/test-repo |
|
The names are real but the repos themselves are fake created with the local git server. git-proxy/localgit/init-repos.sh Lines 57 to 87 in 6fb63d0 The e2e tests are meant to be completely self contained with no external dependencies (other than the image pulls which it sounds like we need a fix in the workflow to resolve flakiness). |
Upto you on merge order - can either merge this now and update the doc or merge the doc and then update this... You may be quicker on updating the doc as we've got some deployments happening today which will delay egress checks this end. I'll go add some suggestions to the doc in the meantime. |
|
@kriswest Suggestions on the doc are much appreciated! 😃 I'll go ahead and merge that PR afterwards. |
Thanks for the clarification @coopernetes - I'll try and read up on how that works as I haven't had a chance yet (I've just tried and failed to run it locally, no idea yet why I can't run it). Could we make ir more intuitive by tweaking the URL? e.g. coopernetes -> localGitServer ? |
Yep, no issue there. The original rationale was that these tests could work on a live Git Proxy server. It worked somewhat but wasn't fully tested in a variety of environments. To make it clear, we can replace those references with names that clearly indicate they're not live/real public repositories and they are testing use only. |
resolves #1386
Resolves a number of issues with .remote folder handling (git clones used for diffs), by: