Skip to content

Conversation

@ggreif
Copy link
Contributor

@ggreif ggreif commented Jul 7, 2025

dfinity/mops#300 is merged and released. dfinity/motoko-core#344 adopted it.

Note: I wouldn't have problems to leave this new step in this workflow, but separating it out into a second one should also be doable with a little bit of duplication. We can iterate from this point.

Note: Without the mops 64-bit fix the tests failed, so the rainy-day path is well-tested!

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2025

Comparing from afbfb5c to a42898f:
The produced WebAssembly code seems to be completely unchanged.

@ggreif ggreif force-pushed the gabor/core-tests branch 2 times, most recently from 388af6e to 572eca0 Compare July 8, 2025 09:06
@ggreif ggreif force-pushed the gabor/core-tests branch from 572eca0 to c5ec886 Compare July 8, 2025 09:32
@ggreif ggreif force-pushed the gabor/core-tests branch from ced9be2 to 3989cff Compare July 8, 2025 12:42
- name: Set up `mops` cache
run: |
npx mops --version
npx ${DFX_MOC_PATH} --version
Copy link
Contributor Author

@ggreif ggreif Jul 9, 2025

Choose a reason for hiding this comment

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

This runs moc and primes the .mops cache.

@ggreif ggreif marked this pull request as ready for review July 9, 2025 17:07
@ggreif ggreif requested a review from a team as a code owner July 9, 2025 17:07

motoko-core-tests:
needs: systems-go-tests
runs-on: ubuntu-latest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The cheapest...

@ggreif ggreif requested a review from alexandru-uta July 9, 2025 17:17
Copy link
Contributor Author

@ggreif ggreif left a comment

Choose a reason for hiding this comment

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

@ggreif ggreif changed the title chore: test core chore: test core in nightly run Jul 9, 2025
- name: Fixup `mops` cache
run: |
ln -sf /nix/store/*-moc/bin/moc $(cat .mops/moc-*)
npx ${DFX_MOC_PATH} --version
Copy link
Contributor

Choose a reason for hiding this comment

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

See above suggestion:

Suggested change
npx ${DFX_MOC_PATH} --version
${DFX_MOC_PATH} --version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, turns out I need npx:

/home/runner/work/_temp/97eb8911-f1e2-402c-9905-dd49540368c6.sh: line 2: moc-wrapper: command not found
Error: Process completed with exit code 127.

@rvanasa
Copy link
Contributor

rvanasa commented Jul 9, 2025

Can we avoid installing dfx? I don't think we need it:

It seems like we could do this!

run: |
nix build .#moc --print-out-paths
- name: Save the `test-blueprint` action
run: cp -r ./.github/actions/test-blueprint ..
Copy link
Collaborator

Choose a reason for hiding this comment

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

not super clear to me: why do we need to copy the blueprint somewhere else?

Copy link
Contributor Author

@ggreif ggreif Jul 10, 2025

Choose a reason for hiding this comment

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

Because the checkout of motoko-core zeroes out the previous checkout. Explained: #5317 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

oooh, I see -- can you please add a comment here as well about it so we don't break it some time later when we refactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like this:
Screenshot 2025-07-10 at 11 31 17

@ggreif ggreif added the testing Related to test suite label Jul 10, 2025
@ggreif ggreif changed the title chore: test core in nightly run chore: test the core library in nightly run Jul 10, 2025
Copy link
Collaborator

@alexandru-uta alexandru-uta left a comment

Choose a reason for hiding this comment

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

LGTM; the only thing I think would help some more is adding the comment in the yml saying explicitly why we copy the blueprint in and out.

@ggreif ggreif added the automerge-squash When ready, merge (using squash) label Jul 10, 2025
@mergify mergify bot merged commit ee76d4d into master Jul 10, 2025
32 checks passed
@mergify mergify bot deleted the gabor/core-tests branch July 10, 2025 09:33
@mergify mergify bot removed the automerge-squash When ready, merge (using squash) label Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants