Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
878fd5b
feat: localized registry index views and declared default locales (#4…
helix-red Nov 18, 2026
a323e31
fix(web): show release notes in full and open their links in a new ta…
stupleb Nov 18, 2026
32faac8
fix(start-os): stop NetworkManager publishing VPN DNS to systemd-reso…
helix-red Nov 18, 2026
09ed246
fix(start-os): keep streams a re-addressed vhost target still accepts…
Dominion5254 Nov 18, 2026
f09a255
fix(gateway): honor WireGuard MTU on gateway import and update (#4791)
helix-red Nov 18, 2026
9d9699c
docs: backport live-docs a5f53c571 to master
start9-docs-bot[bot] Nov 18, 2026
d8e0074
fix(tunnel): validate subnet and device names (#4798)
MattDHill Nov 18, 2026
ae67559
feat(ci): read package workflow registry settings from caller variabl…
helix-red Nov 18, 2026
926e4aa
feat(sdk): delete excluded paths and prune removed volumes in backups…
MattDHill Nov 18, 2026
b67bf47
fix(security): refresh StartOS/StartWRT kernels and certificate trust…
helix-white Nov 19, 2026
950c539
perf(squashfs): compress data blocks in parallel with byte-identical …
helix-red Nov 19, 2026
436f6a0
fix(storage): unify volume mapping and simplify shared-volume revocat…
helix-white Nov 19, 2026
781d793
fix(ci): pair a new default line with next/<base> in multi-line repos…
MattDHill Nov 19, 2026
781fd64
docs: backport live-docs 030153053 to master
start9-docs-bot[bot] Nov 19, 2026
8aef1d8
fix(storage): back up shared volumes with their stored container ids …
helix-red Nov 19, 2026
f89e1b3
ci: build the container-runtime rootfs natively, upload compressed ar…
helix-red Nov 19, 2026
11fc229
fix(core): rescan gateways when a device gains its IP interface (#4790)
helix-red Nov 19, 2026
21958a2
fix(start-os): carry out a restart or shutdown when a service fails t…
only21mil Nov 19, 2026
e8c4648
docs: backport live-docs d476b3788 to master
start9-docs-bot[bot] Nov 19, 2026
dc3c666
fix(storage): present shared CIFS volumes as nobody in every containe…
helix-red Nov 19, 2026
bbbfed0
feat(start-wrt): factory reset from the FDL button (#4519)
Dominion5254 Nov 19, 2026
f8d8399
fix(start-wrt): resolve a moved device at its new address from the pr…
Dominion5254 Nov 19, 2026
27efae7
fix(start-wrt): hide the PPPoE password from the WAN IPv4 summary (#4…
Dominion5254 Nov 19, 2026
5805c53
docs(start-cli): show how to pass a key to ssh add (#4759)
gStart9 Nov 19, 2026
20aada4
docs: backport live-docs 20466b24c to master
start9-docs-bot[bot] Nov 19, 2026
88bb0d2
docs: backport live-docs 8fe841760 to master
start9-docs-bot[bot] Nov 19, 2026
c01550f
docs: backport live-docs 24c9a8e0c to master
start9-docs-bot[bot] Nov 19, 2026
7b31373
docs: backport live-docs 201de9412 to master
start9-docs-bot[bot] Nov 19, 2026
d10acf7
docs: backport live-docs ad1e6f489 to master
start9-docs-bot[bot] Nov 19, 2026
0095c0e
fix(ci): retry artifact listing pages GitHub fails transiently (#4812)
helix-red Nov 20, 2026
00a168b
fix(ci): add swap to StartWRT riscv64 builds (#4803)
Dominion5254 Nov 20, 2026
1582474
fix(sdk): drop undeclared keys from action input (#4814)
MattDHill Nov 20, 2026
26dccef
feat(os): grant optical drives to service containers
sovsender Nov 20, 2026
c949d13
style(os): match rustfmt output in lxc
sovsender Nov 20, 2026
63a33ed
fix(core): keep a range's public IP on with its plain public domain a…
Dominion5254 Nov 20, 2026
f6491f8
fix(start-os): update re-added SSH keys in place and publish them to …
gStart9 Nov 20, 2026
634d36c
Merge remote-tracking branch 'upstream/master' into feat/optical-drives
sovsender Nov 20, 2026
2606a12
fix(os): harden optical drive sync and SDK guards
sovsender Nov 20, 2026
ec90d95
ci: skip jobs that need Start9's credentials on forks
sovsender Nov 20, 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
  •  
  •  
  •  
30 changes: 16 additions & 14 deletions .forgejo/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ name: Release
type: boolean
default: false
RELEASE_REGISTRY:
description: The registry to publish to
description: The registry to publish to. Defaults to the caller's RELEASE_REGISTRY variable.
type: string
default: ${{ vars.RELEASE_REGISTRY }}
S3_S9PKS_BASE_URL:
description: S3 base URL for package uploads (e.g. https://bucket.region.digitaloceanspaces.com)
description: S3 base URL for package uploads (e.g. https://bucket.region.digitaloceanspaces.com). Defaults to the caller's S3_S9PKS_BASE_URL variable.
type: string
default: ${{ vars.S3_S9PKS_BASE_URL }}
REGISTRY_PROXY:
description: Proxy URL start-cli uses to reach the registries, e.g. socks5h://proxy.example:9050 for .onion registries. The proxy must already be reachable from the runner. Defaults to the caller's REGISTRY_PROXY variable.
type: string
default: ${{ vars.REGISTRY_PROXY }}
secrets:
DEV_KEY:
description: Developer signing key
Expand Down Expand Up @@ -93,14 +99,14 @@ jobs:
uses: https://github.com/Start9Labs/start-technologies/.github/actions/build-s9pk@master
with:
target: ${{ matrix.target }}
- name: Upload s9pks for Publish stage
- name: Upload s9pks
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
with:
name: build-${{ matrix.target || 'default' }}
path: ./*.s9pk
if-no-files-found: error
retention-days: 14
compression-level: 0
retention-days: 1
name: s9pks-${{ matrix.target || 'default' }}
path: '*.s9pk'
Publish:
needs: BuildMatrix
runs-on: ubuntu-latest
Expand All @@ -109,6 +115,10 @@ jobs:
steps:
- name: Setup publish environment
uses: https://github.com/Start9Labs/start-technologies/.forgejo/actions/setup-publish-env@master
- name: Configure registry proxy
uses: https://github.com/Start9Labs/start-technologies/.github/actions/configure-registry-proxy@master
with:
proxy: ${{ inputs.REGISTRY_PROXY }}
- name: Checkout services repository
uses: https://github.com/actions/checkout@v6
with:
Expand All @@ -121,7 +131,6 @@ jobs:
- name: Collect s9pks from BuildMatrix
uses: https://data.forgejo.org/forgejo/download-artifact@v4
with:
pattern: build-*
merge-multiple: true
path: .
- name: Verify s9pks
Expand Down Expand Up @@ -302,10 +311,3 @@ jobs:
start-cli --registry "$REGISTRY" registry package add "$s9pk" --url "${GH_URL}/${s9pk}"
done
shell: bash
- name: Upload s9pks
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
with:
retention-days: 14
compression-level: 0
name: s9pks
path: '*.s9pk'
23 changes: 19 additions & 4 deletions .forgejo/workflows/tagAndRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ name: Tag and Release
workflow_call:
inputs:
REFERENCE_REGISTRY:
description: Registry where published versions are permanent (used to check if a version is already taken)
description: Registry where published versions are permanent (used to check if a version is already taken). Defaults to the caller's REFERENCE_REGISTRY variable.
type: string
required: true
default: ${{ vars.REFERENCE_REGISTRY }}
FREE_DISK_SPACE:
description: Free up disk space before building
type: boolean
default: false
RELEASE_REGISTRY:
description: Test registry to publish to
description: Test registry to publish to. Defaults to the caller's RELEASE_REGISTRY variable.
type: string
default: ${{ vars.RELEASE_REGISTRY }}
S3_S9PKS_BASE_URL:
description: S3 base URL for package uploads
description: S3 base URL for package uploads. Defaults to the caller's S3_S9PKS_BASE_URL variable.
type: string
default: ${{ vars.S3_S9PKS_BASE_URL }}
REGISTRY_PROXY:
description: Proxy URL start-cli uses to reach the registries, e.g. socks5h://proxy.example:9050 for .onion registries. The proxy must already be reachable from the runner. Defaults to the caller's REGISTRY_PROXY variable.
type: string
default: ${{ vars.REGISTRY_PROXY }}
secrets:
DEV_KEY:
description: Developer signing key
Expand All @@ -40,6 +46,10 @@ jobs:
uses: https://github.com/actions/checkout@v6
- name: Install start-cli
uses: https://github.com/Start9Labs/start-technologies/.github/actions/install-start-cli@master
- name: Configure registry proxy
uses: https://github.com/Start9Labs/start-technologies/.github/actions/configure-registry-proxy@master
with:
proxy: ${{ inputs.REGISTRY_PROXY }}
- name: Extract package ID and version
id: extract
uses: https://github.com/Start9Labs/start-technologies/.github/actions/extract-version@master
Expand All @@ -49,6 +59,10 @@ jobs:
PACKAGE_ID="${{ steps.extract.outputs.package_id }}"
VERSION="${{ steps.extract.outputs.version }}"
REFERENCE_REGISTRY="${{ inputs.REFERENCE_REGISTRY }}"
if [ -z "$REFERENCE_REGISTRY" ]; then
echo "::error::No reference registry: set the REFERENCE_REGISTRY variable or pass the input."
exit 1
fi

# hello-world is the canonical package scaffold, not a released package.
# Skipping it here lets every caller (including hello-world's own) use the
Expand Down Expand Up @@ -94,6 +108,7 @@ jobs:
FREE_DISK_SPACE: ${{ inputs.FREE_DISK_SPACE }}
RELEASE_REGISTRY: ${{ inputs.RELEASE_REGISTRY }}
S3_S9PKS_BASE_URL: ${{ inputs.S3_S9PKS_BASE_URL }}
REGISTRY_PROXY: ${{ inputs.REGISTRY_PROXY }}
secrets:
DEV_KEY: ${{ secrets.DEV_KEY }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
Expand Down
41 changes: 41 additions & 0 deletions .github/actions/configure-registry-proxy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Configure Registry Proxy'
description: |
Routes this runner's start-cli requests through a proxy, so registries can be
Tor (.onion) addresses. No proxy removes any proxy an earlier job configured.
inputs:
proxy:
description: 'Proxy URL for start-cli, e.g. socks5h://proxy.example:9050. A .onion registry needs socks5h, which resolves names through the proxy.'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Configure registry proxy
env:
PROXY: ${{ inputs.proxy }}
run: |
# Host-backed Forgejo jobs share this home directory across jobs and runs.
CONFIG=~/.startos/config.yaml
without_proxy() { grep -v '^proxy:' "$CONFIG" 2>/dev/null || true; }

if [ -z "$PROXY" ]; then
if [ -f "$CONFIG" ]; then
without_proxy > "$CONFIG.new"
mv "$CONFIG.new" "$CONFIG"
fi
exit 0
fi

case "$PROXY" in
*://*) ;;
*)
echo "::error::The registry proxy has no scheme; use e.g. socks5h://proxy.example:9050"
exit 1
;;
esac

mkdir -p ~/.startos
{ without_proxy; printf 'proxy: %s\n' "$(jq -n --arg p "$PROXY" '$p')"; } > "$CONFIG.new"
mv "$CONFIG.new" "$CONFIG"
echo "start-cli will reach registries through the configured proxy."
shell: bash
40 changes: 40 additions & 0 deletions .github/actions/riscv-action-runtime/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: RISC-V action runtime
description: >-
Replaces the runner's bundled action Node with the requested release, run
`--single-threaded`. V8's background threads corrupt the heap on the riscv64
runners during large artifact transfers. Leaves the runtime untouched when the
download or probe fails.
inputs:
nodejs-version:
description: Node release to install
required: true
runs:
using: composite
steps:
# Actions use the runner's bundled Node, not the Node on GITHUB_PATH.
# Its wrapper is bash; dash drops hyphenated `INPUT_*` variables.
- shell: bash
env:
NODEJS_VERSION: ${{ inputs.nodejs-version }}
run: |
set -euo pipefail
worker="$(readlink -f "/proc/$PPID/exe")"
test "$(basename "$worker")" = Runner.Worker
runner_node="$(dirname "$worker")/../externals/node24/bin/node"
echo "Bundled action runtime: $("$runner_node" --version)"
base="https://unofficial-builds.nodejs.org/download/release/v${NODEJS_VERSION}"
tarball="node-v${NODEJS_VERSION}-linux-riscv64.tar.xz"
cd "$RUNNER_TEMP"
curl -fsSLO "$base/$tarball"
curl -fsSL "$base/SHASUMS256.txt" | grep " $tarball\$" | sha256sum -c -
tar -xJf "$tarball"
node_dir="$RUNNER_TEMP/${tarball%.tar.xz}"
test "$("$node_dir/bin/node" --version)" = "v${NODEJS_VERSION}"
"$node_dir/bin/node" --single-threaded -e 'require("node:crypto").createHash("sha256").update("action-runtime").digest(); console.log(process.versions)'
install -m 755 "$node_dir/bin/node" "$runner_node.real.next"
mv -f "$runner_node.real.next" "$runner_node.real"
printf '#!/bin/bash\nexec "%s" --single-threaded "$@"\n' "$runner_node.real" > "$runner_node.next"
chmod 755 "$runner_node.next"
mv -f "$runner_node.next" "$runner_node"
echo "Updated action runtime: $("$runner_node" --version)"
echo "$node_dir/bin" >> "$GITHUB_PATH"
16 changes: 16 additions & 0 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
description: Remove unnecessary packages to free disk space
required: false
default: 'true'
swap-size:
description: Size of a swapfile to add, such as 8G; empty adds none
required: false
default: ''

runs:
using: composite
Expand All @@ -30,6 +34,18 @@ runs:
shell: bash
run: '"$GITHUB_ACTION_PATH/free-disk-space.sh"'

- name: Add swap
if: inputs.swap-size != ''
shell: bash
env:
SWAP_SIZE: ${{ inputs.swap-size }}
run: |
sudo fallocate -l "$SWAP_SIZE" /swapfile-build
sudo chmod 600 /swapfile-build
sudo mkswap /swapfile-build
sudo swapon /swapfile-build
swapon --show

# Some runners lack /opt/hostedtoolcache, which setup-python and setup-qemu expect
- name: Ensure hostedtoolcache exists
shell: bash
Expand Down
7 changes: 6 additions & 1 deletion .github/actions/sync-next/sync-next.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ export async function syncNext({ cwd, base, forge, botName, botEmail }) {
)

const defaultBranch = await forge.defaultBranch()
const lineBranches = git(
'for-each-ref',
'--format=%(refname)',
'refs/remotes/origin/next/',
)
const target =
exists(`next/${base}`) || base !== defaultBranch ? `next/${base}` : 'next'
lineBranches || base !== defaultBranch ? `next/${base}` : 'next'
const baseSha = git('rev-parse', `origin/${base}`)
if (!exists(target)) {
git('push', 'origin', `${baseSha}:refs/heads/${target}`)
Expand Down
81 changes: 62 additions & 19 deletions .github/actions/tests/apt-publish-alpha.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ const ARCHES = ['x86_64', 'aarch64', 'riscv64']

const daysAgo = days =>
new Date(Date.now() - days * 86400e3).toISOString().replace(/\.\d+Z$/, 'Z')
const deb = (product, arch) => `${product}-0.4.0-aaaaaaa_${arch}.deb`
const debs = (product, arches = ARCHES) =>
arches.map(arch => `${product}_${arch}.deb`)
arches.map(arch => deb(product, arch))
const downloaded = (runId, product) =>
ARCHES.map(arch => `${runId} ${deb(product, arch)}`)
const run = (id, created, artifacts, overrides = {}) => ({
id,
created_at: created,
Expand Down Expand Up @@ -64,11 +67,14 @@ test('each product comes from its newest master build holding every arch', t =>
}),
])
assert.equal(result.status, 0, result.stdout + result.stderr)
assert.deepEqual(downloads.sort(), [
'1 start-registry_*.deb',
'1 start-tunnel_*.deb',
'2 start-cli_*.deb',
])
assert.deepEqual(
downloads.sort(),
[
...downloaded(1, 'start-registry'),
...downloaded(1, 'start-tunnel'),
...downloaded(2, 'start-cli'),
].sort(),
)
})

test('PR-only activity does not hide complete master artifacts', t => {
Expand All @@ -83,23 +89,57 @@ test('PR-only activity does not hide complete master artifacts', t => {
),
])
assert.equal(result.status, 0, result.stdout + result.stderr)
assert.deepEqual(downloads.sort(), [
'1 start-cli_*.deb',
'1 start-registry_*.deb',
'1 start-tunnel_*.deb',
assert.deepEqual(
downloads.sort(),
[
...downloaded(1, 'start-cli'),
...downloaded(1, 'start-registry'),
...downloaded(1, 'start-tunnel'),
].sort(),
)
})

test('all products share one paginated artifact discovery', t => {
const { result, downloads, calls } = collectFrom(t, [
run(1, daysAgo(2), [
...debs('start-cli'),
...debs('start-tunnel'),
...debs('start-registry'),
]),
run(
2,
daysAgo(1),
Array.from({ length: 201 }, (_, index) => `unrelated-${index}`),
),
])
assert.equal(result.status, 0, result.stdout + result.stderr)
assert.deepEqual(
downloads.sort(),
[
...downloaded(1, 'start-cli'),
...downloaded(1, 'start-tunnel'),
...downloaded(1, 'start-registry'),
].sort(),
)
const listings = calls.flatMap(args =>
args.filter(arg =>
arg.startsWith(`repos/${REPOSITORY}/actions/artifacts?`),
),
)
assert.ok(listings.length > 1)
assert.equal(listings.length, new Set(listings).size)
})

test('a product without a complete build keeps its published package', t => {
const { result, downloads } = collectFrom(t, [
run(1, daysAgo(3), [
...debs('start-cli'),
...debs('start-registry', ['x86_64']),
{ name: 'start-tunnel_x86_64.deb', expired: true },
{ name: deb('start-tunnel', 'x86_64'), expired: true },
]),
])
assert.equal(result.status, 0, result.stdout + result.stderr)
assert.deepEqual(downloads, ['1 start-cli_*.deb'])
assert.deepEqual(downloads.sort(), downloaded(1, 'start-cli').sort())
assert.match(result.stdout, /start-tunnel has no complete master build left/)
assert.match(
result.stdout,
Expand All @@ -122,21 +162,24 @@ test('an older run with unexpired rerun artifacts remains eligible', t => {
...debs('start-cli'),
...debs('start-tunnel'),
...debs('start-registry'),
],
].map(name => ({ name, created_at: daysAgo(1) })),
{ run_attempt: 2 },
),
])
assert.equal(result.status, 0, result.stdout + result.stderr)
assert.deepEqual(downloads.sort(), [
'1 start-cli_*.deb',
'1 start-registry_*.deb',
'1 start-tunnel_*.deb',
])
assert.deepEqual(
downloads.sort(),
[
...downloaded(1, 'start-cli'),
...downloaded(1, 'start-registry'),
...downloaded(1, 'start-tunnel'),
].sort(),
)
})

test('expired artifacts do not cause run metadata queries', t => {
const { result, calls } = collectFrom(t, [
run(1, daysAgo(20), [{ name: 'start-cli_x86_64.deb', expired: true }]),
run(1, daysAgo(20), [{ name: deb('start-cli', 'x86_64'), expired: true }]),
])
assert.notEqual(result.status, 0)
assert.equal(
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/tests/changed-products.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ for (const [path, push, pullRequest = push, osImage = false] of [
true,
],
['projects/start-os/startd.service', ['start-os'], undefined, true],
[
'projects/start-os/container-runtime/deb-install.sh',
['start-os'],
undefined,
true,
],
['projects/start-os/container-runtime/src/index.ts', ['start-os']],
['projects/start-os/src/main.rs', ['start-os']],
['projects/start-os/docs/src/overview.md', []],
['projects/start-os/release-notes/0.4.1.md', ['start-os'], undefined, true],
Expand Down
Loading