Skip to content

fix(ci): reactivate Darwin x86_64 build in Hydra CI #2538

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

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

jpraynaud
Copy link
Member

@jpraynaud jpraynaud commented Jun 2, 2025

Content

This PR reactivates the build for Darwin x86_64 in the Hydra CI.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • All check jobs of the CI have succeeded
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Relates to #2250

@jpraynaud jpraynaud self-assigned this Jun 2, 2025
Copy link
Member

@michalrus michalrus left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link

github-actions bot commented Jun 2, 2025

Test Results

    3 files  ±0     77 suites  ±0   15m 16s ⏱️ +21s
1 940 tests ±0  1 940 ✅ ±0  0 💤 ±0  0 ❌ ±0 
3 292 runs  ±0  3 292 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit d79aa04. ± Comparison against base commit 52fff48.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud temporarily deployed to testing-preview June 2, 2025 10:50 — with GitHub Actions Inactive
@michalrus
Copy link
Member

I see that some tests are failing for x86_64-darwin:

---- aggregator_client::tests::test_client_handle_404_not_found_error stdout ----

thread 'aggregator_client::tests::test_client_handle_404_not_found_error' panicked at mithril-client/src/aggregator_client.rs:822:9:
assertion `left == right` failed
  left: "RemoteServerLogical(Unhandled error 400 Bad Request: )"
 right: "RemoteServerLogical(Url='http://127.0.0.1:53203/certificates' not found)"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@jpraynaud jpraynaud temporarily deployed to testing-preview June 2, 2025 14:08 — with GitHub Actions Inactive
@jpraynaud
Copy link
Member Author

jpraynaud commented Jun 2, 2025

I see that some tests are failing for x86_64-darwin:

---- aggregator_client::tests::test_client_handle_404_not_found_error stdout ----

thread 'aggregator_client::tests::test_client_handle_404_not_found_error' panicked at mithril-client/src/aggregator_client.rs:822:9:
assertion `left == right` failed
  left: "RemoteServerLogical(Unhandled error 400 Bad Request: )"
 right: "RemoteServerLogical(Url='http://127.0.0.1:53203/certificates' not found)"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@michalrus it looks like running a test HTTP server is not working on the Hydra CI runners.
I have successfully ran them on my local x86_64 Mac Book Pro in debug mode, but they fail as soon as I run them in release mode and produce the same errors as on the CI runs 🤔

@jpraynaud jpraynaud force-pushed the jpraynaud/2250-fix-rollback-darwin-build-hydra-ci branch from da99bbc to 62f4589 Compare June 2, 2025 15:24
@jpraynaud jpraynaud temporarily deployed to testing-preview June 2, 2025 15:34 — with GitHub Actions Inactive
@jpraynaud jpraynaud temporarily deployed to testing-preview June 2, 2025 16:03 — with GitHub Actions Inactive
@michalrus
Copy link
Member

@jpraynaud nice, the last change worked, but now Linux is slightly broken when building tikv-jemalloc-sys?

  src/malloc_io.c: In function 'buferror':
  src/malloc_io.c:107:16: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    107 |         return strerror_r(err, buf, buflen);
        |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  make: *** [Makefile:480: src/malloc_io.sym.o] Error 1

I don't see how that's related to this PR. 😮

@jpraynaud
Copy link
Member Author

@jpraynaud nice, the last change worked, but now Linux is slightly broken when building tikv-jemalloc-sys?

  src/malloc_io.c: In function 'buferror':
  src/malloc_io.c:107:16: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    107 |         return strerror_r(err, buf, buflen);
        |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  make: *** [Makefile:480: src/malloc_io.sym.o] Error 1

I don't see how that's related to this PR. 😮

This is likely due to the machine running the job. I restarted the jobs that were failing.

Also I fixed the other problem, so as soon as the CI is all green, I will merge the PR 👍

@jpraynaud jpraynaud force-pushed the jpraynaud/2250-fix-rollback-darwin-build-hydra-ci branch from b42b22d to 42058b0 Compare June 3, 2025 09:07
@jpraynaud jpraynaud temporarily deployed to testing-preview June 3, 2025 09:15 — with GitHub Actions Inactive
@jpraynaud jpraynaud force-pushed the jpraynaud/2250-fix-rollback-darwin-build-hydra-ci branch from 42058b0 to 30f5e13 Compare June 3, 2025 10:02
@jpraynaud jpraynaud temporarily deployed to testing-preview June 3, 2025 10:11 — with GitHub Actions Inactive
@jpraynaud jpraynaud force-pushed the jpraynaud/2250-fix-rollback-darwin-build-hydra-ci branch from 30f5e13 to d79aa04 Compare June 3, 2025 10:14
@jpraynaud jpraynaud temporarily deployed to testing-preview June 3, 2025 10:23 — with GitHub Actions Inactive
@jpraynaud jpraynaud merged commit 7aec5a6 into main Jun 3, 2025
39 checks passed
@jpraynaud jpraynaud deleted the jpraynaud/2250-fix-rollback-darwin-build-hydra-ci branch June 3, 2025 13:06
@michalrus
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants