-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into f/6500-cose-service-identity-endorsements
- Loading branch information
Showing
5 changed files
with
123 additions
and
43 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "CI Containers GHCR" | ||
name: "Continuous Integration Containers GHCR" | ||
|
||
on: | ||
push: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Continuous Integration | ||
|
||
on: | ||
schedule: | ||
|
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,104 @@ | ||
name: "Long Verification" | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- synchronize | ||
- opened | ||
- reopened | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
jobs: | ||
model-checking-with-atomic-reconfig-consensus: | ||
name: Model Checking With Atomic Reconfig - Consensus | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-long-verification') }} | ||
runs-on: [self-hosted, 1ES.Pool=gha-virtual-ccf-sub] | ||
container: | ||
image: ghcr.io/microsoft/ccf/ci/default:build-25-07-2024 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
sudo apt update | ||
sudo apt install -y default-jre | ||
python3 ./tla/install_deps.py | ||
- name: MCccfraft - Configurations=2C2N (atomic reconf) MaxTermLimit=4 RequestLimit=3 NoCheckQuorum | ||
run: | | ||
set -x | ||
cd tla/ | ||
Configurations=2C2N MaxTermLimit=4 RequestLimit=1 NoCheckQuorum= ./tlc.sh -workers auto consensus/MCccfraft.tla -dumpTrace tla MCccfraft2C2N4T1R.trace.tla -dumpTrace json MCccfraft2C2N4T1R.json | ||
- name: Upload TLC's out file as an artifact. Can be imported into the TLA+ Toolbox. | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() }} | ||
with: | ||
name: tlc-model-checking-with-atomic-reconfig-consensus | ||
path: | | ||
tla/consensus/*_TTrace_*.tla | ||
tla/*.json | ||
model-checking-with-reconfig-consensus: | ||
name: Model Checking With Reconfig - Consensus | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-long-verification') }} | ||
runs-on: [self-hosted, 1ES.Pool=gha-virtual-ccf-sub] | ||
container: | ||
image: ghcr.io/microsoft/ccf/ci/default:build-25-07-2024 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
sudo apt update | ||
sudo apt install -y default-jre | ||
python3 ./tla/install_deps.py | ||
- name: MCccfraft - Configurations=3C2N MaxTermLimit=4 RequestLimit=1 NoCheckQuorum | ||
run: | | ||
set -x | ||
cd tla/ | ||
Configurations=3C2N MaxTermLimit=4 RequestLimit=1 NoCheckQuorum= ./tlc.sh -workers auto consensus/MCccfraft.tla -dumpTrace tla MCccfraft3C2N4T1R.trace.tla -dumpTrace json MCccfraft3C2N4T1R.json | ||
- name: Upload TLC's out file as an artifact. Can be imported into the TLA+ Toolbox. | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() }} | ||
with: | ||
name: tlc-model-checking-with-reconfig-consensus | ||
path: | | ||
tla/consensus/*_TTrace_*.tla | ||
tla/*.json | ||
simulation-consensus: | ||
name: Simulation - Consensus | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-long-verification') }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
sudo apt update | ||
sudo apt install -y default-jre | ||
python3 ./tla/install_deps.py | ||
- name: Simulation | ||
run: | | ||
set -x | ||
cd tla/ | ||
./tlc.sh -workers auto -simulate -depth 500 consensus/SIMccfraft.tla -dumpTrace tla SIMccfraft.trace.tla -dumpTrace json SIMccfraft.json | ||
env: | ||
SIM_TIMEOUT: 3000 | ||
|
||
- name: Upload artifacts. | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() }} | ||
with: | ||
name: tlc-simulation-consensus | ||
path: | | ||
tla/* |