-
Notifications
You must be signed in to change notification settings - Fork 89
feat(integration-tests): Add end-to-end test workflow for downstream clp-ffi-js; Bump yscope-dev-utils to y-scope/yscope-dev-utils@e2a1aed.
#2015
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
7d70548
b06105c
3b28ce6
94e3a2b
8a8feb2
f336c64
eedf82e
999f11a
90e9647
a47a3f0
8eb916f
8956e06
9bfb82e
ab0507d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| version: "3" | ||
|
|
||
| includes: | ||
| yscope-dev-utils: "../../tools/yscope-dev-utils/exports/taskfiles/utils/utils.yaml" | ||
|
|
||
| vars: | ||
| G_CLP_FFI_JS_SRC_DIR: "{{.G_BUILD_DIR}}/clp-ffi-js" | ||
| G_CLP_FFI_JS_BUILD_DIR: "{{.G_CLP_FFI_JS_SRC_DIR}}/build/clp-ffi-js" | ||
|
|
||
| G_CLP_FFI_JS_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/clp-ffi-js.md5" | ||
Bill-hbrhbr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # NOTE: By default, clp-ffi-js builds its WASM binaries against the internally pinned CLP source. | ||
| # For CLP development and integration testing, we override `CLP_FFI_JS_CLP_SOURCE_DIRECTORY` so the | ||
| # build uses the CLP repository in the current workspace. | ||
| # We achieve this by running an early, intentionally non-fatal CMake configure step to inject the | ||
| # cache variable without triggering a full build. The normal clp-ffi-js test workflow is then | ||
| # executed, which builds the package as part of the process. | ||
| tasks: | ||
| default: | ||
| deps: ["download-src"] | ||
| dir: "{{.G_CLP_FFI_JS_SRC_DIR}}" | ||
| cmds: | ||
| - task: "inject-clp-src-dir" | ||
| - task: "symlink-yscope-dev-utils" | ||
| - |- | ||
| task test | ||
|
|
||
| download-src: | ||
| deps: | ||
| - "::init" | ||
| cmds: | ||
| - task: "yscope-dev-utils:remote:download-and-extract-tar" | ||
| vars: | ||
| CHECKSUM_FILE: "{{.G_CLP_FFI_JS_CHECKSUM_FILE}}" | ||
| FILE_SHA256: "5ab1c27031caafb014198d4db711a71b3fbb1661b396bcd4e46764194e2b1f61" | ||
| OUTPUT_DIR: "{{.G_BUILD_DIR}}/clp-ffi-js" | ||
Bill-hbrhbr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| TAR_FILE: "{{.G_BUILD_DIR}}/clp-ffi-js.tar.gz" | ||
| URL: "https://github.com/y-scope/clp-ffi-js/archive/4cc6a7c.tar.gz" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you think it's worth adding a docstring to explain when this commit was available? / in the future if we pin those commit ids at specific clp-ffi-js releases, it's better to comment with the release versions as well
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. something like |
||
|
|
||
| inject-clp-src-dir: | ||
| internal: true | ||
| silent: true | ||
| cmds: | ||
| - |- | ||
| cmake -S "{{.G_CLP_FFI_JS_SRC_DIR}}" -B "{{.G_CLP_FFI_JS_BUILD_DIR}}" \ | ||
| -DCLP_FFI_JS_CLP_SOURCE_DIRECTORY="{{.ROOT_DIR}}" >/dev/null 2>&1 || true | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| symlink-yscope-dev-utils: | ||
| internal: true | ||
| cmds: | ||
| - |- | ||
| rm -rf "{{.G_CLP_FFI_JS_SRC_DIR}}/tools/yscope-dev-utils" | ||
| ln -s "{{.ROOT_DIR}}/tools/yscope-dev-utils" \ | ||
| "{{.G_CLP_FFI_JS_SRC_DIR}}/tools/yscope-dev-utils" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there's no easy way to set up
clp-ffi-jsas one ofdepsforbuild-and-test-nodeandbuild-and-test-browser, how do you feel about adding this to both tasks: