-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10,186 changed files
with
453,216 additions
and
85 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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 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,7 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains 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,2 @@ | ||
# Improves experience of commands like `make format` on Windows | ||
* text=auto eol=lf |
This file contains 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,3 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
* @mathetake |
This file contains 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,31 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve wazero. | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Description of the host and wasm code that reproduces the behavior. | ||
Smoothest debugging will be if you can share a repository with the | ||
actual code. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment (please complete the relevant information):** | ||
- Go version: [e.g. 1.19.1] | ||
- wazero Version: [e.g. c815060196bbfaa2d0f66a6ddbe64ba026523944] | ||
- Host architecture: [e.g. amd64] | ||
- Runtime mode: [e.g. interpreter or compiler] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains 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,20 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for wazero to support. | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. e.g. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains 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,24 @@ | ||
name: VM Actions matrix | ||
description: VM Actions matrix template | ||
|
||
inputs: | ||
run: | ||
description: 'The CI command to run' | ||
required: true | ||
release: | ||
description: 'The OS release version' | ||
required: false | ||
envs: | ||
description: 'The envs to pass into vm' | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: ${VMACTIONS} | ||
with: | ||
usesh: true | ||
copyback: false | ||
run: ${{inputs.run}} | ||
envs: ${{inputs.envs}} | ||
release: ${{inputs.release}} |
This file contains 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,47 @@ | ||
# adapter for wazero until/unless https://github.com/WebAssembly/wasi-testsuite/pull/55 | ||
|
||
import argparse | ||
import subprocess | ||
import sys | ||
import os | ||
import shlex | ||
|
||
# shlex.split() splits according to shell quoting rules | ||
WAZERO = shlex.split(os.getenv("TEST_RUNTIME_EXE", "wazero")) | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--version", action="store_true") | ||
parser.add_argument("--test-file", action="store") | ||
parser.add_argument("--arg", action="append", default=[]) | ||
parser.add_argument("--env", action="append", default=[]) | ||
parser.add_argument("--dir", action="append", default=[]) | ||
|
||
args = parser.parse_args() | ||
|
||
if args.version: | ||
version = subprocess.run( | ||
WAZERO + ["version"], capture_output=True, text=True | ||
).stdout.strip() | ||
if version == "dev": | ||
version = "0.0.0" | ||
print("wazero", version) | ||
sys.exit(0) | ||
|
||
TEST_FILE = args.test_file | ||
TEST_DIR = os.path.dirname(TEST_FILE) | ||
PROG_ARGS = [] | ||
if args.arg: | ||
PROG_ARGS = ["--"] + args.arg | ||
ENV_ARGS = [f"-env={e}" for e in args.env] | ||
cwd = os.getcwd() | ||
DIR_ARGS = [f"-mount={cwd}/{dir}:{dir}" for dir in args.dir] | ||
|
||
PROG = ( | ||
WAZERO | ||
+ ["run", "-hostlogging=filesystem"] | ||
+ ENV_ARGS | ||
+ DIR_ARGS | ||
+ [TEST_FILE] | ||
+ PROG_ARGS | ||
) | ||
sys.exit(subprocess.run(PROG, cwd=TEST_DIR).returncode) |
This file contains 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,4 @@ | ||
{ | ||
"WASI Rust tests": { | ||
} | ||
} |
This file contains 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,37 @@ | ||
# This job cleans up the unnecessary caches created on PRs. | ||
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries | ||
name: cleanup caches by a branch | ||
on: | ||
# Only runs on the PRs are closed, regardless of it is merged or not. | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cleanup | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
REPO=${{ github.repository }} | ||
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge" | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.