Skip to content

Fix wasm build ci #296

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 2 commits into from
May 20, 2024
Merged

Fix wasm build ci #296

merged 2 commits into from
May 20, 2024

Conversation

mcbarton
Copy link
Collaborator

This PR will fix the broken wasm builds in the ci
Fixes #294

CMakeLists.txt Outdated
@@ -1,4 +1,9 @@
cmake_minimum_required(VERSION 3.13)
set(CppInterOp_Version "1.4.0;dev")
Copy link
Contributor

Choose a reason for hiding this comment

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

We still need to read that from the file.

@aaronj0
Copy link
Collaborator

aaronj0 commented May 19, 2024

@mcbarton we have a failure on main(unittest/FunctionReflectionTest:Construct) which is also failing on the same commit that was passing earlier which leads me to believe we might need to rebuild the cache since the warnings PR did not build its own. would now be a good time or would you like to push more commits?

@mcbarton
Copy link
Collaborator Author

mcbarton commented May 19, 2024

@maximusron This PR is not ready. Rebuild the cache and I will revisit this PR tomorrow to fix the wasm jobs.

@mcbarton mcbarton marked this pull request as draft May 19, 2024 21:26
@vgvassilev
Copy link
Contributor

Are we keeping the debug statements?

@mcbarton
Copy link
Collaborator Author

Are we keeping the debug statements?

The debug statements are not staying. They are just there because the PR is not currently working. I'm trying to work out why ;dev is still in the version name in the config file.

@mcbarton
Copy link
Collaborator Author

@vgvassilev The debug run says this is doing what is expected. The ;dev in the version number in the config file is coming from somewhere else. Any ideas where?

@vgvassilev
Copy link
Contributor

@@ -1,4 +1,4 @@
set(PACKAGE_VERSION "@CPPINTEROP_VERSION@")
set(PACKAGE_VERSION "@CPPINTEROP_VERSION_MAJOR@.@CPPINTEROP_VERSION_MINOR@.@CPPINTEROP_VERSION_PATCH@")
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to signal if that came from a dev version or not somehow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I could have a variable contain the last thing in the version list. If it is the word dev then we could output a message to the screen telling the user that they are working with a dev version.

Copy link
Contributor

Choose a reason for hiding this comment

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

On a second thought let's ignore this for now. Maybe we can keep track of this problem in a separate issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have managed to retain the ;dev part in package version in the end.

@aaronj0
Copy link
Collaborator

aaronj0 commented May 20, 2024

@mcbarton looks like this should be good to go now(based on the passing wasm builds). Let's rebase with main and squash before the last checks are done just to be sure

@mcbarton
Copy link
Collaborator Author

@mcbarton looks like this should be good to go now(based on the passing wasm builds). Let's rebase with main before the last checks are done just to be sure

@maximusron I think it is ok too. I've just done a cleanup of things I think are unneeded changes. Once the changes pass I will rebase.

@aaronj0
Copy link
Collaborator

aaronj0 commented May 20, 2024

sounds good

@aaronj0
Copy link
Collaborator

aaronj0 commented May 20, 2024

I'm going to cancel the run on main to speed this up

@mcbarton mcbarton marked this pull request as ready for review May 20, 2024 09:49
Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.22%. Comparing base (c8979a2) to head (f38a728).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   72.22%   72.22%           
=======================================
  Files           8        8           
  Lines        2963     2963           
=======================================
  Hits         2140     2140           
  Misses        823      823           

@aaronj0 aaronj0 requested a review from vgvassilev May 20, 2024 09:54
@aaronj0
Copy link
Collaborator

aaronj0 commented May 20, 2024

@mcbarton can you rebase into a single commit before the checks?

@mcbarton
Copy link
Collaborator Author

@mcbarton can you rebase into a single commit before the checks?

I will rebase it in around 1-2 hours time. I am away from my computer until then.

@aaronj0 aaronj0 merged commit 9c308e3 into compiler-research:main May 20, 2024
46 checks passed
@mcbarton mcbarton deleted the fix-wasm-build branch May 22, 2024 17:07
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.

[ci] Wasm build broken (xeus-cpp part)
3 participants