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

rust 1.74.0 #154526

Merged
merged 2 commits into from
Nov 19, 2023
Merged

rust 1.74.0 #154526

merged 2 commits into from
Nov 19, 2023

Conversation

ZhongRuoyu
Copy link
Member

@ZhongRuoyu ZhongRuoyu commented Nov 16, 2023

Created with brew bump-formula-pr.

  • resource blocks have been checked for updates.

@github-actions github-actions bot added bump-formula-pr PR was created using `brew bump-formula-pr` CI-build-dependents-from-source Pass --build-dependents-from-source to brew test-bot. long build Set a long timeout for formula testing labels Nov 16, 2023
@Bo98
Copy link
Member

Bo98 commented Nov 16, 2023

Requires 10.12 as of this release so maybe worth marking as depends_on macos: :sierra given how popular Rust is: https://blog.rust-lang.org/2023/09/25/Increasing-Apple-Version-Requirements.html

@ZhongRuoyu ZhongRuoyu force-pushed the bump-rust-1.74.0 branch 2 times, most recently from 0e31fc3 to 3de4e66 Compare November 16, 2023 14:19
@ZhongRuoyu ZhongRuoyu added CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. labels Nov 16, 2023
@chenrui333 chenrui333 mentioned this pull request Nov 16, 2023
@chenrui333

This comment was marked as resolved.

@Bo98
Copy link
Member

Bo98 commented Nov 16, 2023

Looks like it regressed in rust-lang/rust@bb8c497.

Also looks like it might been secretly fixed today in among this mega commit: rust-lang/rust@db3e2ba#diff-5a1e05f2688d271039171a547d407d0c8a96715ee64d35562fc76b4c9a874303L595 (see the small change to the src/bootstrap/src/core/build_steps/compile.rs).

It isn't clear to me why macOS 12 was always different though. Pretty difficult to pick through the build system, but I've not found anything obvious yet.

@ZhongRuoyu
Copy link
Member Author

Thanks @Bo98! Indeed that seems to be the issue. Let's see if it builds with the compile.rs patch...

@Porkepix
Copy link
Contributor

Thanks @Bo98! Indeed that seems to be the issue. Let's see if it builds with the compile.rs patch...

If it only fails to build on 12-arm64, shouldn't the patch only be applied there? (Don't know if it's possible nor if it's what should be done, can't judge what the patch and original commit changed)

@ZhongRuoyu
Copy link
Member Author

If it only fails to build on 12-arm64, shouldn't the patch only be applied there?

It's possible but either should work; the patch should have no impact on the other platforms since the error didn't occur.

@Bo98
Copy link
Member

Bo98 commented Nov 16, 2023

If it only fails to build on 12-arm64, shouldn't the patch only be applied there?

Speaking generally:

I say to apply the patch everywhere. If a patch is for some reason considered unsafe to apply everywhere, then such a patch should probably not be included at all.

In this case, upstream have patched it for all, unconditionally, so we'll trust that.

@chenrui333
Copy link
Member

looks good so far 🤞

@Porkepix
Copy link
Contributor

It's curious how it have so few dependents to test on Linux compared to mac? Less than ten, finished within less than 10 minutes while 16H later it still have work to do on ARM jobs. Is the Linux job not considering CI-build-dependents-from-source?

Also, question: considering it does anyway the job of building these formulas when this tag is present, why not have those formulas benefiting of a compilation with the last compiler, to get rid of potential bugs, security issues and so on? This tag implies the build is happening anyway.

@Bo98
Copy link
Member

Bo98 commented Nov 17, 2023

Is the Linux job not considering CI-build-dependents-from-source?

No it doesn't. I don't remember the historical reasons for this. It will do any Linux-only formulae however.

That check is largely for API compatiblity checks so it might be worth making it split those among runners.

Also, question: considering it does anyway the job of building these formulas when this tag is present, why not have those formulas benefiting of a compilation with the last compiler, to get rid of potential bugs, security issues and so on

This is probably also reasonable. Or at least for Rust & Go specifically.

Though it would also mean that it would have to test the dependents of those formulae too so it will make it even longer.

@Porkepix
Copy link
Contributor

Is the Linux job not considering CI-build-dependents-from-source?

No it doesn't. I don't remember the historical reasons for this. It will do any Linux-only formulae however.

That check is largely for API compatiblity checks so it might be worth making it split those among runners.

Also, question: considering it does anyway the job of building these formulas when this tag is present, why not have those formulas benefiting of a compilation with the last compiler, to get rid of potential bugs, security issues and so on

This is probably also reasonable. Or at least for Rust & Go specifically.

Though it would also mean that it would have to test the dependents of those formulae too so it will make it even longer.

I'd say any compiled language actually, so gcc & llvm for a couple of other formulas languages, and all the less popular ones that either doesn't come to mind either I'm not sure if they're compiled or interpreted?

But yeah if this check is split among the runners then that would also mean not everything for every platform would be built. It already doesn't build most of them for Linux looking at what you said.

@github-actions github-actions bot removed the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Nov 19, 2023
@ZhongRuoyu
Copy link
Member Author

Source build failures

  • gping (logs): error[E0283]: type annotations needed
  • (x86_64) gptline (logs): src/libImaging/Jpeg2K.h:11:10: fatal error: 'openjpeg.h' file not found
  • leaf-proxy (logs): error[E0425]: cannot find value `VERSION_3_2_0` in crate `protobuf`
  • solana (logs): error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
  • tremor-runtime (logs): error: no rules expected the token `:`

Pre-existing issues

Checksum mismatch

Transient failures

  • (14-arm64) boringtun (logs): Timeout::Error: execution expired
  • (12-x86_64) tcl-tk (logs): Error: bad URI(is not URI?): "https://downloads.sourceforge.net/project/incrtcl/[incr%20Tcl_Tk]-4-source/itk%204.1.0/itk4.1.0.tar.gz?download&failedmirror=deac-riga.dl.sourceforge.net"

@ZhongRuoyu
Copy link
Member Author

Failures are non-blocking; merging now :shipit:

@chenrui333
Copy link
Member

I will followup with those failures (after all, rust is just build dependency for many formulae)

Copy link
Contributor

@chenrui333 chenrui333 mentioned this pull request Nov 19, 2023
@chenrui333 chenrui333 mentioned this pull request Nov 19, 2023
@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 Nov 19, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue Nov 19, 2023
Merged via the queue into Homebrew:master with commit 6eb2789 Nov 19, 2023
12 checks passed
This was referenced Nov 19, 2023
@ZhongRuoyu ZhongRuoyu deleted the bump-rust-1.74.0 branch November 19, 2023 16:04
@chenrui333 chenrui333 mentioned this pull request Nov 20, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Dec 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-build-dependents-from-source Pass --build-dependents-from-source to brew test-bot. 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. long build Set a long timeout for formula testing outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants