Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
99ec4c2
ci: separate transfer and cleanup failures
steadytao Nov 14, 2026
98d152a
ci: consolidate Ubuntu workflows
steadytao Aug 15, 2026
654e556
ci: restrict workflow permissions
steadytao Aug 15, 2026
cba76c8
ci: bound workflow runtimes
steadytao Aug 15, 2026
3d5efec
ci: pin workflows
steadytao Oct 8, 2026
86f5a24
testsuite: stabilise daemon argv rejection
steadytao Oct 8, 2026
2cde8e0
testsuite: make timestamp fixtures deterministic
steadytao Oct 8, 2026
0909aac
testsuite: wait for observable process state
steadytao Oct 8, 2026
de7cb2c
testsuite: cover inetd socket detection
steadytao Oct 8, 2026
eb389c0
testsuite: cover daemon address families
steadytao Oct 8, 2026
c95dad0
testsuite: cover daemon connection limits
steadytao Oct 8, 2026
ed0b57e
testsuite: refresh coverage matrix
steadytao Oct 8, 2026
beecb74
testsuite: cover ignore-missing-args
steadytao Oct 8, 2026
2134977
testsuite: cover old-dirs
steadytao Oct 8, 2026
cfc65a1
testsuite: cover iconv
steadytao Oct 8, 2026
1acb64d
testsuite: cover output and logging controls
steadytao Oct 8, 2026
1279259
testsuite: cover ignore-errors
steadytao Oct 8, 2026
21356d7
testsuite: narrow stderr routing checks
steadytao Oct 8, 2026
054569b
ci: cache prepared virtual machines
steadytao Oct 8, 2026
518ae0f
testsuite: rework Python test harness
steadytao Oct 9, 2026
c117a36
docs: refresh testsuite documentation
steadytao Oct 9, 2026
5aa6eb4
ci: bound NetBSD VM host setup
steadytao Oct 9, 2026
cd5387c
ci: bound remaining VM host setup
steadytao Oct 9, 2026
4c58f93
testsuite: read xattrs across platforms
steadytao Oct 9, 2026
e8b3a4e
testsuite: classify Zstandard thread support
steadytao Oct 9, 2026
4ba8eed
testsuite: support matrix profiles
steadytao Oct 9, 2026
2e6f915
testsuite: classify platform requirements
steadytao Oct 9, 2026
065a246
testsuite: retire expected-skip policy
steadytao Oct 9, 2026
6b598c6
testsuite: profile BSD and Solaris
steadytao Oct 9, 2026
4185369
ci: enforce BSD and Solaris profiles
steadytao Oct 9, 2026
8c7dfe9
testsuite: complete capability profiles
steadytao Oct 9, 2026
e403878
testsuite: support wrapped diagnostic runs
steadytao Oct 9, 2026
8956167
ci: profile diagnostic workflows
steadytao Oct 9, 2026
4c9b7e9
ci: fix Valgrind matrix
steadytao Oct 10, 2026
d473d6b
testsuite: classify files-from race skips
steadytao Oct 10, 2026
e8a873a
ci: preserve root Valgrind evidence
steadytao Oct 10, 2026
4415c99
ci: avoid duplicate ASan TCP tests
steadytao Oct 10, 2026
f0177c9
ci: avoid duplicate TCP tests
steadytao Oct 10, 2026
81710fa
ci: pass Valgrind options safely
steadytao Oct 10, 2026
a79c959
testsuite: organise tests and helpers
steadytao Oct 10, 2026
e574cd5
testsuite: stage harness for user namespace test
steadytao Oct 10, 2026
d5ecca9
testsuite: split process helpers
steadytao Oct 10, 2026
ae9f57b
testsuite: simplify test layout
steadytao Oct 10, 2026
4e390e2
ci: trim workflow commentary
steadytao Oct 10, 2026
da6cd86
docs: refine wording/layout
steadytao Oct 10, 2026
83e7e6e
testsuite: fix renamed test symlink targets
steadytao Oct 10, 2026
16a0dbf
testsuite: compose overlapping capabilities
steadytao Oct 10, 2026
c8a2dbe
testsuite: move mutation helpers
steadytao Oct 10, 2026
46f0a29
testsuite: separate daemon configuration
steadytao Oct 10, 2026
119d250
testsuite: classify transfer failures
steadytao Nov 8, 2026
14c870c
testsuite: remove exit-status wrapper
steadytao Nov 8, 2026
13e72ba
testsuite: remove capability override
steadytao Nov 8, 2026
51f686c
testsuite: fix long socket paths
steadytao Nov 8, 2026
9782ab4
testsuite: share native checks
steadytao Nov 8, 2026
c41749d
ci: use shared checks on Ubuntu
steadytao Nov 8, 2026
0f4d50d
testsuite: fix permission fixtures
steadytao Nov 8, 2026
cc2e175
ci: group workflows
steadytao Nov 8, 2026
bb62cdc
ci: flatten platform checks
steadytao Nov 8, 2026
8ea0623
testsuite: check privilege profiles
steadytao Nov 8, 2026
e092c9f
testsuite: make search-only checks portable
steadytao Nov 8, 2026
dbf70a7
ci: run non-root checks
steadytao Nov 8, 2026
064b89f
testsuite: check build features
steadytao Nov 9, 2026
b911ac7
testsuite: fix BSD checks
steadytao Nov 9, 2026
6c5b5aa
ci: expand native coverage
steadytao Nov 9, 2026
d703955
testsuite: fix ACL tool discovery
steadytao Nov 9, 2026
6441d52
ci: expand platform matrices
steadytao Nov 9, 2026
74e9c8c
ci: probe directory access
steadytao Nov 9, 2026
44b72ce
testsuite, ci: tidy names
steadytao Nov 9, 2026
73344ba
ci: fix platform checks
steadytao Nov 9, 2026
a43ac70
ci: test native Linux ARM64
steadytao Nov 9, 2026
a91f69b
testsuite: fix portable Linux checks
steadytao Nov 9, 2026
a3ebdad
ci: test musl and 32-bit Linux
steadytao Nov 9, 2026
cad15a0
ci: fix hosted Linux checks
steadytao Nov 9, 2026
cbb22ec
ci: update actions and pin runners
steadytao Nov 9, 2026
a94ca8e
ci: test installed rsync-ssl
steadytao Nov 9, 2026
dcac0fd
ci: clarify analysis checks
steadytao Nov 9, 2026
d3184c8
ci: simplify analysis names
steadytao Nov 9, 2026
7b68d61
ci: restore diagnostics interface
steadytao Nov 9, 2026
54c4db9
testsuite: separate applicability from support
steadytao Nov 9, 2026
be1fbc5
chore: reconcile/rebase
steadytao Nov 9, 2026
160be2a
testsuite: clarify expected failures
steadytao Nov 9, 2026
b19a6dc
testsuite: fix runtime requirements
steadytao Nov 9, 2026
69d4375
ci: use sh for portable steps
steadytao Nov 9, 2026
a5bb9ba
testsuite: remove unused tools
steadytao Nov 9, 2026
0ff49d9
testsuite: tidy docs
steadytao Nov 9, 2026
af77b99
testsuite: fix profiles and fixtures
steadytao Nov 10, 2026
e988336
testsuite: tidy tools and docs
steadytao Nov 10, 2026
7d3e26c
testsuite: fix platform checks
steadytao Nov 10, 2026
f128438
ci: clarify architecture labels
steadytao Nov 10, 2026
bb79c99
testsuite: fix paths and account lookup
steadytao Nov 10, 2026
6abba69
testsuite: fix BSD checks
steadytao Nov 10, 2026
8b2aba9
ci: simplify workflows
steadytao Nov 10, 2026
fe98e4c
testsuite: organise the harness
steadytao Nov 10, 2026
0a0cedd
ci: group platform workflows
steadytao Nov 10, 2026
cc76425
testsuite: fix wrapped rsync lookup
steadytao Nov 10, 2026
c278367
testsuite: enforce test applicability
steadytao Nov 10, 2026
4bc6f5c
testsuite: strengthen behavioural coverage
steadytao Nov 10, 2026
2693176
testsuite: simplify test fixtures
steadytao Nov 10, 2026
2e1eb70
testsuite: fix platform assumptions
steadytao Nov 11, 2026
ea75efc
ci: install Git on NetBSD
steadytao Nov 11, 2026
7596f31
testsuite: qualify historical peers in both roles
steadytao Nov 11, 2026
19061d5
testsuite: expand historical peers
steadytao Nov 11, 2026
766b701
testsuite: make version role self-test portable
steadytao Nov 11, 2026
b801fdf
ci: run Android Bionic and Termux transfers
steadytao Nov 11, 2026
1580db7
ci: group X86-64 Bionic and Termux checks
steadytao Nov 11, 2026
f23d0c3
testsuite: handle divergent handshake clocks
steadytao Nov 11, 2026
9516beb
ci: normalise Android and macOS checks
steadytao Nov 11, 2026
7af914a
ci: group Valgrind checks
steadytao Nov 11, 2026
7219534
ci: separate Bionic and Termux checks
steadytao Nov 11, 2026
4b9e366
ci: normalise workflow checks
steadytao Nov 11, 2026
a93638e
ci: require Clang 21
steadytao Nov 11, 2026
0cfff4f
docs: restore released NEWS
steadytao Nov 11, 2026
fbfb978
ci: Android emulation
steadytao Nov 11, 2026
e455d65
testsuite: fix recipe timeout race
steadytao Nov 11, 2026
b4cfb7a
testsuite: migrate stream error regressions
steadytao Nov 11, 2026
498aff0
ci: consolidate Android checks
steadytao Nov 11, 2026
02a84fe
ci: report emulator startup errors
steadytao Nov 11, 2026
0fb6e5a
testsuite: support out-of-tree fixtures
steadytao Nov 11, 2026
0ba1b61
testsuite: support Python 3.7
steadytao Nov 11, 2026
70e4d61
testsuite: fix metadata parsing on newer Python
steadytao Nov 11, 2026
0d961a5
ci: install emulator audio library
steadytao Nov 11, 2026
4dc9283
packaging: share source archive builder
steadytao Nov 11, 2026
3881295
ci: qualify source archives
steadytao Nov 11, 2026
f2b7aa8
ci: validate interop admission policies
steadytao Nov 12, 2026
a203e5a
ci: add interop isolation probes
steadytao Nov 12, 2026
ae1a40c
ci: run interop isolation checks
steadytao Nov 12, 2026
b648f72
ci: fix Tailscale setup
steadytao Nov 12, 2026
3d3d4a0
ci: temporarily isolate network checks
steadytao Nov 12, 2026
e41c786
ci: fix interop API requests
steadytao Nov 12, 2026
dd298d2
ci: verify worker API denials
steadytao Nov 12, 2026
70206ae
ci: report interop guard failures
steadytao Nov 12, 2026
fc11bb1
ci: restore full matrix
steadytao Nov 12, 2026
b56088b
ci: isolate interoperability credentials
steadytao Nov 12, 2026
8dfdacc
testsuite: add interoperability fixture
steadytao Nov 12, 2026
7fe34bf
testsuite: verify restricted SSH transfers
steadytao Nov 12, 2026
9ca333d
testsuite: avoid copying symlink metadata
steadytao Nov 12, 2026
0dc85aa
testsuite: report daemon listing failures
steadytao Nov 12, 2026
e81ec91
testsuite: share connection fixtures
steadytao Nov 12, 2026
50dce0d
ci: share Cygwin setup
steadytao Nov 12, 2026
41f1e64
ci: run seven-platform transfers
steadytao Nov 12, 2026
df1c2e5
docs: describe interoperability checks
steadytao Nov 12, 2026
0029dca
ci: use master interoperability controller
steadytao Nov 12, 2026
69fda32
ci: fix interoperability setup
steadytao Nov 12, 2026
646a5bb
ci: focus on interoperability
steadytao Nov 12, 2026
5b6c509
ci: isolate endpoint failures
steadytao Nov 12, 2026
ba9ce96
testsuite: fix Python 3.7 peer checks
steadytao Nov 12, 2026
2aee3f9
ci: restore full matrix
steadytao Nov 12, 2026
d9002a4
testsuite: isolate fixture listings
steadytao Nov 13, 2026
943c653
ci: test Termux app sandbox
steadytao Nov 13, 2026
0aa128f
testsuite: cover storage and metadata
steadytao Nov 13, 2026
0bc1ed1
testsuite: extend storage checks
steadytao Nov 13, 2026
a73f7b8
testsuite: fix fake-super ACL updates
steadytao Nov 13, 2026
0bde801
ci: fix metadata fixtures
steadytao Nov 13, 2026
4c2a8b5
ci: fix NetBSD build setup
steadytao Nov 13, 2026
a5706ef
testsuite: support Solaris 11.4 ACL tools
steadytao Nov 13, 2026
832b9e6
cleanup: fix file endings
steadytao Nov 13, 2026
39fbd42
ci: fix NetBSD package setup
steadytao Nov 13, 2026
9a40dd6
testsuite: use native Solaris ACL tools
steadytao Nov 13, 2026
157038a
testsuite: simplify test helpers
steadytao Nov 13, 2026
00359e3
docs: simplify testsuite documentation
steadytao Nov 13, 2026
f9e9045
testsuite: restore opaque backups on their origin
steadytao Nov 13, 2026
d982d2a
testsuite: preserve source provenance
steadytao Nov 13, 2026
515098a
ci: retry NetBSD package installs
steadytao Nov 13, 2026
80ca32b
testsuite: fix old Git checks
steadytao Nov 13, 2026
a12b9e2
ci: trim duplicate jobs
steadytao Nov 13, 2026
f37d782
ci: align names and result paths
steadytao Nov 13, 2026
5d67120
testsuite: report removal failures
steadytao Nov 13, 2026
b798315
testsuite: reuse harness helpers
steadytao Nov 13, 2026
3743115
ci: avoid repeated network cleanup
steadytao Nov 13, 2026
631e2fc
testsuite: synchronise source changes
steadytao Nov 13, 2026
9bc1ae6
testsuite: set filter timestamps explicitly
steadytao Nov 13, 2026
cb0cafb
testsuite: fix protocol fixtures
steadytao Nov 13, 2026
2541f0d
testsuite: strengthen protocol fixtures
steadytao Nov 14, 2026
c2cadb5
testsuite: fix rename race cleanup
steadytao Nov 14, 2026
390c34c
ci: fix interoperability failures
steadytao Nov 14, 2026
0fa08e3
ci: simplify network controller runs
steadytao Nov 14, 2026
da32ff0
testsuite: remove stale test material
steadytao Nov 14, 2026
2ea8b47
testsuite: fix xattr race cleanup
steadytao Nov 14, 2026
cfbbaa9
ci: scope Cygwin ACL fixtures
steadytao Nov 14, 2026
3ff3aaa
ci: handle prior network revocation
steadytao Nov 14, 2026
5bcb86f
docs: simplify testsuite guidance
steadytao Nov 14, 2026
38e76c3
ci: select checks from changed paths
steadytao Nov 14, 2026
64181d5
ci: skip unselected network runs
steadytao Nov 14, 2026
273c5fc
ci: accept pull request file arrays
steadytao Nov 14, 2026
cf9fd21
testsuite: use portable fake-super ACLs
steadytao Nov 14, 2026
308fb33
ci: align interoperability startup timeouts
steadytao Nov 14, 2026
796e645
ci: compile Python sources on 3.7
steadytao Nov 14, 2026
8474908
ci: retry interoperability SSH connections
steadytao Nov 14, 2026
10e4156
ci: restore Windows Git after Cygwin
steadytao Nov 14, 2026
d85ba01
ci: harden interoperability discovery and SSH
steadytao Nov 14, 2026
69da93f
ci: fix Python 3.7 source check
steadytao Nov 14, 2026
22b9441
ci: use the network controller run name
steadytao Nov 14, 2026
09705a0
ci: reconcile interoperability controller
steadytao Nov 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 3 additions & 11 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
* text=auto eol=lf

# The rsync-web/ subdirectory holds the project website source content
# (mirrors what gets pushed to https://rsync.samba.org). Exclude it from
# `git archive` output so the release source tarball produced by
# packaging/release.py step_7_tarball does not bloat with HTML the
# tarball doesn't need.
# Website content is published separately from the release source archive.
/rsync-web/ export-ignore

# old_versions/ holds static binaries of historical rsync releases, used by the
# version-mixing test suite (.github/workflows/ubuntu-version-mix.yml) to run
# the current code against a real old peer over the daemon / remote-shell.
# Mark the binaries as binary so the `text=auto eol=lf` rule above can't try to
# normalise line endings and corrupt them; export-ignore keeps them out of the
# release source tarball.
# Archived peers must retain their bytes and stay out of release archives.
/old_versions/rsync_* binary
/old_versions/rsync_* export-ignore
/old_versions/binaries.json export-ignore
34 changes: 20 additions & 14 deletions .github/INTEROPERABILITY.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
# Network checks
# Cross-platform transfers

CI / Interoperability contains Linux, FreeBSD, NetBSD, OpenBSD, macOS, Solaris and Cygwin endpoints. Linux, macOS and Cygwin execute on hosted runners; the BSD and Solaris binaries execute inside their guests. Guest forwarding exposes fixture ports only. Administrative SSH stays local to the VM host.
We run Linux, FreeBSD, NetBSD, OpenBSD, macOS, Solaris and Cygwin endpoints. Linux, macOS and Cygwin run directly on hosted runners; BSD and Solaris run inside guests. We expose only the fixture ports through Tailscale and keep administrative SSH local to each guest host.

The 168 cases cover every directed platform pair, push and pull initiation and SSH and daemon transport. Separate trees prevent concurrent cases from sharing destinations. Initial copies finish before verification and source updates; checksum updates finish before destination verification. Results include data, modes, integer timestamps, symlink targets and hard-link groups.
We run push and pull transfers over SSH and daemon connections for every ordered platform pair, giving 168 data cases. We use separate trees so concurrent cases never share a destination. The first phase verifies the initial transfer. The second verifies checksum updates and deletion. We compare data, modes, integer timestamps, symlink targets and hard-link groups.

The parent CI run and attempt identify each cohort. The tested revision comes from GitHub's resolved reusable-workflow commit and is checked against the native checkout. Endpoint records also contain the operating system, effective UID/GID and executable SHA-256. Required depends on all seven endpoint jobs, complete case results and confirmed network cleanup.
We test compatible POSIX ACLs and xattrs separately. We return fake-super backups unchanged with `-XX` and decode them only on their originating platform. We require explicit errors for unsupported metadata and empty NTFS xattrs.

We bind every record to the parent CI run, attempt and tested revision. Endpoint records include the operating system, effective UID, effective GID and executable SHA-256. We accept the final result only after all seven endpoints complete every assigned case and we confirm network cleanup.

Artefact names end in `attempt-N`. Context and lease artefacts use the controller attempt; other interoperability artefacts use the parent CI attempt. The suffix prevents a rerun from consuming records from an earlier attempt.

We publish each phase result before waiting at the barrier, which keeps a failed endpoint available until its peers finish the current phase. We block later phases but still run local cleanup. A missing, failed or incomplete endpoint result fails the final check.

## Authentication

The Network controller uses trusted default-branch code through a workflow_run listener. It is deployed independently of the PR endpoint workflow and ignores CI runs which have not selected that workflow. Its existing OIDC identity has write access to auth_keys, policy_file, devices:core and devices:posture_attributes in the dedicated test tailnet. The posture scope is a dependency of policy-file writes. Enrolment is restricted to tag:quarantine.
The Network controller runs trusted default-branch code through a `workflow_run` listener and ignores CI runs that did not select the endpoint workflow. We configure the dedicated test tailnet outside this repository. The controller identity needs write access to `auth_keys`, `policy_file`, `devices:core` and `devices:posture_attributes`. We restrict enrolment to `tag:quarantine`.

The controller checks CI and endpoint liveness before obtaining authority, requesting keys and publishing enrolment.

Endpoint jobs have read-only GitHub permissions and no OIDC permission. Each generates a temporary RSA recipient and receives one encrypted, single-use enrolment key. RSA-OAEP uses 3072-bit keys and SHA-256. Key files and recipient private keys are removed after enrolment. SSH private keys are removed when fixture services stop. Plaintext credentials are excluded from artifacts and job outputs.
We give endpoint jobs read-only GitHub permissions and no OIDC permission. Each endpoint generates a temporary RSA recipient and receives one encrypted, single-use enrolment key. RSA-OAEP uses 3072-bit keys and SHA-256. We remove the enrolment files immediately and remove SSH private keys when fixture services stop. We never include plaintext credentials in artefacts or job output.

Endpoints authenticate through the supported Tailscale CLI. Client package checksums and the macOS source revision are pinned in interop-client.py. Route acceptance and DNS changes are disabled and checked through the client's active preferences. SSH host keys are pinned to endpoint identities.
We pin the Tailscale CLI in `interop-client.py` and pin SSH host keys to endpoint identities. We disable route acceptance and DNS changes and verify the active preferences.

Admission permits only the cohort's registered IPv4 addresses on TCP ports 18731 and 18733. Conditional policy updates preserve other cohorts. Local service checks precede and follow denial probes. Key expiry limits unused enrolment credentials; active nodes require explicit removal.
We admit only the cohort's registered IPv4 addresses on TCP ports 18731 and 18733. Policy updates preserve other cohorts. We check local services before and after the denial probes. Enrolment keys expire; we remove active nodes explicitly.

## Configuration

The production federated identity uses these claims:
We configure the controller identity with these claims:

Field | Value
--- | ---
Expand All @@ -32,14 +38,14 @@ event_name | workflow_run
workflow_ref | RsyncProject/rsync/.github/workflows/interoperability*.yml@refs/heads/master
runner_environment | github-hosted

Endpoint jobs have no federated identity. Controller discovery uses the parent CI run and attempt and verifies the controller's default-branch revision. No per-PR identity, branch or repository variable is required. The controller checks CI and endpoint liveness before obtaining authority, requesting keys and publishing enrolment.
We give endpoint jobs no federated identity. We find the controller from the parent CI run and attempt. We then verify its default-branch revision. We do not need a per-PR identity, branch or repository variable.

## Recovery

Normal cleanup revokes the recorded grant, removes owned devices and revokes issued keys. An individual failure does not prevent attempts to remove the remaining resources. Device deletion checks the recorded node identity; reassigned devices remain untouched.
We always try to revoke the cohort grant, remove its devices and revoke its enrolment keys. We remove a device only while its current node ID matches the lease. If a run fails before any key request, we record that no resources need cleanup without marking transfers as passed.

Keys created before enrolment delivery can be revoked from the local journal without an admission lease. An interrupted request with an unknown key ID or enrolment delivered without a lease requires reconciliation. A failed transfer remains failed even when resource cleanup succeeds.
Keys created before enrolment delivery can be revoked from the local journal without an admission lease. An interrupted request with an unknown key ID or enrolment delivered without a lease requires reconciliation.

Admission leases are attested before access is granted. Recovery verifies the original lease bytes, repository, controller workflow, signing commit, source ref and run attempt before modifying the tailnet. Failed or cancelled controller runs trigger recovery from trusted code.
We attest the admission lease before granting access. A failed or cancelled controller triggers the cleanup workflow. We first check whether cleanup already succeeded. Otherwise we verify the lease bytes, repository, controller workflow, signing commit, source reference and run attempt before changing the tailnet.

Missing leases and provider failures require reconciliation. Partial enrolment before a lease exists remains quarantined; hostnames alone are insufficient grounds for device deletion. Cleanup failure keeps the CI result unsuccessful.
If automated cleanup fails, we use the attested `interoperability-lease-attempt-N` artefact from the controller run to identify the cohort. We remove only the recorded grant, keys and devices while each device's node ID still matches. Without an attested lease, we compare the `interoperability-ready-PLATFORM-attempt-N` artefacts with quarantined node IDs before making any change. A hostname alone is not enough to delete a device.
216 changes: 216 additions & 0 deletions .github/actions/interoperability/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
name: Directed transfers
description: Native SSH and daemon transfers between seven endpoints
inputs:
platform:
required: true
description: Native endpoint
guest:
default: 'false'
description: Use the existing local VM SSH connection
outputs:
blocked:
description: A shared phase could not run
value: ${{ steps.outcome.outputs.blocked }}
runs:
using: composite
steps:
- name: Install Tailscale
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py install "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Generate enrolment recipient
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py recipient "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload recipient
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-public-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/public-key.json
if-no-files-found: error
retention-days: 7
- name: Join quarantine
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py connect "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Start native fixture services
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py prepare "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload endpoint identity
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-ready-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/ready.json
if-no-files-found: error
retention-days: 7
- name: Check quarantine
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py quarantine "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload quarantine result
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-quarantine-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/quarantine.json
if-no-files-found: error
retention-days: 7
- name: Check admission
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py admit "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload endpoint admission
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-admitted-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/admitted.json
if-no-files-found: error
retention-days: 7
- name: Initial transfers
id: transfer1
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py transfer1 "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload initial transfer completion
id: transfer1_upload
if: ${{ always() && !cancelled() && env.INTEROP_BLOCKED != 'true' && (steps.transfer1.outcome == 'success' || steps.transfer1.outcome == 'failure') }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-transfer1-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/transfer1.json
if-no-files-found: error
retention-days: 7
- name: Complete initial transfer phase
if: ${{ always() && !cancelled() && steps.transfer1_upload.outcome == 'success' }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
run: python3 -B -S .github/scripts/interop-host.py wait1 "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Verify initial data and update sources
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py next "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload update readiness
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-next-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/next.json
if-no-files-found: error
retention-days: 7
- name: Checksum updates and deletion
id: transfer2
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py transfer2 "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload update completion
id: transfer2_upload
if: ${{ always() && !cancelled() && env.INTEROP_BLOCKED != 'true' && (steps.transfer2.outcome == 'success' || steps.transfer2.outcome == 'failure') }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-transfer2-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/transfer2.json
if-no-files-found: error
retention-days: 7
- name: Complete updated transfer phase
if: ${{ always() && !cancelled() && steps.transfer2_upload.outcome == 'success' }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
run: python3 -B -S .github/scripts/interop-host.py wait2 "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Verify updated native data
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py verify "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload transfer result
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-result-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/result.json
if-no-files-found: error
retention-days: 7
- name: Check revocation
if: env.INTEROP_BLOCKED != 'true'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py revoked "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Upload revocation result
if: env.INTEROP_BLOCKED != 'true'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-revoked-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/revoked.json
if-no-files-found: error
retention-days: 7
- name: Upload blocked phase
if: ${{ always() && env.INTEROP_BLOCKED == 'true' }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: interoperability-blocked-${{ inputs.platform }}-attempt-${{ github.run_attempt }}
path: ${{ runner.temp }}/interoperability/blocked.json
if-no-files-found: error
retention-days: 7
- name: Stop fixture services and leave the network
if: always()
shell: bash
env:
GH_TOKEN: ${{ github.token }}
INTEROP_PLATFORM: ${{ inputs.platform }}
INTEROP_GUEST: ${{ inputs.guest }}
run: python3 -B -S .github/scripts/interop-host.py stop "$INTEROP_PLATFORM" --root "$RUNNER_TEMP/interoperability"
- name: Record endpoint outcome
id: outcome
if: always()
shell: bash
run: |
python3 -B -S - <<'PY'
import os
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
output.write('blocked=' + os.environ.get('INTEROP_BLOCKED', 'false') + '\n')
PY
Loading
Loading