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

Update GitHub Actions workflows #1782

Merged
merged 1 commit into from
Jan 1, 2025
Merged

Update GitHub Actions workflows #1782

merged 1 commit into from
Jan 1, 2025

Conversation

smorimoto
Copy link
Member

@smorimoto smorimoto commented Dec 31, 2024

Check the CI does not complain...

@smorimoto smorimoto requested a review from Copilot December 31, 2024 17:05

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

.github/workflows/build-wasm_of_ocaml.yml:20

  • [nitpick] The version format for ocaml-compiler has changed from '4.14.x' to '4.14'. Ensure this change is intentional and compatible with the expected format.
-          - 4.14.x

.github/workflows/build-wasm_of_ocaml.yml:32

  • [nitpick] The version format for ocaml-compiler has changed from '4.14.x' to '4.14'. Ensure this change is intentional and compatible with the expected format.
-            ocaml-compiler: 4.14.x
@smorimoto smorimoto force-pushed the update-gha-workflow branch 8 times, most recently from 8b93bb6 to b456f1e Compare December 31, 2024 18:31
Signed-off-by: Sora Morimoto <[email protected]>
@smorimoto smorimoto marked this pull request as ready for review December 31, 2024 18:44
@smorimoto smorimoto requested review from hhugo and Copilot December 31, 2024 18:44

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • dune: Language not supported
  • tools/ci_setup.ml: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/build.yml:86

  • [nitpick] The condition might be too restrictive. Consider verifying if the condition should be more general to cover other operating systems or OCaml versions.
if: ${{ matrix.os == 'windows-latest' && matrix.ocaml-compiler < 5.2 }}
@smorimoto smorimoto merged commit 3478018 into master Jan 1, 2025
28 checks passed
@smorimoto smorimoto deleted the update-gha-workflow branch January 1, 2025 07:11
dune-cache: true
opam-pin: false

- run: opam install conf-pkg-config
Copy link
Member

Choose a reason for hiding this comment

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

I think this is the second time you try to remove that line. It was here on purpose to work-around an opam packaging issue. Are you sure it is no longer needed

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's no longer needed.

Copy link
Member Author

@smorimoto smorimoto Jan 1, 2025

Choose a reason for hiding this comment

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

To be more clear, zarith now explicitly requires it, and conf-pkg-config is work properly in the Cygwin environment.

Copy link
Member

Choose a reason for hiding this comment

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

I don't remember this being related to zarith

Copy link
Member Author

Choose a reason for hiding this comment

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

At least for now, zarith is the only library which requires conf-pkg-config (on Windows)

Copy link
Member

Choose a reason for hiding this comment

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

I though the issue was with mingw-64-shims and its optional dep on conf-pkg-config. Here is an extract of a private discussion with @dra27

Oh, I see what's happening here - it's a race
There's an instant during the recompile where the old mingw-64-shims package has been removed (so there's no x86_64-w64-mingw32-gcc shim installed) and those packages then try to call the C compiler.

@dra27 do you remember this issue, can you confirm it was fixed ?

Copy link
Member Author

Choose a reason for hiding this comment

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

If I remember correctly, it was fixed in mingw-w64-shims.0.2.0.

Copy link
Member

Choose a reason for hiding this comment

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

No, I have failing logs involving mingw-w64-shims.0.2.0

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

reverted in #1786

@hhugo
Copy link
Member

hhugo commented Jan 1, 2025

@smorimoto, I'm not very happy with how you push changes without explanation/description and review.

@smorimoto
Copy link
Member Author

I foolishly thought it was clear enough

separate_compilation: false

runs-on: ${{ matrix.os }}

steps:
- name: Set git to use LF
Copy link
Member

Choose a reason for hiding this comment

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

This will need to come back once we start testing windows

Copy link
Member Author

Choose a reason for hiding this comment

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

In the upcoming PR, I'm going to make changes to separate the jobs for testing and installation testing so that we can run all tests on all platforms.

Copy link
Member

Choose a reason for hiding this comment

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

separate the jobs for testing and installation testing

I don't understand what you mean by that.

@hhugo
Copy link
Member

hhugo commented Jan 2, 2025

I foolishly thought it was clear enough

At least the following deserves an explanation and is clearly not clear enough if you push it through without further comment.

From dune 3.17, dune cache no longer works with opam workflow. There is a work going on upstream about this, but there is no timeline yet...

Can you point to GH issue tracking this ? I haven't seen any CI faliure related to this.

@@ -212,7 +212,7 @@ let pin delay nm =
(Printf.sprintf
"opam pin add -n %s https://github.com/ocaml-wasm/%s.git#wasm"
(try List.assoc nm aliases
with Not_found -> if List.mem_assoc nm packages then nm ^ ".v0.16.0" else nm)
with Not_found -> if List.mem_assoc nm packages then nm ^ ".v0.16.1" else nm)
Copy link
Member

Choose a reason for hiding this comment

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

Yet another change hidden in the noise that is not explained.

@hhugo
Copy link
Member

hhugo commented Jan 6, 2025

I foolishly thought it was clear enough

At least the following deserves an explanation and is clearly not clear enough if you push it through without further comment.

From dune 3.17, dune cache no longer works with opam workflow. There is a work going on upstream about this, but there is no timeline yet...

Can you point to GH issue tracking this ? I haven't seen any CI faliure related to this.

@smorimoto, Ping, can you explain the issue ?

@vouillon
Copy link
Member

vouillon commented Jan 7, 2025

It seems some tests are no longer run:
image

@hhugo
Copy link
Member

hhugo commented Jan 7, 2025

It seems some tests are no longer run

Attempted fix: #1789

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

Successfully merging this pull request may close these issues.

3 participants