Skip to content

Conversation

mcbarton
Copy link
Collaborator

Description

Please include a summary of changes, motivation and context for this PR.

This PR makes use of a check-xeus-cpp target to run the C++ tests on both the native and Emscripten platform, and updates the documentation to be consistent across all files (e.g. BUILD_TOOLS_PREFIX vs BUILD_PREFIX)

Fixes # (issue)

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Added/removed dependencies
  • Required documentation updates

@mcbarton mcbarton force-pushed the Make-running-C++-tests-the-check-xeus-cpp-target branch 2 times, most recently from 778c098 to 8721b73 Compare September 30, 2025 20:06
@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.78%. Comparing base (c7628c6) to head (632271c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #386   +/-   ##
=======================================
  Coverage   81.78%   81.78%           
=======================================
  Files          20       20           
  Lines         950      950           
  Branches       87       87           
=======================================
  Hits          777      777           
  Misses        173      173           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcbarton mcbarton force-pushed the Make-running-C++-tests-the-check-xeus-cpp-target branch from a366271 to c2b0a28 Compare September 30, 2025 20:14
@mcbarton
Copy link
Collaborator Author

Just like on my local machine, if I use the node which comes with the emsdk version we are currently using, then it freezes when trying to run the javascript tests. If I use a newer version of node I have installed separately then it runs the tests fine. This also happens with the current version of the build instructions. This PR should be good to go once we move to a newer emsdk version.

@mcbarton mcbarton force-pushed the Make-running-C++-tests-the-check-xeus-cpp-target branch from c2b0a28 to 8a6273f Compare October 1, 2025 06:16
@mcbarton
Copy link
Collaborator Author

mcbarton commented Oct 2, 2025

So it will run the tests on mac os arm using the old version of node that comes with emsdk 3.1.73 . It just takes 20 minutes on the ci. Locally I always cancelled the node command long before that, and ran the tests using a more recent version where the tests ran immediately.

@mcbarton
Copy link
Collaborator Author

mcbarton commented Oct 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests. ✅ Project coverage is 36.52%. Comparing base (38525aa) to head (c2b0a28).

❗ There is a different number of reports uploaded between BASE (38525aa) and HEAD (c2b0a28). Click for more details.
HEAD has 1 upload less than BASE

Flag
BASE (38525aa)
HEAD (c2b0a28)

2
1

Additional details and impacted files

🚀 New features to boost your workflow:

Not sure why my change to the ci caused a massive drop in the coverage. Will investigate

call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp
cd build\test
.\test_xeus_cpp.exe
make -j ${{ env.ncpus }} check-xeus-cpp
Copy link
Collaborator Author

@mcbarton mcbarton Oct 5, 2025

Choose a reason for hiding this comment

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

@anutosh491 @vgvassilev I have no idea why I need to install xeus-cpp, before running the tests for the code coverage to not drop, but it does.

@mcbarton
Copy link
Collaborator Author

mcbarton commented Oct 5, 2025

This PR is ready for review.

@mcbarton mcbarton force-pushed the Make-running-C++-tests-the-check-xeus-cpp-target branch from 72df026 to e53cd8e Compare October 9, 2025 07:24
@mcbarton mcbarton force-pushed the Make-running-C++-tests-the-check-xeus-cpp-target branch from e53cd8e to 632271c Compare October 21, 2025 10:30
@mcbarton
Copy link
Collaborator Author

@vgvassilev @anutosh491 pinging for review

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.

2 participants