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

Stop removing GCC on MacOS in CI #2321

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Stop removing GCC on MacOS in CI #2321

merged 2 commits into from
Jun 17, 2024

Conversation

petervdonovan
Copy link
Collaborator

The LSP tests are error prone because they test interactions with external tools. They broke because correct behavior depends on how the external tools are made available on the system.

A robust solution would involve either removing the feature that the LSP tests are designed to test, or dockerizing the LSP tests. However, this PR provides a quick stopgap solution instead so that we can avoid having to force an immediate long-term decision.

@petervdonovan petervdonovan added ci Continuous integration build system exclude Exclude from change log labels Jun 16, 2024
This is what happens in CI:
> Run sudo rm -f $(which gcc)
rm: /usr/bin/gcc: Read-only file system

This seems to indicate that there is no way to move or delete the GCC
binary, and it will not work to change the PATH to not include /usr/bin
because that will break a lot of things. Therefore, there probably is
no easy way to make GCC invisible on the system, so if we want a quick
fix, then we should give up exercising that code path in CI. The code
path under test is already difficult to maintain anyway and works on a
"best effort" basis.
@petervdonovan
Copy link
Collaborator Author

My latest commit message explains why I decided to give up on this aspect of the workflow run. I can try harder if we think it is important to do so.

@petervdonovan petervdonovan changed the title Try a more brute-force approach to removing GCC on MacOS in CI Stop removing GCC on MacOS in CI Jun 16, 2024
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

Works for me -- thanks for fix and the explanation!

@lhstrh lhstrh added this pull request to the merge queue Jun 17, 2024
Merged via the queue into master with commit 95b9465 Jun 17, 2024
26 checks passed
@lhstrh lhstrh deleted the fix-uninstall-gcc-macos branch June 17, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system ci Continuous integration exclude Exclude from change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants