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 broken MacOS and Ubuntu18.04 runs. #4517

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Fix broken MacOS and Ubuntu18.04 runs. #4517

merged 4 commits into from
Mar 12, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Mar 10, 2024

Hotfixes to make the CI tests pass again. If anyone has a better idea on how to deal with the recent MacOS failures, please let me know. Example:
https://github.com/p4lang/p4c/actions/runs/8238983424/job/22531194158?pr=4517#step:6:401

@fruffy fruffy added run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run. run-validation Use this tag to trigger a Validation CI run. run-sanitizer Use this tag to run a Clang+Sanitzers CI run. infrastructure Topics related to code style and build and test infrastructure. labels Mar 10, 2024
@fruffy fruffy force-pushed the fruffy/mac_os_fixes branch 6 times, most recently from 0c19ee6 to aa3f5b8 Compare March 10, 2024 22:32
@fruffy fruffy force-pushed the fruffy/mac_os_fixes branch 2 times, most recently from da61e65 to 756d453 Compare March 11, 2024 20:01
@fruffy fruffy marked this pull request as ready for review March 11, 2024 20:02
@fruffy fruffy requested review from asl and grg March 11, 2024 20:07
brew_install ${package}
# FIXME: || true should not be needed but because boost@1.84 pulls in python@3.12, which fails
# to install we need to ignore the error.
brew_install ${package} || true
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know which package has /usr/local/bin/2to3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it is the Python package.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have tried a couple things, including removing 2to3 but there are more files it conflicts with. Even when you install python@3.12 beforehand, the boost installation tries to pull it in again and fails. Maybe there is a convenient flag to deal with that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like known issue: actions/runner-images#4020 Some solutions are quite harsh: Gelmo/warfork-qfusion@79f3dd0

Copy link
Contributor

@asl asl left a comment

Choose a reason for hiding this comment

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

Sadly we have to do this...

@fruffy fruffy added this pull request to the merge queue Mar 12, 2024
Merged via the queue into main with commit b2c29a5 Mar 12, 2024
17 checks passed
@fruffy fruffy deleted the fruffy/mac_os_fixes branch March 12, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Topics related to code style and build and test infrastructure. run-sanitizer Use this tag to run a Clang+Sanitzers CI run. run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run. run-validation Use this tag to trigger a Validation CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants