conductor

sign in

integration

statesuccess
jobback to job
imagenode:24-alpine
arch-
attempt1 of 1
workerconductor-worker-aarch64
duration30s

log

[conductor] task integration on conductor-worker-aarch64
[conductor] commit 78dfb472ec4b attempt 1
[conductor] image node:24-alpine
$ apk add --no-cache git
( 1/12) Installing brotli-libs (1.2.0-r1)
( 2/12) Installing c-ares (1.34.8-r0)
( 3/12) Installing libunistring (1.4.2-r0)
( 4/12) Installing libidn2 (2.3.8-r0)
( 5/12) Installing nghttp2-libs (1.69.0-r0)
( 6/12) Installing libpsl (0.21.5-r3)
( 7/12) Installing zstd-libs (1.5.7-r2)
( 8/12) Installing libcurl (8.22.0-r0)
( 9/12) Installing libexpat (2.8.4-r0)
(10/12) Installing pcre2 (10.48-r0)
(11/12) Installing git (2.54.0-r0)
(12/12) Installing git-init-template (2.54.0-r0)
Executing busybox-1.37.0-r31.trigger
OK: 24.0 MiB in 30 packages
$ npm install --no-audit --no-fund

added 78 packages in 4s
npm notice
npm notice New major version of npm available! 11.19.0 -> 12.0.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2
npm notice To update run: npm install -g npm@12.0.2
npm notice
$ npm test

> conductor@0.4.2 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (306.43868ms)
✔ no file uses CRLF line endings or trailing whitespace (120.23265ms)
✔ a password round trips and a wrong one is refused (34.25536ms)
✔ the same password hashes differently each time (21.77081ms)
✔ parameters are read back from the stored hash (13.89793ms)
✔ a malformed stored hash is refused rather than throwing (0.588ms)
✔ password length is bounded (0.81637ms)
✔ a session token round trips its claims (1.41057ms)
✔ a token signed with another secret is refused (0.60768ms)
✔ a tampered payload is refused (0.35813ms)
✔ an expired token is refused (0.58868ms)
✔ a malformed token is refused rather than throwing (0.46055ms)
✔ cookies are parsed and issued (3.63454ms)
✔ the oidc login state round trips with its return path (0.90835ms)
✔ a missing return path means the root (0.36068ms)
✔ the oidc login state is refused when forged, stale or off-site (0.42026ms)
✔ oidc roles are collected from the usual claim shapes (0.51126ms)
✔ mask replaces secrets, longest first (0.39181ms)
✔ mask ignores very short values and leaves clean output alone (0.23708ms)
✔ health reports the selected drivers (283.47762ms)
✔ a signed trigger creates a job and expands the pipeline (337.33275ms)
✔ an unsigned or wrongly signed trigger is refused (145.24053ms)
✔ github and gitlab push payloads are understood (297.08034ms)
✔ a branch deletion is ignored rather than failing (122.51305ms)
✔ a broken pipeline is reported as a client error with detail (252.62673ms)
✔ a missing pipeline file is reported clearly (182.53195ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (213.86458ms)
✔ a project pointed at a specific file gets no fallback (238.43992ms)
✔ a repository carrying both spellings is refused rather than guessed at (278.39425ms)
✔ a pipeline still using the jobs key is told what it was renamed to (304.11223ms)
✔ a job can be created directly, without a push payload to imitate (397.68801ms)
✔ creating a job requires the same signature as a trigger (218.17619ms)
✔ creating a job insists on a real commit rather than inferring one (165.2592ms)
✔ a job can be read back, with the state of every task (349.44163ms)
✔ a public job is readable without any credential at all (275.3812ms)
✔ a private job needs the trigger secret, and is otherwise absent (253.02163ms)
✔ a job of another project cannot be read through this one (387.4192ms)
✔ a task can be read back on its own, and by its full name (280.50697ms)
✔ reading a task back carries its dependencies and matrix (223.30488ms)
✔ reading a task back never exposes its environment, services or script (291.06833ms)
✔ a task lists the artifacts it stored, with a usable download url (423.47765ms)
✔ reading a task back needs no worker token (270.88976ms)
✔ a private task is absent without a credential, and needs its project named (249.683ms)
✔ a private task is readable by an administrator, by either path (526.74543ms)
✔ a task of another project cannot be read through this one (446.61274ms)
✔ an unknown task is 404 by either path (197.45996ms)
✔ the worker api rejects missing and invalid tokens (164.80127ms)
✔ independent tasks dispatch concurrently (317.47125ms)
✔ a task is only offered to a worker that satisfies its requires (318.01919ms)
✔ a worker is not offered work for an architecture it cannot build (362.38165ms)
✔ a claimed task carries everything the worker needs (411.87476ms)
✔ a task that requires a feature reports it to the worker (315.00448ms)
✔ the standard conductor variables are present in the task environment (371.21969ms)
✔ the source tarball is served from the mirror (444.39679ms)
✔ a worker cannot touch a task it does not hold (423.22364ms)
✔ log appends are resumable and deduplicated by offset (397.98729ms)
✔ an oversized log chunk is refused (304.7206ms)
✔ a finished log moves to storage and is still readable (433.27688ms)
✔ artifacts are stored, hashed, and stripped of traversal (419.79977ms)
✔ an artifact shorter than its content-length is rejected (435.70129ms)
✔ success releases dependents, matched on shared dimensions (275.82874ms)
✔ failure skips transitive dependents, not just direct ones (291.61311ms)
✔ a job settles as failed once every task is terminal (292.63541ms)
✔ a job settles as success when everything passes (317.85269ms)
✔ an allowed failure does not fail the job or block dependents (371.54409ms)
✔ a task with retries left is requeued instead of failing the job (381.86451ms)
✔ heartbeats keep a task alive and report cancellation (416.09456ms)
✔ the reaper fails a task whose worker stopped reporting (420.58884ms)
✔ a second push produces an independent, numbered job (686.81098ms)
﹣ jobs can be listed and filtered by project (1.14885ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.4043ms) # the JSON API was removed
✔ a disabled project refuses triggers (150.08005ms)
✔ a trigger for an unknown project is a 404 (138.24545ms)
✔ a commit that is not in the repository is refused (245.05828ms)
✔ a task is told to fetch an archive, and never the repository itself (401.84289ms)
✔ the source archive is the bare tree, with no wrapping directory (464.056ms)
✔ the working directory is resolved from the pipeline, then the project (1265.35522ms)
✔ an unusable working directory is refused rather than sanitised (1175.36514ms)
✔ the trigger secret is not stored in the clear (207.39391ms)
✔ worker tokens are stored only as hashes (139.35396ms)
✔ defaults select sqlite, local storage and local auth (4.21169ms)
✔ configuring an s3 bucket switches the storage driver (0.78211ms)
✔ a partial s3 configuration is rejected rather than half applied (1.47546ms)
✔ configuring an oidc discovery url switches the auth mode (0.79917ms)
✔ an oidc discovery url without a client id is rejected (0.81302ms)
✔ a database url selects its dialect (1.47876ms)
✔ an unsupported database scheme is reported clearly (1.20646ms)
✔ a sqlite url collapses into database.path (1.86331ms)
✔ environment variables override the config file (25.1131ms)
✔ relative paths resolve against the config file directory (3.87218ms)
✔ a missing explicit config file is an error, a missing default is not (2.42942ms)
✔ a heartbeat timeout below the reap interval is rejected (8.07446ms)
✔ a non-integer port is rejected with the variable named (0.86624ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.55947ms)
✔ stateDirs omits the storage directory when s3 is in use (1.3751ms)
✔ the loaded config is frozen (0.61182ms)
✔ topological order places dependencies first (3.04553ms)
✔ topological order is deterministic (3.58471ms)
✔ a cycle is detected and named (1.27827ms)
✔ depth reflects the longest path, not insertion order (0.55681ms)
✔ independent tasks are runnable at the same time (0.76298ms)
✔ a task becomes runnable only once every dependency succeeds (0.5608ms)
✔ a running dependency does not release its dependents (0.5699ms)
✔ failure skips transitive dependents, not just direct ones (0.57023ms)
✔ a skipped dependency never releases a dependent (0.67912ms)
✔ allowed failures can satisfy a dependency when asked to (1.16971ms)
✔ transitive dependents of a leaf is empty (0.40236ms)
✔ graph helpers tolerate dependencies outside the set (0.50787ms)
✔ dialect detection covers every supported scheme (3.2258ms)
✔ statement splitter respects literals and comments (0.95023ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.36249ms)
✔ migrations apply once and are idempotent (57.16708ms)
✔ an edited migration is refused rather than silently diverging (19.95231ms)
✔ a migration removed from disk is reported (14.11955ms)
✔ rows come back as ordinary objects (23.71459ms)
✔ a conditional update claims exactly once (19.56735ms)
✔ deleting a job cascades to its tasks (22.76482ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (30.67817ms)
﹣ migrations apply and retention sweeps on postgres (1.70821ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.20703ms) # SKIP
✔ every example pipeline compiles (58.08969ms)
✔ the distribution example fans in per architecture (11.02404ms)
✔ the node example wires services and features (6.40771ms)
✔ git jobs with safe.directory set (16.88925ms)
✔ it appends to configuration already in the environment (1.72143ms)
✔ a count that is not a number does not corrupt the sequence (2.63022ms)
✔ git accepts the environment we build (66.10644ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (67.34149ms)
﹣ the endpoints and key set come from the discovery document (1.30005ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (26.23129ms)
✔ discovery reports an unreachable provider and a bad status (1.19296ms)
﹣ a token carrying the admin role authenticates as an administrator (0.21265ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.17472ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.13496ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.18653ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.18813ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.22591ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (5.35899ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.15341ms) # the JSON API was removed
﹣ a forged signature is refused (0.29338ms) # the JSON API was removed
﹣ an expired token is refused (0.24414ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.21275ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.52394ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.07397ms) # docker is not available
﹣ a callback with a forged state is refused (0.06441ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.06062ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.0573ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.05507ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.13408ms)
✔ a star matches any job of characters (0.66375ms)
✔ the rest of a pattern is literal, not a regular expression (0.29128ms)
✔ a restricted task is left out of jobs for other refs (25.63342ms)
✔ it is left out rather than recorded as skipped (3.18955ms)
✔ tasks depending on an excluded task are excluded too (3.60144ms)
✔ depth and ordering describe the job that will happen (1.4747ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (3.13923ms)
✔ a restricted task cannot match a job that has no ref (2.12571ms)
✔ a malformed rule is reported rather than ignored (7.98633ms)
✔ the rule is not inherited from defaults (1.65092ms)
✔ a minimal pipeline compiles (19.34126ms)
✔ version is required and pinned (3.50215ms)
✔ empty and malformed documents are rejected clearly (3.27066ms)
✔ image and script are required (0.82664ms)
✔ image may come from defaults (1.19542ms)
✔ unknown keys are rejected, with a suggestion when close (6.95354ms)
✔ all problems are reported at once (1.98704ms)
✔ durations accept seconds, units and composites (3.09227ms)
✔ durations accept day and week units (3.38132ms)
✔ a malformed duration is rejected (1.63313ms)
✔ arch expands into one task per architecture (1.75259ms)
✔ a matrix expands to the cartesian product (1.72002ms)
✔ needs match on shared dimensions rather than fanning out (4.20889ms)
✔ a task without the shared dimension depends on every instance (1.32091ms)
✔ match all opts out of dimension matching (1.44452ms)
✔ needs may name one concrete instance (2.14752ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.10966ms)
✔ needs on an unknown task lists what is defined (0.82563ms)
✔ self dependency is rejected (0.73765ms)
✔ a dependency cycle names the cycle (2.22025ms)
✔ interpolation substitutes arch and matrix values (1.68374ms)
✔ interpolating an undefined dimension is an error (2.33798ms)
✔ referring to arch without declaring one is an error (0.55788ms)
✔ matrix values must be safe for use in a task name (0.62985ms)
✔ arch may not also be a matrix dimension (0.5522ms)
✔ services get a derived alias and reject duplicates (3.74968ms)
✔ artifacts accept a bare list and reject absolute paths (1.17275ms)
✔ artifact when is constrained (0.60403ms)
✔ defaults are inherited and overridden per task (1.22502ms)
✔ env values must be scalars with valid names (1.31036ms)
✔ parsePipeline normalizes without expanding (0.79924ms)
✔ a realistic distribution pipeline produces the expected graph (4.95359ms)
✔ compiles markers to the placeholder each dialect expects (6.32032ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.35595ms)
✔ ignores markers inside string literals and comments (0.50749ms)
✔ a json literal in default text survives untouched (0.30745ms)
✔ doubling a brace escapes it (0.56194ms)
✔ block comments are skipped, and nest only for postgres (0.39455ms)
✔ postgres dollar quoted bodies are skipped (0.37865ms)
✔ mysql backtick identifiers and hash comments are skipped (0.81426ms)
✔ a malformed marker is rejected with a useful message (1.31924ms)
✔ binds by name, resolving dotted paths (2.43173ms)
✔ an exact key beats path traversal (0.7645ms)
✔ reports every missing key at once (0.54743ms)
✔ rejects an array of parameters, which would silently bind by position (1.66687ms)
✔ normalizes booleans, dates and null (0.3027ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.36817ms)
✔ an artifact past its own deadline is deleted (338.37958ms)
✔ an explicit deadline overrides the policy in both directions (322.82426ms)
✔ an explicit deadline also beats the last good job (95.46575ms)
✔ the last few jobs keep their artifacts however old they are (116.10282ms)
✔ recent artifacts are kept however many jobs have followed (105.88652ms)
✔ an artifact outside both rules is deleted (77.43878ms)
✔ the most recent successful job is kept whatever the policy says (93.37825ms)
✔ only the latest success is protected, not every success (121.58623ms)
✔ a project may keep artifacts forever despite a server default (104.18945ms)
✔ a project setting overrides the server default (117.24178ms)
✔ an unfinished job is never swept (120.60159ms)
✔ logs older than the limit are removed but the task remains (164.31463ms)
✔ a swept log is distinguishable from one that never existed (146.39461ms)
✔ a log is swept only once (98.85901ms)
✔ zero keeps logs forever (151.41668ms)
✔ a storage failure leaves the row for the next pass (91.28524ms)
✔ a sweep deletes no more than its batch (187.02627ms)
✔ one project policy does not reach into another (113.80562ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (262.58923ms)
﹣ the api reports and accepts project retention (0.28596ms) # the JSON API was removed
✔ seals and opens a value (4.20679ms)
✔ sealing twice produces different ciphertext (0.57953ms)
✔ without a key, values are stored as marked plaintext (0.38142ms)
✔ a keyed box can still read values written before a key existed (0.30286ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.99669ms)
✔ the wrong key fails to open (0.62812ms)
✔ tampering with the ciphertext is detected (0.55331ms)
✔ associated data binds a secret to its location (2.41323ms)
✔ a key of the wrong size is refused at construction (0.518ms)
✔ task ids are opaque, and say nothing about their job (5.1606ms)
✔ time ordered ids sort by creation time (0.32351ms)
✔ random ids use the expected alphabet (0.24171ms)
✔ slugify produces readable project ids and falls back when empty (0.55335ms)
✔ token hashing and constant time comparison (0.81869ms)
✔ the pipeline this project jobs on itself compiles (82.71722ms)
✔ its tasks declare the features they actually need (7.2338ms)
✔ publishing is restricted to main and release tags (43.94203ms)
✔ get-vanilla matches the reference signature (5.01455ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.28456ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.48876ms)
✔ amzDate produces both required formats (0.43306ms)
✔ s3 requests carry the content hash header (2.24815ms)
✔ presigned urls carry the signature in the query string (3.34542ms)
✔ an already encoded path is not encoded a second time (1.02776ms)
✔ key validation rejects traversal and absolute paths (2.59056ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.61107ms)
✔ key layout is stable (0.73841ms)
✔ local backend round trips a buffer and reports its digest (26.07904ms)
✔ local backend serves ranges (10.54547ms)
✔ local backend accepts a stream (22.89771ms)
✔ local backend reports a missing object and deletes idempotently (36.75977ms)
✔ local backend has no presigned urls (5.75037ms)
✔ a partial write leaves no object behind (4.85275ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.54688ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.47338ms)
✔ inParts handles a chunk far larger than the part size (0.73458ms)
✔ inParts yields nothing for an empty stream (0.59628ms)
﹣ s3 backend round trips awkward keys against a real server (0.09664ms) # docker is not available
﹣ s3 serves byte ranges (0.08333ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.07115ms) # docker is not available
﹣ a presigned url is usable without credentials (0.14997ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.06945ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.09413ms) # docker is not available
﹣ a stream of unknown length is accepted (0.06246ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.058ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.05899ms) # docker is not available
﹣ a multipart object still serves ranges (0.05952ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.05647ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.05374ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.05144ms) # docker is not available
✔ every javascript file parses (1085.5844ms)
✔ the shell scripts parse (5.52847ms)
✔ interpolated values are escaped by default (2.73331ms)
✔ quotes and ampersands are escaped inside attributes (0.39057ms)
✔ nested templates and arrays are kept, raw is passed through (0.46641ms)
✔ null, undefined and false render as nothing (0.31927ms)
✔ attrs omits absent values and renders bare booleans (0.67579ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (460.75327ms)
✔ an anonymous visitor cannot see a private job (282.85365ms)
✔ management pages redirect an anonymous visitor to sign in (180.89249ms)
✔ signing in through the form sets a session and reveals the nav (308.69829ms)
✔ a user creates a project through the form and is shown the secret once (276.34861ms)
✔ a project page shows variables and never their values (183.76869ms)
✔ setting and removing a variable returns the updated table (245.43693ms)
✔ a user cannot open or delete a project they do not own (266.20447ms)
✔ registering a worker shows the token once and lists it (250.90503ms)
✔ an ordinary user cannot create shared capacity from the form (369.66238ms)
✔ the users page is administrator only and warns about what deletion destroys (365.62237ms)
✔ a running job polls, and a finished one stops (291.63453ms)
✔ a task page streams the log and stops polling once it completes (450.05969ms)
✔ log output is escaped, so a task cannot inject markup into the page (468.89693ms)
✔ a mutation without the htmx header is refused (248.75679ms)
✔ the sign in form is centred rather than stranded at the left edge (167.97735ms)
✔ row actions stay ordinary table cells, so rows keep one height (288.2211ms)
✔ the stylesheet and htmx are served, and nothing else is (165.08804ms)
✔ the project page shows retention, with server defaults as placeholders (227.89141ms)
✔ saving retention through the form stores it, and empty means inherit (207.03808ms)
✔ a negative retention value is refused by the form (292.79322ms)
✔ the project page offers a working directory, defaulting to the server one (221.74664ms)
✔ saving a working directory stores it, and empty clears it (266.40624ms)
✔ an unusable working directory is refused by the form (255.33571ms)
✔ worker config loads from json and reports features (42.92778ms)
✔ worker config reads the token from a file (3.87955ms)
✔ environment overrides the worker config file (3.09836ms)
✔ worker config without a token is rejected (3.78606ms)
✔ a malformed feature is reported with its path (4.01213ms)
✔ shell quoting survives quotes and metacharacters (0.48732ms)
✔ a generated script echoes each command and stops on failure (0.69945ms)
✔ container names are valid for docker and stay unique (2.51653ms)
✔ job arguments carry mounts, env, network and privilege (1.01014ms)
✔ a task container is created without sharing anything with the worker (0.87551ms)
✔ a feature still contributes its bind mounts (0.35148ms)
✔ features resolve into mounts, env and privilege (0.67302ms)
✔ an unknown required feature is reported rather than ignored (0.27264ms)
✔ an artifact pattern reduces to the part that can be copied out (0.58238ms)
✔ overlapping artifact paths are copied out once (0.57324ms)
✔ artifact collection globs, and refuses to leave the workspace (46.47483ms)
✔ artifact when controls collection (0.43528ms)
✔ an idle worker keeps running instead of exiting (4013.21696ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1519.94629ms)
✔ log output is batched and offsets advance (1.88431ms)
✔ a conflicting offset resynchronises instead of duplicating (0.70743ms)
✔ secrets are masked before anything leaves the host (0.68153ms)
✔ a secret split across two writes is still masked (0.39854ms)
✔ a failing conductor does not break the task (0.60448ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 21134.47059
[conductor] done