Skip to content

Commit e851973

Browse files
committed
Merge branch 'dev/checkpoint_and_restore' into main
Signed-off-by: victoryang00 <[email protected]>
2 parents 5defce3 + ef3babc commit e851973

File tree

163 files changed

+8172
-2683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+8172
-2683
lines changed

.github/ISSUE_TEMPLATE/blank_issue.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Blank Issue
3+
about: Create a blank issue.
4+
title: ''
5+
---

.github/ISSUE_TEMPLATE/improvement.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Improvement
3+
about: A feature request or code improvement.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
Thanks for filing a feature request! Please fill out the TODOs below.
10+
11+
#### Feature
12+
13+
TODO: Brief description of the feature/improvement you'd like to see in WAMR
14+
15+
#### Benefit
16+
17+
TODO: What is the value of adding this in WAMR? What problems does it solve?
18+
19+
#### Implementation
20+
21+
TODO: Do you have an implementation plan, and/or ideas for data structures or
22+
algorithms to use?
23+
24+
#### Alternatives
25+
26+
TODO: What are the alternative implementation approaches or alternative ways to
27+
solve the problem that this feature would solve? How do these alternatives
28+
compare to this proposal?

.github/ISSUE_TEMPLATE/report_bug.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: WAMR bug or defect report
3+
about: Report a bug or defect in WAMR
4+
title: ''
5+
---
6+
7+
Thanks for filing a bug or defect report! Please fill out the TODOs below.
8+
9+
### Subject of the issue
10+
11+
Describe the bug or defect here.
12+
13+
### Test case
14+
15+
Upload the related wasm file, wast file or the source files if you can.
16+
17+
### Your environment
18+
19+
* Host OS
20+
* WAMR version, platform, cpu architecture, running mode, etc.
21+
22+
### Steps to reproduce
23+
24+
Tell us how to reproduce this bug or defect.
25+
26+
### Expected behavior
27+
28+
Tell us what should happen
29+
30+
### Actual behavior
31+
32+
Tell us what happens instead
33+
34+
### Extra Info
35+
36+
Anything else you'd like to add?

.github/workflows/build_llvm_libraries.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ jobs:
3333
- name: checkout
3434
uses: actions/checkout@v4
3535

36-
- name: install dependencies
36+
- name: install dependencies for non macos-14
37+
if: inputs.os != 'macos-14'
3738
run: /usr/bin/env python3 -m pip install -r requirements.txt
3839
working-directory: build-scripts
3940

41+
- name: install dependencies for macos-14
42+
if: inputs.os == 'macos-14'
43+
run: /usr/bin/env python3 -m pip install -r requirements.txt --break-system-packages
44+
working-directory: build-scripts
45+
4046
- name: retrive the last commit ID
4147
id: get_last_commit
4248
run: echo "last_commit=$(GH_TOKEN=${{ secrets.GITHUB_TOKEN }} /usr/bin/env python3 ./build_llvm.py --llvm-ver)" >> $GITHUB_OUTPUT

.github/workflows/codeql.yml

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
name: "CodeQL"
8+
9+
on:
10+
#pull_request:
11+
# types:
12+
# - opened
13+
# branches: '*'
14+
#push:
15+
# branches: [ "main" ]
16+
# midnight UTC
17+
schedule:
18+
- cron: '0 0 * * *'
19+
# allow to be triggered manually
20+
workflow_dispatch:
21+
22+
jobs:
23+
analyze:
24+
if: github.repository == 'bytecodealliance/wasm-micro-runtime'
25+
name: Analyze
26+
# Runner size impacts CodeQL analysis time. To learn more, please see:
27+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
28+
# - https://gh.io/supported-runners-and-hardware-resources
29+
# - https://gh.io/using-larger-runners
30+
# Consider using larger runners for possible analysis time improvements.
31+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-20.04' }}
32+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
33+
permissions:
34+
actions: read
35+
contents: read
36+
security-events: write
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
language: [ 'cpp' ]
42+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
43+
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v3
47+
with:
48+
submodules: recursive
49+
50+
# Initializes the CodeQL tools for scanning.
51+
- name: Initialize CodeQL
52+
uses: github/codeql-action/init@v2
53+
with:
54+
languages: ${{ matrix.language }}
55+
56+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
57+
# queries: security-extended,security-and-quality
58+
queries: security-and-quality
59+
60+
# Command-line programs to run using the OS shell.
61+
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
62+
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
65+
66+
- run: |
67+
./.github/workflows/codeql_buildscript.sh
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v2
70+
with:
71+
category: "/language:${{matrix.language}}"
72+
upload: false
73+
id: step1
74+
75+
# Filter out rules with low severity or high false positve rate
76+
# Also filter out warnings in third-party code
77+
- name: Filter out unwanted errors and warnings
78+
uses: advanced-security/filter-sarif@v1
79+
with:
80+
patterns: |
81+
-**:cpp/path-injection
82+
-**:cpp/world-writable-file-creation
83+
-**:cpp/poorly-documented-function
84+
-**:cpp/potentially-dangerous-function
85+
-**:cpp/use-of-goto
86+
-**:cpp/integer-multiplication-cast-to-long
87+
-**:cpp/comparison-with-wider-type
88+
-**:cpp/leap-year/*
89+
-**:cpp/ambiguously-signed-bit-field
90+
-**:cpp/suspicious-pointer-scaling
91+
-**:cpp/suspicious-pointer-scaling-void
92+
-**:cpp/unsigned-comparison-zero
93+
-**/cmake*/Modules/**
94+
input: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
95+
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
96+
97+
- name: Upload CodeQL results to code scanning
98+
uses: github/codeql-action/upload-sarif@v2
99+
with:
100+
sarif_file: ${{ steps.step1.outputs.sarif-output }}
101+
category: "/language:${{matrix.language}}"
102+
103+
- name: Upload CodeQL results as an artifact
104+
if: success() || failure()
105+
uses: actions/upload-artifact@v3
106+
with:
107+
name: codeql-results
108+
path: ${{ steps.step1.outputs.sarif-output }}
109+
retention-days: 10
110+
111+
- name: Fail if an error is found
112+
run: |
113+
./.github/workflows/codeql_fail_on_error.py \
114+
${{ steps.step1.outputs.sarif-output }}/cpp.sarif

0 commit comments

Comments
 (0)