Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Conversation

@matt-codecov
Copy link
Contributor

@matt-codecov matt-codecov commented Feb 19, 2025

needed for codecov/umbrella#4

we bindmount our local worker into the docker container. currently our local worker is the actual git repo, so the git invocation works. in umbrella, it's not the actual git repo, so the command fails

apparently this is all i need to change...?

@matt-codecov matt-codecov marked this pull request as draft February 19, 2025 23:59
@codecov
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.26%. Comparing base (4229dee) to head (46b91bb).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1097   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         454      454           
  Lines       37362    37362           
=======================================
  Hits        36341    36341           
  Misses       1021     1021           
Flag Coverage Δ
integration 43.14% <ø> (ø)
unit 89.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@matt-codecov matt-codecov requested a review from a team February 20, 2025 02:41
@matt-codecov matt-codecov marked this pull request as ready for review February 20, 2025 02:41
Copy link
Contributor

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

First time I hear about this setting, so I looked it up:

These config entries specify Git-tracked directories that are considered safe even if they are owned by someone other than the current user. By default, Git will refuse to even parse a Git config of a repository owned by someone else, let alone run its hooks […]

This makes total sense. But I also wonder why we need git access at all within the container?

Do you know what would happen if we just remove this, along with the apt-get install git above?

@matt-codecov
Copy link
Contributor Author

This makes total sense. But I also wonder why we need git access at all within the container?

until recently (codecov/gha-workflows#42) we invoked the CLI inside the container which uses git for a few things. we no longer do that, but i tried to delete this line and it fatally failed. honestly don't know why but i am reasonably confident that it doesn't matter so i ignore the failure here

in umbrella i'd like to try using a repo-wide lockfile and sharing more docker stuff, so was gonna punt until then to figure this out

@matt-codecov matt-codecov added this pull request to the merge queue Feb 20, 2025
Merged via the queue into main with commit d7b53d8 Feb 20, 2025
29 checks passed
@matt-codecov matt-codecov deleted the pr1097 branch February 20, 2025 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants