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

bash: depend on brewed ncurses #206855

Merged
merged 2 commits into from
Feb 10, 2025
Merged

bash: depend on brewed ncurses #206855

merged 2 commits into from
Feb 10, 2025

Conversation

fxcoudert
Copy link
Member

Fixes #158667
Fixes #206736

We already decided to do this, but the PR failed because of CI misuse of brew bash: #162819

@fxcoudert fxcoudert requested review from MikeMcQuaid and a team as code owners February 7, 2025 13:27
@github-actions github-actions bot added workflows PR modifies GitHub Actions workflow files automerge-skip `brew pr-automerge` will skip this pull request labels Feb 7, 2025
@fxcoudert fxcoudert added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Feb 7, 2025
@fxcoudert
Copy link
Member Author

First try failed with:

A job completed hook has been configured by the self-hosted runner administrator
Run '/Users/brew/job_completed.sh'
  shell: /opt/homebrew/bin/bash --noprofile --norc -e -o pipefail {0}
dyld[21128]: Library not loaded: /opt/homebrew/opt/ncurses/lib/libncursesw.6.dylib
  Referenced from: <D3DFE079-9820-3A3C-8A2C-C036AFFAE3A4> /opt/homebrew/Cellar/bash/5.2.37/bin/bash
  Reason: tried: '/opt/homebrew/opt/ncurses/lib/libncursesw.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ncurses/lib/libncursesw.6.dylib' (no such file), '/opt/homebrew/opt/ncurses/lib/libncursesw.6.dylib' (no such file)

Trying harder to enforce use of system bash

@fxcoudert
Copy link
Member Author

Hum, still not enough. Maybe @Bo98 has an idea.

@Bo98
Copy link
Member

Bo98 commented Feb 7, 2025

Certain parts of GitHub Actions uses the first bash on the path and we determined last time that it was impossible to avoid that behaviour.

We avoided the issue before by having no dependencies. What we could do instead is add special casing to remove brewed bash in job cleanup.

@cho-m
Copy link
Member

cho-m commented Feb 8, 2025

What we could do instead is add special casing to remove brewed bash in job cleanup.

Sounds reasonable.

A possible alternative is modifying GITHUB_PATH during post.sh (perhaps echo /bin >>"$GITHUB_PATH"? didn't find way to remove paths)

ZhongRuoyu added a commit to Homebrew/homebrew-test-bot that referenced this pull request Feb 8, 2025
ZhongRuoyu added a commit to Homebrew/homebrew-test-bot that referenced this pull request Feb 8, 2025
ZhongRuoyu added a commit to Homebrew/homebrew-test-bot that referenced this pull request Feb 8, 2025
Copy link
Member

@ZhongRuoyu ZhongRuoyu left a comment

Choose a reason for hiding this comment

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

CI is now unblocked and this is good to :shipit:.

I believe the workflow changes here are no longer necessary so I suggest dropping those to maintain consistency.

@github-actions github-actions bot removed the automerge-skip `brew pr-automerge` will skip this pull request label Feb 10, 2025
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Feb 10, 2025
@BrewTestBot BrewTestBot added this pull request to the merge queue Feb 10, 2025
Merged via the queue into master with commit 4ce4a5b Feb 10, 2025
15 checks passed
@BrewTestBot BrewTestBot deleted the bash branch February 10, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. workflows PR modifies GitHub Actions workflow files
Projects
None yet
7 participants