End-to-end (security)
took 5m 48s Raw logs
Matrix: name: security, shard: security
Cancelled
cancelled by a newer run in the same concurrency group
Set up job
Diffinery runner: job e2e (End-to-end (security)) for codician/diffinery@5594b9dd6196Runner: image diffinery-runner:7d76ed7e2bbe8f5431f60bdc, in lhr01, WEUR, container fd311f89e936d25659fe26b2cc53eb2b7f5fc25a4ab4d6be83829ea70361f235Workspace: /workspace/diffinery
Run actions/checkout@v42s
##[group]Run actions/checkout@v4##[endgroup]Syncing repository: codician/diffineryFetching the repository (depth 1)remote: Enumerating objects: 584, done. Receiving objects: 0% (1/584) Receiving objects: 1% (6/584) Receiving objects: 2% (12/584) Receiving objects: 3% (18/584) Receiving objects: 4% (24/584) Receiving objects: 5% (30/584) Receiving objects: 6% (36/584) Receiving objects: 7% (41/584) Receiving objects: 8% (47/584) Receiving objects: 9% (53/584) Receiving objects: 10% (59/584) Receiving objects: 11% (65/584) Receiving objects: 12% (71/584) Receiving objects: 13% (76/584) Receiving objects: 14% (82/584) Receiving objects: 15% (88/584) Receiving objects: 16% (94/584) Receiving objects: 17% (100/584) Receiving objects: 18% (106/584) Receiving objects: 19% (111/584) Receiving objects: 20% (117/584) Receiving objects: 21% (123/584) Receiving objects: 22% (129/584) Receiving objects: 23% (135/584) Receiving objects: 24% (141/584) Receiving objects: 25% (146/584) Receiving objects: 26% (152/584) Receiving objects: 27% (158/584) Receiving objects: 28% (164/584) Receiving objects: 29% (170/584) Receiving objects: 30% (176/584) Receiving objects: 31% (182/584) Receiving objects: 32% (187/584) Receiving objects: 33% (193/584) Receiving objects: 34% (199/584) Receiving objects: 35% (205/584) Receiving objects: 36% (211/584) Receiving objects: 37% (217/584) Receiving objects: 38% (222/584) Receiving objects: 39% (228/584) Receiving objects: 40% (234/584) Receiving objects: 41% (240/584) Receiving objects: 42% (246/584) Receiving objects: 43% (252/584) Receiving objects: 44% (257/584) Receiving objects: 45% (263/584) Receiving objects: 46% (269/584) Receiving objects: 47% (275/584) Receiving objects: 48% (281/584) Receiving objects: 49% (287/584) Receiving objects: 50% (292/584) Receiving objects: 51% (298/584) Receiving objects: 52% (304/584) Receiving objects: 53% (310/584) Receiving objects: 54% (316/584) Receiving objects: 55% (322/584) Receiving objects: 56% (328/584) Receiving objects: 57% (333/584) Receiving objects: 58% (339/584) Receiving objects: 59% (345/584) Receiving objects: 60% (351/584) Receiving objects: 61% (357/584) Receiving objects: 62% (363/584) Receiving objects: 63% (368/584) Receiving objects: 64% (374/584) Receiving objects: 65% (380/584) Receiving objects: 66% (386/584) Receiving objects: 67% (392/584) Receiving objects: 68% (398/584) Receiving objects: 69% (403/584) Receiving objects: 70% (409/584) Receiving objects: 71% (415/584) Receiving objects: 72% (421/584) Receiving objects: 73% (427/584) Receiving objects: 74% (433/584) Receiving objects: 75% (438/584) Receiving objects: 76% (444/584) Receiving objects: 77% (450/584) Receiving objects: 78% (456/584) Receiving objects: 79% (462/584) Receiving objects: 80% (468/584) Receiving objects: 81% (474/584) Receiving objects: 82% (479/584) Receiving objects: 83% (485/584) Receiving objects: 84% (491/584) Receiving objects: 85% (497/584) Receiving objects: 86% (503/584) Receiving objects: 87% (509/584) Receiving objects: 88% (514/584) Receiving objects: 89% (520/584) Receiving objects: 90% (526/584) Receiving objects: 91% (532/584) Receiving objects: 92% (538/584) Receiving objects: 93% (544/584) Receiving objects: 94% (549/584) Receiving objects: 95% (555/584) Receiving objects: 96% (561/584) remote: Total 584 (delta 0), reused 584 (delta 0) Receiving objects: 97% (567/584) Receiving objects: 98% (573/584) Receiving objects: 99% (579/584) Receiving objects: 100% (584/584) Receiving objects: 100% (584/584), 2.38 MiB | 7.01 MiB/s, done.From https://diffinery.com/codician/diffinery * [new ref] 5594b9dd61969a269ce5ebbb16582c11f190070b -> origin/mainSwitched to a new branch 'main'HEAD is now at 5594b9dd61969a269ce5ebbb16582c11f190070b
Run pnpm/action-setup@v45s
Download action repository 'pnpm/action-setup@v4'##[group]Run pnpm/action-setup@v4with: dest: ~/setup-pnpm run_install: null cache: false cache_dependency_path: pnpm-lock.yaml package_json_file: package.json standalone: false##[endgroup]##[group]Running self-installer...Progress: resolved 1, reused 0, downloaded 0, added 0Packages: +1+Progress: resolved 1, reused 0, downloaded 1, added 0Progress: resolved 1, reused 0, downloaded 1, added 1, donedependencies:+ pnpm 10.28.0 (12.11.2 is available)Done in 2.4s##[endgroup]Installation Completed!
Run actions/setup-node@v42s
##[group]Run actions/setup-node@v4with: node-version: 22 cache: pnpm##[endgroup]Found in cache @ 22.22.0 (pre-installed node satisfies '22')pnpm cache is not found
Run pnpm install --frozen-lockfile49s
##[group]Run pnpm install --frozen-lockfile##[endgroup]Scope: all 7 workspace projectsLockfile is up to date, resolution step is skippedProgress: resolved 1, reused 0, downloaded 0, added 0Packages: +248++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Progress: resolved 248, reused 0, downloaded 0, added 0Progress: resolved 248, reused 0, downloaded 12, added 0Progress: resolved 248, reused 0, downloaded 15, added 0Progress: resolved 248, reused 0, downloaded 38, added 8Progress: resolved 248, reused 0, downloaded 68, added 16Progress: resolved 248, reused 0, downloaded 99, added 28Progress: resolved 248, reused 0, downloaded 128, added 36Progress: resolved 248, reused 0, downloaded 135, added 38Progress: resolved 248, reused 0, downloaded 139, added 39Progress: resolved 248, reused 0, downloaded 140, added 40Progress: resolved 248, reused 0, downloaded 141, added 40Progress: resolved 248, reused 0, downloaded 150, added 42Progress: resolved 248, reused 0, downloaded 156, added 44Progress: resolved 248, reused 0, downloaded 167, added 47Progress: resolved 248, reused 0, downloaded 170, added 48Progress: resolved 248, reused 0, downloaded 171, added 48 WARN Tarball download average speed 11 KiB/s (size 13 KiB) is below 50 KiB/s: https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.5.tgz (GET)Progress: resolved 248, reused 0, downloaded 181, added 51Progress: resolved 248, reused 0, downloaded 191, added 54Progress: resolved 248, reused 0, downloaded 205, added 58Progress: resolved 248, reused 0, downloaded 208, added 59Progress: resolved 248, reused 0, downloaded 209, added 59Progress: resolved 248, reused 0, downloaded 212, added 62Progress: resolved 248, reused 0, downloaded 214, added 62Progress: resolved 248, reused 0, downloaded 222, added 65Progress: resolved 248, reused 0, downloaded 228, added 66Progress: resolved 248, reused 0, downloaded 229, added 66Progress: resolved 248, reused 0, downloaded 236, added 68Progress: resolved 248, reused 0, downloaded 242, added 140Progress: resolved 248, reused 0, downloaded 242, added 168Progress: resolved 248, reused 0, downloaded 242, added 248, done.../esbuild@0.25.12/node_modules/esbuild postinstall$ node install.js.../esbuild@0.28.1/node_modules/esbuild postinstall$ node install.js.../node_modules/workerd postinstall$ node install.js.../esbuild@0.25.11/node_modules/esbuild postinstall$ node install.js.../node_modules/workerd postinstall$ node install.js.../esbuild@0.25.12/node_modules/esbuild postinstall: Done.../esbuild@0.28.1/node_modules/esbuild postinstall: Done.../node_modules/workerd postinstall: Done.../esbuild@0.28.2/node_modules/esbuild postinstall$ node install.js.../esbuild@0.25.11/node_modules/esbuild postinstall: Done.../node_modules/workerd postinstall: Done.../esbuild@0.28.2/node_modules/esbuild postinstall: DonedevDependencies:+ turbo 2.11.7+ typescript 5.9.3Done in 48.8s using pnpm v10.28.0
Run pnpm -r --if-present build6s
##[group]Run pnpm -r --if-present build##[endgroup]Scope: 6 of 7 workspace projects##[group]@diffinery/cli@0.1.0 : build apps/cli> @diffinery/cli@0.1.0 build /workspace/diffinery/apps/cli> esbuild src/bin.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/diffinery.mjs "--banner:js=#!/usr/bin/env nodeimport { createRequire as __diffineryCreateRequire } from 'node:module'; const require = __diffineryCreateRequire(import.meta.url);" dist/diffinery.mjs 428.7kb⚡ Done in 122ms##[endgroup]##[group]@diffinery/app@0.1.0 : build apps/diffinery> @diffinery/app@0.1.0 build /workspace/diffinery/apps/diffinery> node islands/build.mjs && node scripts/build-docs.mjsislands: kumo.js 466 KB, kumo.css 149 KB, terminal.js 286 KBdocs: 61 pages (+2 generated at runtime), CLI 0.1.0 (222 KiB)##[endgroup]##[group]@diffinery/runner@0.1.0 : build containers/runner> @diffinery/runner@0.1.0 build /workspace/diffinery/containers/runner> esbuild src/main.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/agent.mjs --external:bufferutil --external:utf-8-validate "--banner:js=import { createRequire as __diffineryCreateRequire } from 'node:module'; const require = __diffineryCreateRequire(import.meta.url);" dist/agent.mjs 657.2kb⚡ Done in 194ms##[endgroup]
Run pnpm --filter @diffinery/app exec playwright install --with-deps chromium
Run as_root() { if [ "$(id -u)" = 0 ]; then "$@"; else sudo "$@"; fi; }
Run the shard's tests283h 50m
##[group]Run # Shards of similar length; a new test file runs in "rest" unless it's added to another.core='/e2e\.test\.mjs$'agents='/(agentic|review|tasks)\.test\.mjs$'security='/(security|status)\.test\.mjs$'# The core file's real histories and large pushes take minutes each (jquery's alone 2 to 3 on# Diffinery's runners): two shards of their own, so no part of the file runs into node's# per-file timeout, which is the --test-timeout here.histories='^real histories:'large='^(large files|large pushes):'opts=(--test-timeout=600000)case "security" in core) files=$(ls test/e2e/*.test.mjs | grep -E "$core"); opts+=(--test-skip-pattern="$histories" --test-skip-pattern="$large") ;; histories) files=$(ls test/e2e/*.test.mjs | grep -E "$core"); opts=(--test-timeout=900000 --test-name-pattern="$histories") ;; large) files=$(ls test/e2e/*.test.mjs | grep -E "$core"); opts+=(--test-name-pattern="$large") ;; agents) files=$(ls test/e2e/*.test.mjs | grep -E "$agents") ;; security) files=$(ls test/e2e/*.test.mjs | grep -E "$security") ;; *) files=$(ls test/e2e/*.test.mjs | grep -vE "$core|$agents|$security") ;;esacecho "$files"node --test --test-concurrency=1 "${opts[@]}" $files##[endgroup]test/e2e/security.test.mjstest/e2e/status.test.mjsTAP version 13# Subtest: security: search, required checks, environments, reviews, locks, archives, drafts and tree namesok 1 - security: search, required checks, environments, reviews, locks, archives, drafts and tree names --- duration_ms: 103911.776319 type: 'test' ...# Subtest: security: organization admins can't hand out ownershipok 2 - security: organization admins can't hand out ownership --- duration_ms: 855.242698 type: 'test' ...# Subtest: security: anonymous writes, token scopes, agent secrets, merge rules and draftsok 3 - security: anonymous writes, token scopes, agent secrets, merge rules and drafts --- duration_ms: 7366.452372 type: 'test' ...# Subtest: security: push protection covers commits made without gitok 4 - security: push protection covers commits made without git --- duration_ms: 3879.8499 type: 'test' ...# Subtest: security: limited tokens, invisible repositories, readers' labels and the audit trailok 5 - security: limited tokens, invisible repositories, readers' labels and the audit trail --- duration_ms: 36798.806337 type: 'test' ...# Subtest: security: organization pictures are the owners' to change, and invitations aren't sent twiceok 6 - security: organization pictures are the owners' to change, and invitations aren't sent twice --- duration_ms: 281.605944 type: 'test' ...# Subtest: security: organization members get the base permission, which only owners changeok 7 - security: organization members get the base permission, which only owners change --- duration_ms: 1861.993118 type: 'test' ...# Subtest: security: leaving an organization takes its repository access alongok 8 - security: leaving an organization takes its repository access along --- duration_ms: 2305.23634 type: 'test' ...# Subtest: security: organization settings are checked before anything is saved, and agents see the base permissionok 9 - security: organization settings are checked before anything is saved, and agents see the base permission --- duration_ms: 12775.628552 type: 'test' ...# Subtest: security: a transferred repository keeps its data, and its old name redirects only for readersok 10 - security: a transferred repository keeps its data, and its old name redirects only for readers --- duration_ms: 22909.122174 type: 'test' ...# Subtest: security: agents land changes on protected branches only through auto-merge a person allowed, gated by CIok 11 - security: agents land changes on protected branches only through auto-merge a person allowed, gated by CI --- duration_ms: 39937.543264 type: 'test' ...# Subtest: security: an admin can let agents' auto-merges land on green checks without an approval, and nothing moreok 12 - security: an admin can let agents' auto-merges land on green checks without an approval, and nothing more --- duration_ms: 23125.164177 type: 'test' ...# Subtest: security: an archived repository lands nothing by itself: archiving ends auto-merge and empties the merge queueok 13 - security: an archived repository lands nothing by itself: archiving ends auto-merge and empties the merge queue --- duration_ms: 2722.885258 type: 'test' ...# Subtest: security: landing a pull request deletes its head branch only when asked, through auto-merge and the queue too, and never a protected oneok 14 - security: landing a pull request deletes its head branch only when asked, through auto-merge and the queue too, and never a protected one --- duration_ms: 4929.279531 type: 'test' ...# Subtest: security: agents see what auto-merge needs next to the refusal to merge directlyok 15 - security: agents see what auto-merge needs next to the refusal to merge directly --- duration_ms: 3806.442745 type: 'test' ...# Subtest: security: the queue's bypass button does what it says, and a merge queue can't contradict linear historyok 16 - security: the queue's bypass button does what it says, and a merge queue can't contradict linear history --- duration_ms: 8182.988142 type: 'test' ...# Subtest: security: no token can mint a token, an agent or a sandbox, through the API or the web formsok 17 - security: no token can mint a token, an agent or a sandbox, through the API or the web forms --- duration_ms: 1290.024165 type: 'test' ...