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

Fix Codecov git directory issue #659

Closed
wants to merge 1 commit into from
Closed

Fix Codecov git directory issue #659

wants to merge 1 commit into from

Conversation

jounathaen
Copy link
Member

This hotfixes an issue with self-hosted git runners not exporting $HOME. (e.g., https://github.com/hermit-os/uhyve/actions/runs/8247074385/job/22554464362#step:8:28). In the long run, it would probably be better to containerize these jobs.

Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

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

In the long run, it would probably be better to containerize these jobs.

How would you containerize this? This also requires KVM, which might make this difficult.

Would a proper solution not be to fix $HOME on our runner?

@@ -147,3 +149,5 @@ jobs:
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
env:
HOME: "/root"
Copy link
Member

Choose a reason for hiding this comment

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

Nit: this is missing a newline.

Comment on lines +132 to +133
- name: Test
run: echo $HOME && cd ~ && pwd && cd -
Copy link
Member

Choose a reason for hiding this comment

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

We should either remove this or give it a more descriptive name.

@mkroening mkroening deleted the codecov branch March 26, 2024 13:12
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.

2 participants