-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CI: run the Cranelift verifier. #14207
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
Open
cfallin
wants to merge
7
commits into
bytecodealliance:main
Choose a base branch
from
cfallin:verification-in-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9d936ef
CI: run the Cranelift verifier.
cfallin 7b3702c
Review feedback:
cfallin 40c1367
Review feedback.
cfallin 38af68b
actually only run fast cases
cfallin 7762be2
Add per-SMT-query timeout of 2 minutes as well.
cfallin 4cd79c2
Review feedback.
cfallin c975cdf
Review feedback.
cfallin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Download the latest ISLE verifier SMT query cache from the `dev` release on | ||
| # github.com/bytecodealliance/wasmtime and install it as | ||
| # cranelift/isle/veri/cache, so a local run of verify.sh starts from the same | ||
| # state CI is currently using. | ||
| # | ||
| # The `dev` release asset is refreshed by the `publish-artifacts.yml` | ||
| # workflow from the "ISLE verifier full check" CI job's artifact (see | ||
| # .github/workflows/main.yml). | ||
| # | ||
| # Usage: | ||
| # ./cranelift/isle/veri/setup/download-cache.sh | ||
| # | ||
| # Requires: curl, tar. | ||
| # Optionally set GH_TOKEN to avoid GitHub API rate limits (unauthenticated | ||
| # requests are limited to 60/hour per IP). | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| repo="bytecodealliance/wasmtime" | ||
| release="dev" | ||
| asset="isle-veri-cache.tar.gz" | ||
| cache_dir="cranelift/isle/veri/cache" | ||
|
|
||
| cd "$(git rev-parse --show-toplevel)" | ||
|
|
||
| if [ -n "${GH_TOKEN:-}" ]; then | ||
| curl_args=(-fsSL -H "Authorization: Bearer ${GH_TOKEN}") | ||
| else | ||
| curl_args=(-fsSL) | ||
| fi | ||
|
|
||
| json=$(curl "${curl_args[@]}" \ | ||
| "https://api.github.com/repos/${repo}/releases/tags/${release}") | ||
|
|
||
| # Extract the browser_download_url of our asset from the release JSON. | ||
| url=$(printf '%s\n' "$json" \ | ||
| | { grep -o "\"browser_download_url\"[[:space:]]*:[[:space:]]*\"[^\"]*/${asset}\"" || true; } \ | ||
| | sed 's/.*"browser_download_url"[[:space:]]*:[[:space:]]*"//; s/"$//') | ||
| if [ -z "$url" ]; then | ||
| echo "ERROR: asset '${asset}' not found on release '${release}' of ${repo}" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| tmp=$(mktemp -d) | ||
| trap 'rm -rf "$tmp"' EXIT | ||
| curl -fL --progress-bar -o "${tmp}/${asset}" "$url" | ||
|
|
||
| rm -rf "$cache_dir" | ||
| tar xzf "${tmp}/${asset}" -C cranelift/isle/veri | ||
| echo "Installed verifier cache to ${cache_dir}/" | ||
| echo "You can now run ./cranelift/isle/veri/verify.sh (or cache-only / rebuild-cache)." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.