Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 22 additions & 6 deletions .github/workflows/pinable-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ env:

jobs:
quality:
if: github.repository == 'PinableAgents/CLIProxyAPI'
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
with:
ref: ${{ env.SOURCE_SHA }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Distribution and synchronization tool checks
run: |
python -m unittest discover -s scripts/pinable -p 'test_*runtime.py' -v
python scripts/pinable/test_sync_upstream.py -v
bash -n scripts/pinable/sync-upstream.sh

application-regressions:
name: Application regressions (non-blocking for release)
if: github.repository == 'PinableAgents/CLIProxyAPI'
runs-on: ubuntu-22.04
timeout-minutes: 30
Expand All @@ -36,11 +56,6 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Distribution and synchronization tool regressions
run: |
python -m unittest discover -s scripts/pinable -p 'test_*runtime.py' -v
python scripts/pinable/test_sync_upstream.py -v
bash -n scripts/pinable/sync-upstream.sh
- name: Cache Go dependencies for the isolated suite
run: go mod download
- name: Full application suite (normal CGO profile; no external network)
Expand Down Expand Up @@ -226,6 +241,7 @@ jobs:

assemble:
name: Verify complete runtime set
# Application regressions are reported independently, never a release dependency.
needs: [quality, package]
runs-on: ubuntu-22.04
timeout-minutes: 15
Expand Down Expand Up @@ -259,7 +275,7 @@ jobs:
hashes = {m['target']: m['binary']['sha256'] for m in index['targets']}
assert all(r['binary_sha256'] == hashes[r['target']] for r in reports)
assert all(r.get('dynamic_library_plugins_tested') is True for r in reports)
(output / 'validation.json').write_text(json.dumps({'source_commit':os.environ['SOURCE_SHA'],'quality':'passed','native_smoke':reports}, indent=2)+'\n')
(output / 'validation.json').write_text(json.dumps({'source_commit':os.environ['SOURCE_SHA'],'quality':'passed','quality_scope':'release_tooling','native_smoke':reports}, indent=2)+'\n')
import hashlib
with (output / 'SHA256SUMS').open('a') as sums:
sums.write(hashlib.sha256((output / 'validation.json').read_bytes()).hexdigest() + ' validation.json\n')
Expand Down
23 changes: 14 additions & 9 deletions docs/pinable/desktop-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@ Actions workflow: **Pinable desktop runtime** (`.github/workflows/pinable-runtim

- Every main push builds current source, including merged upstream syncs, and
automatically publishes a dedicated `pinable-runtime-<version>` stable Release
after the full quality suite and all six native platform checks pass.
after the release-tooling checks and all six native platform checks pass.
The separate application-regressions job reports failures but does not gate publication.
- Packaging-related PRs produce native-tested candidate downloads without publishing.
- Run workflow builds the selected branch; `version` is optional.
- For manual runs, `publish_release=false` (default) produces Actions artifacts only;
`publish_release=true` on main uses the same publication gates. This manual input
does not disable automatic main-push publication.
- The default version is the source commit timestamp plus its short SHA, so each
source revision has its own release without a manual version bump.

Expand Down Expand Up @@ -168,9 +165,17 @@ hashes. This pipeline does not bypass that mismatch.

## Quality and native execution gates

The normal CGO-profile full Go suite and existing eight sync-script regressions
run on Linux. Distribution and publication-policy tests use isolated fixtures and
mocks; they do not count as actual runtime or GitHub-release execution.
The Linux application-regressions job runs the full Go suite (normal CGO, no
external network) and the repeated bootstrap tests independently. A failure in
that job still shows in Actions, and can make the overall run red even if the
release job succeeds. Check **Publish verified stable runtime** for the
publication result.

Distribution, publication-policy, and upstream-sync tooling tests remain
required. The `quality: passed` entry in the release's `validation.json` applies
to these tooling checks (`quality_scope: release_tooling`), not the advisory Go suite.
The tooling tests use isolated fixtures and mocks; they are not actual runtime
or GitHub-release execution.

Each of six native architectures runs portable host regressions, builds the
server, verifies its archive and exercises the exact packaged executable:
Expand All @@ -183,7 +188,7 @@ server, verifies its archive and exercises the exact packaged executable:
- authenticated loopback shutdown and monitored parent exit;
- macOS signature validity after extraction.

The complete download is only emitted after quality and all six native jobs pass.
The complete download is only emitted after the release-tooling and all six native jobs pass.
No live provider accounts/API keys are used; local tests are not live API validation.
Existing repository CI remains enabled on the actual PR merge result.

Expand Down
Loading