sync: absent from my scan does not mean deleted (#75) #123
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
| name: test | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deterministic: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Library and model tests | |
| run: timeout 10m cargo test --locked --lib | |
| # The binary's own tests were never built here, so a test in src/main.rs | |
| # could stop COMPILING and this workflow stayed green. One had: the | |
| # `sync ls --json` schema test missed the `sweep` field added in #61. | |
| - name: Binary tests | |
| run: timeout 5m cargo test --locked --bins | |
| - name: Deterministic fake two-machine folder sync | |
| run: >- | |
| timeout 5m cargo test --locked --lib | |
| sync::engine::tests::two_engines_sync_real_folders_over_loopback | |
| -- --exact | |
| - name: Deterministic fake three-machine simultaneous sync | |
| run: >- | |
| timeout 5m cargo test --locked --lib | |
| sync::engine::tests::simultaneous_three_peer_syncs_do_not_deadlock | |
| -- --exact | |
| - name: Provisioning and CLI contract | |
| run: timeout 5m cargo test --locked --test provisioning -- --test-threads=1 | |
| - name: Real iroh folder sync and restart | |
| run: timeout 10m cargo test --locked --test sync_slice -- --test-threads=1 | |
| - name: Serial local multi-node daemon slice | |
| run: timeout 15m cargo test --locked --test local_slice -- --test-threads=1 |