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

Adjust test to use runner.yaml file over the symlink #6259

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Oct 5, 2024

This was extracted from #6202 where I'm working on getting pants to run our tests with pytest.

The runner.yaml symlink is not registered in pants. So far, the test in this PR is the first file I've found that accesses that symlink. So, this PR makes the test just use the actual file instead of the symlink.

I put this commit in it's own PR because it doesn't fit with any of the other changes, and to see if anyone knows of a reason for the runner.yaml symlinks. The symlinks seem pointless to me, so I don't want to rely on them. Is there anything else that relies on these symlinks?

@pull-request-size pull-request-size bot added the size/XS PR that changes 0-9 lines. Quick fix/merge. label Oct 5, 2024
@cognifloyd cognifloyd added this to the pants milestone Oct 6, 2024
@cognifloyd cognifloyd self-assigned this Oct 6, 2024
The symlink is not registered in pants. So far, this is the first
time something has tried to access that file. So, just use the actual
file instead of the symlink
@cognifloyd cognifloyd marked this pull request as ready for review October 8, 2024 14:26
@cognifloyd cognifloyd changed the title do not rely on the runner.yaml symlink in tests Adjust test to use runner.yaml file over the symlink Oct 8, 2024
@cognifloyd cognifloyd merged commit d8a9c97 into master Oct 8, 2024
29 checks passed
@cognifloyd cognifloyd deleted the runner-yaml-symlink branch October 8, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pantsbuild runners size/XS PR that changes 0-9 lines. Quick fix/merge. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants