Skip to content

Commit bb783cc

Browse files
committed
Compose bounded conversation loading, native paging and Mailroom continuity
Preserve the qualified service/web/native source composition and the narrow ancillary-frame and paging fixes. Release packaging follows separately.
1 parent 947b9c3 commit bb783cc

499 files changed

Lines changed: 59146 additions & 3673 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main]
67
pull_request:
@@ -13,6 +14,10 @@ permissions:
1314
contents: read
1415

1516
jobs:
17+
windows:
18+
name: Windows
19+
uses: ./.github/workflows/windows.yml
20+
1621
desktop-install:
1722
name: Linux desktop installer
1823
runs-on: ubuntu-24.04

‎.github/workflows/nightly.yml‎

Lines changed: 22 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,52 @@
1-
name: Nightly
2-
3-
# A prerelease of main every day there is something new, tagged
4-
# vX.Y.Z-nightly.YYYYMMDD.N where X.Y.Z follows the last release (so a
5-
# nightly sorts after the release it builds on and before the next one) and
6-
# N counts that day's nightlies. It is built and published by release.yml's
7-
# own jobs; the `nightly` update channel takes it (src/core/semver.bend).
1+
name: Nightly candidate (build only)
82

3+
# Future nightly wiring remains available; no tag, public release or pruning
4+
# is performed before root has accepted the candidate's actual package gates.
95
on:
106
schedule:
117
- cron: "17 4 * * *"
128
workflow_dispatch:
139

1410
permissions:
15-
contents: write
11+
contents: read
1612

1713
concurrency:
1814
group: nightly
1915
cancel-in-progress: false
2016

2117
jobs:
22-
tag:
23-
name: Tag
18+
plan:
19+
name: Plan immutable nightly candidate
2420
runs-on: ubuntu-24.04
2521
outputs:
26-
tag: ${{ steps.tag.outputs.tag }}
22+
commit: ${{ steps.identity.outputs.commit }}
23+
version: ${{ steps.identity.outputs.version }}
2724
steps:
2825
- uses: actions/checkout@v4
2926
with:
3027
fetch-depth: 0
31-
- id: tag
32-
env:
33-
MANUAL: ${{ github.event_name == 'workflow_dispatch' }}
28+
- id: identity
3429
run: |
3530
set -eu
36-
git fetch --tags --force
37-
stable=$(git tag -l 'v*' | grep -v -- '-' | sort -V | tail -n1)
31+
stable=$(git tag -l 'v*' | grep -v -- '-' | sort -V | tail -n1 || true)
3832
ver=${stable#v}
3933
ver=${ver:-0.0.0}
4034
maj=${ver%%.*}; rest=${ver#*.}; min=${rest%%.*}; pat=${rest#*.}
4135
base="v$maj.$min.$((pat + 1))"
42-
last=$(git tag -l 'v*-nightly.*' | sort -V | tail -n1)
43-
if [ -n "$last" ] && [ "$(git rev-list -n1 "$last")" = "$(git rev-parse HEAD)" ] && [ "$MANUAL" != true ]; then
44-
echo "main has not moved since $last"
45-
echo "tag=" >> "$GITHUB_OUTPUT"
46-
exit 0
47-
fi
4836
day=$(date -u +%Y%m%d)
49-
n=$(( $(git tag -l "$base-nightly.$day.*" | wc -l) + 1 ))
50-
tag="$base-nightly.$day.$n"
51-
git tag "$tag" HEAD
52-
git push origin "$tag"
53-
echo "tag=$tag" >> "$GITHUB_OUTPUT"
54-
echo "tagged $tag"
37+
# Build-only candidates have no tags to count. Reserve a unique numeric
38+
# suffix per actual run/attempt, including retries of the same source.
39+
[ "$GITHUB_RUN_ATTEMPT" -lt 1000 ]
40+
n=$(( GITHUB_RUN_ID * 1000 + GITHUB_RUN_ATTEMPT ))
41+
echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
42+
echo "version=$base-nightly.$day.$n" >> "$GITHUB_OUTPUT"
5543
56-
release:
57-
name: Release
58-
needs: [tag]
59-
if: needs.tag.outputs.tag != ''
44+
candidate:
45+
name: Build nightly candidate only
46+
needs: [plan]
6047
uses: ./.github/workflows/release.yml
6148
with:
62-
tag: ${{ needs.tag.outputs.tag }}
49+
ref: ${{ needs.plan.outputs.commit }}
50+
version: ${{ needs.plan.outputs.version }}
51+
telemetry_url: https://backplane.works/api/v1/events
6352
secrets: inherit
64-
65-
prune:
66-
name: Keep the last 14 nightlies
67-
needs: [release]
68-
runs-on: ubuntu-24.04
69-
env:
70-
GH_TOKEN: ${{ github.token }}
71-
steps:
72-
- run: |
73-
set -eu
74-
gh release list --repo "$GITHUB_REPOSITORY" --limit 200 --json tagName --jq '.[].tagName' \
75-
| grep -- '-nightly\.' | sort -V -r | tail -n +15 \
76-
| while read -r t; do gh release delete "$t" --repo "$GITHUB_REPOSITORY" --cleanup-tag --yes; done

0 commit comments

Comments
 (0)