If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
DrahtBot added the label
Tests
on Dec 14, 2023
ismaelsadeeq
commented at 11:55 am on December 14, 2023:
member
utACKf3800ba21914dc91174c096291690847c1b47a92
hebasto marked this as a draft
on Dec 14, 2023
ci: Set `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` to avoid failures
Homebrew attempts to check for outdated dependents or those with broken
linkage. Such behavior might lead to failures when Homebrew updates them
on old macOS images.
This change prevents such behavior.
43c3246af7
hebasto force-pushed
on Dec 14, 2023
hebasto renamed this:
ci: Set `HOMEBREW_NO_AUTO_UPDATE` to avoid unrelated failures
ci: Set `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` to avoid unrelated failures
on Dec 14, 2023
hebasto
commented at 12:23 pm on December 14, 2023:
member
I still don’t really understand this fix, and assume it could lead to obscure breakage in the future, i.e a missing dep, or a dep trying to use an outdated sub dep. (it also just makes our CI further differ from nomal macOS / dev setups).
I don’t really understand how a new image being released, causes failures with the previous image, especially when, the image you’re linking to above (20231204), was never even released? See: https://github.com/actions/runner-images/pull/8960
The release was cancelled, the badge was updated incorrectly - we are working to update the status and eliminate the causes of this “event” itself.
hebasto
commented at 3:11 pm on December 14, 2023:
member
… so I don’t understand how anything could be using this image, or how it’s causing failures.
This PR does nothing about new 20231204 release, because the failure was caused by the older 20231025 one.
I think that the GHA image release process issues are irrelevant to this PR change.
I still don’t really understand this fix, and assume it could lead to obscure breakage in the future, i.e a missing dep, or a dep trying to use an outdated sub dep. (it also just makes our CI further differ from nomal macOS / dev setups).
Our dependencies are installed explicitly. ~We do not use any of other tools preinstalled via Homebrew. Why should we care about their dependencies?~
hebasto
commented at 3:28 pm on December 14, 2023:
member
I still don’t really understand this fix
This fix makes Homebrew skip upgrading the aws-sam-cli package that we do not use.
fanquake
commented at 4:21 pm on December 14, 2023:
member
We do not use any of other tools preinstalled via Homebrew.
Don’t we use at least git, curl and Python? If any those are probably less-prone to breakage.
hebasto
commented at 4:54 pm on December 14, 2023:
member
Don’t we use at least git, curl and Python?
Right. Here is the brew list -1 command output for the image version 20231025.2:
As CI does not suffer from unrelated failures now, there is time to investigate underlying issue more thoroughly and suggest a more robust alternative solution.
fanquake
commented at 12:07 pm on December 15, 2023:
member
This, or some other solution will also need to be backported to 26.x. I think a simpler solution would have just been to uninstall aws-sam-cli as the first step. Which should solve the problem, have no other side-effects, and retain the speedup, given it’s related to upgrading it’s deps.
maflcko
commented at 12:10 pm on December 15, 2023:
member
Won’t the other dependencies also be upgraded and thus slow down the CI?
fanquake
commented at 12:16 pm on December 15, 2023:
member
I don’t know. However If the issue was sub dependencies (Fetching dependencies for aws-sam-cli: python-setuptools, python-attrs, python-dateutil, python-networkx, python-pbr, python-mpmath, python-sympy, python-urllib3, ca-certificates, cfn-lint, pygments, python-click, python-markupsafe, python-jinja, python-certifi, python-charset-normalizer, python-idna, python-requests, cookiecutter and python-cryptography) of something being upgraded (aws-sam-cli), also being upgraded, if (aws-sam-cli) is no-longer installed / being upgraded, I wouldn’t think it’s dependencies should be either?
fanquake
commented at 12:32 pm on December 15, 2023:
member
This fix makes Homebrew skip upgrading the aws-sam-cli package that we do not use.
Ok the issue here also isn’t specifically related to aws-sam-cli, because upgrading any Python will fail, due to symlinks not being able to be written.
fanquake
commented at 12:39 pm on December 15, 2023:
member
Looks like ultimately, we can’t avoid the failure by removing packages we don’t use.
The root cause, is that qt@5 has a dependency on python@3.11, and after we install qt@5, brew will try and upgrade python@3.11, which will then fails:
0==> Upgrading python@3.11
1 3.11.6 -> 3.11.6_1
2 3==> Pouring python@3.11--3.11.6_1.ventura.bottle.tar.gz
4Error: The `brew link` step did not complete successfully
5The formula built, but is not symlinked into /usr/local
6Could not symlink bin/2to3
7Target /usr/local/bin/2to3
8already exists. You may want to remove it:
9 rm '/usr/local/bin/2to3'10To force the link and overwrite all conflicting files:
11 brew link --overwrite python@3.11
12To list all files that would be deleted:
13 brew link --overwrite --dry-run python@3.11
14Possible conflicting files are:
15/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3
16/usr/local/bin/2to3-3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/2to3-3.11
17/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
18/usr/local/bin/idle3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/idle3.11
19/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
20/usr/local/bin/pydoc3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3.11
21/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
22/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3-config
23/usr/local/bin/python3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
24/usr/local/bin/python3.11-config -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11-config
fanquake referenced this in commit
6201111562
on Dec 15, 2023
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-24 09:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me