High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
chore: improving release process
Luigi Agostia62f8739b205
diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.ymlindex 1a3047d3..cce5c5ea 100644--- a/.github/workflows/dashboard.yml+++ b/.github/workflows/dashboard.yml@@ -16,6 +16,9 @@ on:- '.github/workflows/dashboard.yml'workflow_dispatch:+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+permissions:contents: read@@ -29,10 +32,10 @@ jobs:runs-on: ubuntu-latestif: github.event.pull_request.draft == falsesteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Setup Go- uses: actions/setup-go@v5+ uses: actions/setup-go@v6with:go-version: '1.26'@@ -70,10 +73,10 @@ jobs:runs-on: ubuntu-latestneeds: checksteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Setup Go- uses: actions/setup-go@v5+ uses: actions/setup-go@v6with:go-version: '1.26'diff --git a/.github/workflows/docs-verify.yml b/.github/workflows/docs-verify.ymlindex c0edd35b..e67f2d90 100644--- a/.github/workflows/docs-verify.yml+++ b/.github/workflows/docs-verify.yml@@ -12,6 +12,9 @@ on:- 'docs/**'- '.github/workflows/docs-verify.yml'+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+permissions:contents: read@@ -21,7 +24,7 @@ jobs:runs-on: ubuntu-latestif: github.event.pull_request.draft == falsesteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Check docs.json referencesrun: |diff --git a/.github/workflows/e2e-recent.yml b/.github/workflows/e2e-recent.ymlindex 0c882126..33326bb2 100644--- a/.github/workflows/e2e-recent.yml+++ b/.github/workflows/e2e-recent.yml@@ -36,10 +36,10 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@v5- name: Set up Go- uses: actions/setup-go@v5+ uses: actions/setup-go@v6with:go-version-file: go.modcache: true@@ -56,9 +56,11 @@ jobs:./dev e2e recent 2>&1 | tee e2e-output.logEXIT_CODE=${PIPESTATUS[0]}- PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")- FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")+ PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || true)+ FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || true)FAILURES=$(grep -E '✗.*failed' e2e-output.log | sed 's/.*✗ /- /' | head -10 || true)+ PASSED=${PASSED:-0}+ FAILED=${FAILED:-0}echo "passed=$PASSED" >> $GITHUB_OUTPUTecho "failed=$FAILED" >> $GITHUB_OUTPUT@@ -102,13 +104,22 @@ jobs:- name: Post summaryif: always()run: |- if [ "${{ steps.e2e.outputs.failed }}" = "0" ]; then+ PASSED="${{ steps.e2e.outputs.passed }}"+ FAILED="${{ steps.e2e.outputs.failed }}"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"++ if [ "${{ steps.e2e.outcome }}" = "success" ]; thenecho "## ✅ E2E Recent Tests Passed" >> $GITHUB_STEP_SUMMARY- echo "**${{ steps.e2e.outputs.passed }}** tests passed" >> $GITHUB_STEP_SUMMARY+ if [ "$PASSED" = "0" ]; then+ echo "All tests passed" >> $GITHUB_STEP_SUMMARY+ else+ echo "**$PASSED** tests passed" >> $GITHUB_STEP_SUMMARY+ fielseecho "## ❌ E2E Recent Tests Failed" >> $GITHUB_STEP_SUMMARY- echo "**Passed:** ${{ steps.e2e.outputs.passed }}" >> $GITHUB_STEP_SUMMARY- echo "**Failed:** ${{ steps.e2e.outputs.failed }}" >> $GITHUB_STEP_SUMMARY+ echo "**Passed:** $PASSED" >> $GITHUB_STEP_SUMMARY+ echo "**Failed:** $FAILED" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARYecho "${{ steps.e2e.outputs.failures }}" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARY@@ -119,9 +130,15 @@ jobs:run: |PASSED="${{ steps.e2e.outputs.passed }}"FAILED="${{ steps.e2e.outputs.failed }}"-- if [ "$FAILED" = "0" ] || [ -z "$FAILED" ]; then- echo "::notice title=E2E Recent Tests::✅ ${PASSED:-All} tests passed"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"++ if [ "${{ steps.e2e.outcome }}" = "success" ]; then+ if [ "$PASSED" = "0" ]; then+ echo "::notice title=E2E Recent Tests::✅ All tests passed"+ else+ echo "::notice title=E2E Recent Tests::✅ ${PASSED} tests passed"+ fielseecho "::error title=E2E Recent Tests::❌ ${FAILED} failed, ${PASSED} passed"fi@@ -134,10 +151,10 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@v5- name: Set up Go- uses: actions/setup-go@v5+ uses: actions/setup-go@v6with:go-version-file: go.modcache: true@@ -153,9 +170,11 @@ jobs:./dev e2e curl 2>&1 | tee e2e-output.logEXIT_CODE=${PIPESTATUS[0]}- PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")- FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")+ PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || true)+ FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || true)FAILURES=$(grep -E '✗.*failed' e2e-output.log | sed 's/.*✗ /- /' | head -10 || true)+ PASSED=${PASSED:-0}+ FAILED=${FAILED:-0}echo "passed=$PASSED" >> $GITHUB_OUTPUTecho "failed=$FAILED" >> $GITHUB_OUTPUT@@ -173,13 +192,22 @@ jobs:- name: Post summaryif: always()run: |- if [ "${{ steps.e2e.outputs.failed }}" = "0" ]; then+ PASSED="${{ steps.e2e.outputs.passed }}"+ FAILED="${{ steps.e2e.outputs.failed }}"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"++ if [ "${{ steps.e2e.outcome }}" = "success" ]; thenecho "## ✅ E2E Curl Tests Passed" >> $GITHUB_STEP_SUMMARY- echo "**${{ steps.e2e.outputs.passed }}** tests passed" >> $GITHUB_STEP_SUMMARY+ if [ "$PASSED" = "0" ]; then+ echo "All tests passed" >> $GITHUB_STEP_SUMMARY+ else+ echo "**$PASSED** tests passed" >> $GITHUB_STEP_SUMMARY+ fielseecho "## ❌ E2E Curl Tests Failed" >> $GITHUB_STEP_SUMMARY- echo "**Passed:** ${{ steps.e2e.outputs.passed }}" >> $GITHUB_STEP_SUMMARY- echo "**Failed:** ${{ steps.e2e.outputs.failed }}" >> $GITHUB_STEP_SUMMARY+ echo "**Passed:** $PASSED" >> $GITHUB_STEP_SUMMARY+ echo "**Failed:** $FAILED" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARYecho "${{ steps.e2e.outputs.failures }}" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARY@@ -190,8 +218,14 @@ jobs:run: |PASSED="${{ steps.e2e.outputs.passed }}"FAILED="${{ steps.e2e.outputs.failed }}"- if [ "$FAILED" = "0" ] || [ -z "$FAILED" ]; then- echo "::notice title=E2E Curl Tests::✅ ${PASSED:-All} tests passed"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"+ if [ "${{ steps.e2e.outcome }}" = "success" ]; then+ if [ "$PASSED" = "0" ]; then+ echo "::notice title=E2E Curl Tests::✅ All tests passed"+ else+ echo "::notice title=E2E Curl Tests::✅ ${PASSED} tests passed"+ fielseecho "::error title=E2E Curl Tests::❌ ${FAILED} failed, ${PASSED} passed"fi@@ -204,10 +238,10 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@v5- name: Set up Go- uses: actions/setup-go@v5+ uses: actions/setup-go@v6with:go-version-file: go.modcache: true@@ -222,9 +256,11 @@ jobs:./dev e2e cli 2>&1 | tee e2e-output.logEXIT_CODE=${PIPESTATUS[0]}- PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")- FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || echo "0")+ PASSED=$(grep -oP 'Passed:\s*\K\d+' e2e-output.log | tail -1 || true)+ FAILED=$(grep -oP 'Failed:\s*\K\d+' e2e-output.log | tail -1 || true)FAILURES=$(grep -E '✗.*failed' e2e-output.log | sed 's/.*✗ /- /' | head -10 || true)+ PASSED=${PASSED:-0}+ FAILED=${FAILED:-0}echo "passed=$PASSED" >> $GITHUB_OUTPUTecho "failed=$FAILED" >> $GITHUB_OUTPUT@@ -242,13 +278,22 @@ jobs:- name: Post summaryif: always()run: |- if [ "${{ steps.e2e.outputs.failed }}" = "0" ]; then+ PASSED="${{ steps.e2e.outputs.passed }}"+ FAILED="${{ steps.e2e.outputs.failed }}"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"++ if [ "${{ steps.e2e.outcome }}" = "success" ]; thenecho "## ✅ E2E CLI Tests Passed" >> $GITHUB_STEP_SUMMARY- echo "**${{ steps.e2e.outputs.passed }}** tests passed" >> $GITHUB_STEP_SUMMARY+ if [ "$PASSED" = "0" ]; then+ echo "All tests passed" >> $GITHUB_STEP_SUMMARY+ else+ echo "**$PASSED** tests passed" >> $GITHUB_STEP_SUMMARY+ fielseecho "## ❌ E2E CLI Tests Failed" >> $GITHUB_STEP_SUMMARY- echo "**Passed:** ${{ steps.e2e.outputs.passed }}" >> $GITHUB_STEP_SUMMARY- echo "**Failed:** ${{ steps.e2e.outputs.failed }}" >> $GITHUB_STEP_SUMMARY+ echo "**Passed:** $PASSED" >> $GITHUB_STEP_SUMMARY+ echo "**Failed:** $FAILED" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARYecho "${{ steps.e2e.outputs.failures }}" >> $GITHUB_STEP_SUMMARYecho '```' >> $GITHUB_STEP_SUMMARY@@ -259,8 +304,14 @@ jobs:run: |PASSED="${{ steps.e2e.outputs.passed }}"FAILED="${{ steps.e2e.outputs.failed }}"- if [ "$FAILED" = "0" ] || [ -z "$FAILED" ]; then- echo "::notice title=E2E CLI Tests::✅ ${PASSED:-All} tests passed"+ PASSED="${PASSED:-0}"+ FAILED="${FAILED:-0}"+ if [ "${{ steps.e2e.outcome }}" = "success" ]; then+ if [ "$PASSED" = "0" ]; then+ echo "::notice title=E2E CLI Tests::✅ All tests passed"+ else+ echo "::notice title=E2E CLI Tests::✅ ${PASSED} tests passed"+ fielseecho "::error title=E2E CLI Tests::❌ ${FAILED} failed, ${PASSED} passed"fidiff --git a/.github/workflows/go-verify.yml b/.github/workflows/go-verify.ymlindex 070fcac7..8b268ec1 100644--- a/.github/workflows/go-verify.yml+++ b/.github/workflows/go-verify.yml@@ -20,6 +20,9 @@ on:- 'skill/**'- 'plugin/**'+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+permissions:contents: read@@ -32,7 +35,7 @@ jobs:outputs:go: ${{ steps.filter.outputs.go }}steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: dorny/paths-filter@v3id: filterwith:@@ -60,9 +63,9 @@ jobs:echo "has_go_changes=false" >> $GITHUB_OUTPUTfi- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- - uses: actions/setup-go@v5+ - uses: actions/setup-go@v6if: steps.check.outputs.has_go_changes == 'true'with:go-version: '1.26'@@ -117,9 +120,9 @@ jobs:echo "has_go_changes=false" >> $GITHUB_OUTPUTfi- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- - uses: actions/setup-go@v5+ - uses: actions/setup-go@v6if: steps.check.outputs.has_go_changes == 'true'with:go-version: '1.26'@@ -160,9 +163,9 @@ jobs:echo "has_go_changes=false" >> $GITHUB_OUTPUTfi- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- - uses: actions/setup-go@v5+ - uses: actions/setup-go@v6if: steps.check.outputs.has_go_changes == 'true'with:go-version: '1.26'diff --git a/.github/workflows/npm-verify.yml b/.github/workflows/npm-verify.ymlindex ac96b3a8..0eb99a93 100644--- a/.github/workflows/npm-verify.yml+++ b/.github/workflows/npm-verify.yml@@ -9,6 +9,9 @@ on:tags:- 'v*'+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+permissions:contents: read@@ -17,9 +20,9 @@ jobs:name: Verify npm Packageruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- - uses: actions/setup-node@v4+ - uses: actions/setup-node@v5with:node-version: '22'diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a9969b98..04e2a95b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -39,6 +39,7 @@ on:env:FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+ GORELEASER_VERSION: v2.14.3permissions:contents: write@@ -75,10 +76,15 @@ jobs:working-directory: dashboardrun: bun install --frozen-lockfile- - uses: goreleaser/goreleaser-action@v6- with:- version: '~> v2'- args: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run && 'release --clean --snapshot' || 'release --clean' }}+ - name: Run GoReleaser+ run: |+ if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.dry_run }}" = "true" ]; then+ ARGS="release --clean --snapshot"+ else+ ARGS="release --clean"+ fi++ curl -sfL https://goreleaser.com/static/run | VERSION="$GORELEASER_VERSION" bash -s -- $ARGSenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}diff --git a/.github/workflows/system.yml b/.github/workflows/system.ymldeleted file mode 100644index 137e1524..00000000--- a/.github/workflows/system.yml+++ /dev/null@@ -1,74 +0,0 @@-name: System Tests--on:- workflow_dispatch:--permissions:- contents: read--jobs:- system:- name: System Tests- runs-on: ubuntu-latest- timeout-minutes: 20- env:- SYSTEM_REGEX: '^(TestProxy_InstanceIsolation|TestOrchestrator_(HealthCheck|HashBasedIDs|PortAllocation|PortReuse|ListInstances|FirstRequestLazyChrome|AggregateTabsEndpoint|StopNonexistent|InstanceCleanup))$'- steps:- - uses: actions/checkout@v4-- - uses: actions/setup-go@v5- with:- go-version: '1.26'-- - name: Install Google Chrome (deb, avoids snap hangs)- run: |- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -- echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list- sudo apt-get update- sudo apt-get install -y google-chrome-stable- echo "CHROME_BINARY=/usr/bin/google-chrome" >> $GITHUB_ENV-- - name: Install gotestsum- run: go install gotest.tools/gotestsum@latest-- - name: 🧪 Run system tests- run: |- echo "::group::System Tests Output"- gotestsum --format testname --jsonfile system-events.json -- \- -tags integration -v -timeout 15m -count=1 \- -run "$SYSTEM_REGEX" ./tests/integration/- echo "::endgroup::"- env:- CI: "true"- BRIDGE_HEADLESS: "true"- BRIDGE_NO_RESTORE: "true"- PINCHTAB_TEST_PORT: "19869"- PINCHTAB_TEST_RETRY: "true"- PINCHTAB_ALLOW_EVALUATE: "true"- PINCHTAB_ALLOW_MACRO: "true"- PINCHTAB_ALLOW_DOWNLOAD: "true"- PINCHTAB_ALLOW_UPLOAD: "true"- PINCHTAB_ALLOW_SCREENCAST: "true"-- - name: 📋 Add summary- if: always()- run: |- total=0- pass=0- fail=0- skip=0-- if [ -s system-events.json ]; then- read total pass fail skip <<<"$(jq -r 'select(.Test != null and (.Action == "pass" or .Action == "fail" or .Action == "skip")) | [.Package, .Test, .Action] | @tsv' system-events.json \- | awk -F'\t' 'NF == 3 { key = $1 "\t" $2; status[key] = $3 } END { for (k in status) { t++; if (status[k] == "pass") p++; else if (status[k] == "fail") f++; else if (status[k] == "skip") s++; } printf "%d %d %d %d\n", t + 0, p + 0, f + 0, s + 0 }')"- fi-- echo "### ✅ System Tests" >> "$GITHUB_STEP_SUMMARY"- echo "- **Status**: ${{ job.status }}" >> "$GITHUB_STEP_SUMMARY"- echo "- **Runner**: ubuntu-latest" >> "$GITHUB_STEP_SUMMARY"- echo "- **Port**: 19869" >> "$GITHUB_STEP_SUMMARY"- echo "- **Regex**: \`$SYSTEM_REGEX\`" >> "$GITHUB_STEP_SUMMARY"- echo "- **Total tests**: $total" >> "$GITHUB_STEP_SUMMARY"- echo "- **Passed**: $pass" >> "$GITHUB_STEP_SUMMARY"- echo "- **Failed**: $fail" >> "$GITHUB_STEP_SUMMARY"- echo "- **Skipped**: $skip" >> "$GITHUB_STEP_SUMMARY"