Skip to content

Commit

Permalink
Merge branch 'main' of github.com:microsoft/CCF into reelection_take2
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Jan 23, 2024
2 parents 5d4321c + aeddbfb commit a5d9d0b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .azure-pipelines-templates/daily-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,12 @@ jobs:
ctest_filter: '-LE "benchmark|perf|rotation"'
depends_on: configure
installExtendedTestingTools: true

- template: simulation.yml
parameters:
target: Virtual
timeout: 3000
env: ${{ parameters.env.Virtual }}
installExtendedTestingTools: false
depends_on:
- configure
1 change: 1 addition & 0 deletions .azure-pipelines-templates/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ jobs:
target: Virtual
env: ${{ parameters.env.Virtual }}
installExtendedTestingTools: false
metrics: true
depends_on:
- configure

Expand Down
17 changes: 10 additions & 7 deletions .azure-pipelines-templates/simulation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ jobs:
displayName: Setup
- script: ./tlc.sh -workers auto -simulate -depth 500 consensus/SIMccfraft.tla -dumpTrace tla SIMccfraft.trace.tla -dumpTrace json SIMccfraft.json
env:
SIM_TIMEOUT: ${{ parameters.timeout }}
workingDirectory: tla
displayName: Simulation

- script: |
set -ex
./cimetrics_env.sh python upload_tlc_stats.py sim ../tla/SIMccfraft_stats.json
env:
METRICS_MONGO_CONNECTION: $(METRICS_MONGO_CONNECTION)
workingDirectory: tests
displayName: Uploading TLC stats to cimetrics
- ${{ if eq(parameters.metrics, true) }}:
- script: |
set -ex
./cimetrics_env.sh python upload_tlc_stats.py sim ../tla/SIMccfraft_stats.json
env:
METRICS_MONGO_CONNECTION: $(METRICS_MONGO_CONNECTION)
workingDirectory: tests
displayName: Uploading TLC stats to cimetrics
- task: PublishPipelineArtifact@1
inputs:
Expand Down
2 changes: 1 addition & 1 deletion tla/consensus/SIMccfraft.tla
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SIMTimeout(i) ==
\* The state constraint StopAfter stops TLC after the alloted
\* time budget is up, unless TLC encounteres an error first.
StopAfter ==
LET timeout == IF "SIM_TIMEOUT" \in DOMAIN IOEnv THEN atoi(IOEnv.SIM_TIMEOUT) ELSE 1200
LET timeout == IF ("SIM_TIMEOUT" \in DOMAIN IOEnv) /\ IOEnv.SIM_TIMEOUT # "" THEN atoi(IOEnv.SIM_TIMEOUT) ELSE 1200
(* The smoke test has a time budget of 20 minutes. *)
IN TLCSet("exit", TLCGet("duration") > timeout)

Expand Down

0 comments on commit a5d9d0b

Please sign in to comment.