Skip to content

Compile for Wasm on the event that gates review - #362

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:ci/wasm-on-pull-request
Sep 3, 2026
Merged

Compile for Wasm on the event that gates review#362
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:ci/wasm-on-pull-request

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

A pull request excludes all three emscripten cross-compiles, so a change that
does not build for Wasm is found on the push to main that follows its merge
rather than on the pull request itself. wasm_mvp is kept on a pull request,
leaving main the first event to compile only the two targets a reduced matrix
would drop anyway.

Naming wasm_eh and wasm_threads in the exclusion is what states that intent,
and it is all it does: run_in_reduced_ci_mode is true for wasm_mvp alone, so
the reduced matrix a pull request already enables filters the other two whether
or not the exclusion lists them. Running the matrix parser over its own
distribution matrix answers with the one job the change adds:

exclusion before -> wasm targets []
exclusion after -> wasm targets ['wasm_mvp']
linux targets -> ['linux_amd64'], unchanged

Both remaining targets still build on push to main and on workflow_dispatch,
where the full matrix runs ahead of a release, so the coverage lost is a
duplicate of what a pull request now carries. The MEOS port rebuilds libmeos
and its heavy dependencies from source on each job, which is why a pull request
pays for one Wasm target rather than three.

A pull request excludes all three emscripten cross-compiles, so a change that
does not build for Wasm is found on the push to main that follows its merge
rather than on the pull request itself. wasm_mvp is kept on a pull request,
leaving main the first event to compile only the two targets a reduced matrix
would drop anyway.

Naming wasm_eh and wasm_threads in the exclusion is what states that intent,
and it is all it does: `run_in_reduced_ci_mode` is true for wasm_mvp alone, so
the reduced matrix a pull request already enables filters the other two whether
or not the exclusion lists them. Running the matrix parser over its own
distribution matrix answers with the one job the change adds:

  exclusion before -> wasm targets []
  exclusion after  -> wasm targets ['wasm_mvp']
  linux targets    -> ['linux_amd64'], unchanged

Both remaining targets still build on push to main and on workflow_dispatch,
where the full matrix runs ahead of a release, so the coverage lost is a
duplicate of what a pull request now carries. The MEOS port rebuilds libmeos
and its heavy dependencies from source on each job, which is why a pull request
pays for one Wasm target rather than three.
@estebanzimanyi
estebanzimanyi merged commit 238040a into MobilityDB:main Sep 3, 2026
10 checks passed
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.

1 participant