Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "Git ref to check out and test"
required: false
default: ""
mixed_version_tag:
description: "Released tag the mixed-version Community gate builds beside the head"
required: false
default: ""
push:
# develop pushes keep the shared build caches warm for every PR into develop.
branches: [main, develop]
Expand All @@ -29,6 +33,8 @@ env:
# Reviewed ARM64 archive pin, shared by the producer and every CI consumer.
CI_LLAMA_AMD64_SHA256: 0dee60d855f864aa9e8a7200014baf9419e3a4c9ccb3f3609532aad0ed34f2c0
CI_LLAMA_ARM64_SHA256: a92e404708feae91cbede43322e445971450de8a204f4ff51502a7f42f5df8b8
# The released Runtime the mixed-version Community gate pairs the head with.
CI_MIXED_VERSION_TAG: ${{ inputs.mixed_version_tag || 'v2.0.1' }}
# An explicit dispatch ref may select a tag independently of the workflow ref.
CI_USE_CACHE: ${{ github.ref_type != 'tag' && !(github.event_name == 'workflow_dispatch' && inputs.ref != '') }}
# Only develop pushes write shared caches (Rust, apt, Kubo, engine). PR,
Expand Down Expand Up @@ -739,7 +745,8 @@ jobs:
source-home-linux:
name: source-home-linux (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 120
# The mixed-version steps add a second Runtime build and four arrangements.
timeout-minutes: 180
needs: [source-gate, engine-llama-amd64]
env:
CI_APT_PACKAGES: coturn e2fsprogs ffmpeg musl-tools nasm pkg-config
Expand Down Expand Up @@ -952,6 +959,39 @@ jobs:
env:
CI_SOURCE_HOME: ${{ runner.temp }}/elastos-source-home
run: scripts/ci-installed-journeys.sh two-home-messages
# Homes and the Community node update at different times, so a release
# must hold for every pairing of this candidate and the last released
# Runtime. Merges and releases pay for the second build; a pull-request
# push runs the same-version journey above and skips these three steps.
- name: check out the released tag beside the candidate
id: released-tag
if: matrix.os == 'ubuntu-24.04' && (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref_type == 'tag')))
run: |
set -euo pipefail
git fetch --no-tags --depth 1 origin "refs/tags/$CI_MIXED_VERSION_TAG:refs/tags/$CI_MIXED_VERSION_TAG"
git worktree add --detach "$RUNNER_TEMP/released-tree" "refs/tags/$CI_MIXED_VERSION_TAG"
git -C "$RUNNER_TEMP/released-tree" rev-parse HEAD
- name: install the released Runtime beside the candidate
if: steps.released-tag.outcome == 'success'
timeout-minutes: 45
env:
ELASTOS_COLLABORATION_STARTUP_MODE: isolated
run: bash scripts/ci-mixed-version-source-home.sh "$RUNNER_TEMP/released-tree" "$RUNNER_TEMP/elastos-released-home"
- name: mixed-version Community and direct messages
if: steps.released-tag.outcome == 'success'
timeout-minutes: 45
run: |
set -euo pipefail
python3 scripts/gossip-mixed-version-journey.py \
--candidate-home "$RUNNER_TEMP/elastos-source-home" \
--candidate-data "$RUNNER_TEMP/elastos-source-home/.local/share/elastos" \
--candidate-repo "$GITHUB_WORKSPACE" \
--released-home "$RUNNER_TEMP/elastos-released-home" \
--released-data "$RUNNER_TEMP/elastos-released-home/.local/share/elastos" \
--released-repo "$RUNNER_TEMP/released-tree" \
--evidence "$RUNNER_TEMP/source-home-journeys/mixed-version" \
--fixture-root "$RUNNER_TEMP/mixed-version-fixture" \
| tee -a "$GITHUB_STEP_SUMMARY"
- name: summarize installed model journey
if: always()
env:
Expand Down
2 changes: 2 additions & 0 deletions elastos/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions elastos/crates/elastos-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ x-wing = { version = "=0.1.0", features = ["hazmat", "zeroize"] }
# The rand generation iroh-gossip's membership state machine takes; the
# Community hub test drives that state machine directly.
gossip-rand = { package = "rand", version = "0.10", default-features = false, features = ["std_rng"] }
# The gossip wire encoding, for the neighbour that the actor-wedge test keeps
# silent after the membership handshake.
bytes = "1.7"
postcard = { version = "1", default-features = false, features = ["alloc", "use-std"] }

[features]
default = []
Loading
Loading