conductor

sign in

test

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

log

[conductor] task test on conductor-worker-aarch64
[conductor] commit c8d6358c3d63 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 3s
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.3 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (148.55268ms)
✔ no file uses CRLF line endings or trailing whitespace (98.9771ms)
✔ a password round trips and a wrong one is refused (28.17799ms)
✔ the same password hashes differently each time (13.34439ms)
✔ parameters are read back from the stored hash (12.57317ms)
✔ a malformed stored hash is refused rather than throwing (0.60606ms)
✔ password length is bounded (1.11148ms)
✔ a session token round trips its claims (2.05308ms)
✔ a token signed with another secret is refused (0.70677ms)
✔ a tampered payload is refused (0.65561ms)
✔ an expired token is refused (0.76556ms)
✔ a malformed token is refused rather than throwing (0.5171ms)
✔ cookies are parsed and issued (2.51449ms)
✔ the oidc login state round trips with its return path (1.73518ms)
✔ a missing return path means the root (0.35364ms)
✔ the oidc login state is refused when forged, stale or off-site (0.4854ms)
✔ oidc roles are collected from the usual claim shapes (0.62352ms)
✔ mask replaces secrets, longest first (0.67782ms)
✔ mask ignores very short values and leaves clean output alone (0.54041ms)
✔ health reports the selected drivers (505.40396ms)
✔ a signed trigger creates a job and expands the pipeline (194.03948ms)
✔ an unsigned or wrongly signed trigger is refused (160.24815ms)
✔ github and gitlab push payloads are understood (303.80735ms)
✔ a branch deletion is ignored rather than failing (103.942ms)
✔ a broken pipeline is reported as a client error with detail (232.94243ms)
✔ a missing pipeline file is reported clearly (250.71046ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (204.64878ms)
✔ a project pointed at a specific file gets no fallback (201.42105ms)
✔ a repository carrying both spellings is refused rather than guessed at (241.08965ms)
✔ a pipeline still using the jobs key is told what it was renamed to (293.77574ms)
✔ a job can be created directly, without a push payload to imitate (269.98198ms)
✔ creating a job requires the same signature as a trigger (126.24465ms)
✔ creating a job insists on a real commit rather than inferring one (98.43782ms)
✔ a job can be read back, with the state of every task (366.48288ms)
✔ a public job is readable without any credential at all (275.66516ms)
✔ a private job needs the trigger secret, and is otherwise absent (267.62912ms)
✔ a job of another project cannot be read through this one (328.26762ms)
✔ a task can be read back on its own, and by its full name (268.1839ms)
✔ reading a task back carries its dependencies and matrix (253.00573ms)
✔ reading a task back never exposes its environment, services or script (256.10339ms)
✔ a task lists the artifacts it stored, with a usable download url (462.37334ms)
✔ reading a task back needs no worker token (232.85219ms)
✔ a private task is absent without a credential, and needs its project named (241.02062ms)
✔ a private task is readable by an administrator, by either path (564.81726ms)
✔ a task of another project cannot be read through this one (451.28155ms)
✔ an unknown task is 404 by either path (185.17062ms)
✔ the worker api rejects missing and invalid tokens (148.45289ms)
✔ independent tasks dispatch concurrently (380.48841ms)
✔ a task is only offered to a worker that satisfies its requires (294.24126ms)
✔ a worker is not offered work for an architecture it cannot build (259.57971ms)
✔ a claimed task carries everything the worker needs (419.89301ms)
✔ a task that requires a feature reports it to the worker (286.83571ms)
✔ the standard conductor variables are present in the task environment (305.71437ms)
✔ the source tarball is served from the mirror (439.20476ms)
✔ a worker cannot touch a task it does not hold (326.7018ms)
✔ log appends are resumable and deduplicated by offset (434.4731ms)
✔ an oversized log chunk is refused (277.17399ms)
✔ a finished log moves to storage and is still readable (285.77303ms)
✔ artifacts are stored, hashed, and stripped of traversal (246.645ms)
✔ an artifact shorter than its content-length is rejected (254.22521ms)
✔ success releases dependents, matched on shared dimensions (381.11806ms)
✔ failure skips transitive dependents, not just direct ones (438.3754ms)
✔ a job settles as failed once every task is terminal (330.03634ms)
✔ a job settles as success when everything passes (295.26429ms)
✔ an allowed failure does not fail the job or block dependents (242.97469ms)
✔ a task with retries left is requeued instead of failing the job (303.84718ms)
✔ heartbeats keep a task alive and report cancellation (412.02416ms)
✔ the reaper fails a task whose worker stopped reporting (433.92713ms)
✔ a second push produces an independent, numbered job (570.43804ms)
﹣ jobs can be listed and filtered by project (1.08595ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.39181ms) # the JSON API was removed
✔ a disabled project refuses triggers (182.25479ms)
✔ a trigger for an unknown project is a 404 (169.99999ms)
✔ a commit that is not in the repository is refused (272.0155ms)
✔ a task is told to fetch an archive, and never the repository itself (308.98155ms)
✔ the source archive is the bare tree, with no wrapping directory (453.66549ms)
✔ the working directory is resolved from the pipeline, then the project (1035.49367ms)
✔ an unusable working directory is refused rather than sanitised (1203.68384ms)
✔ the trigger secret is not stored in the clear (175.4319ms)
✔ worker tokens are stored only as hashes (161.05867ms)
✔ defaults select sqlite, local storage and local auth (7.61863ms)
✔ configuring an s3 bucket switches the storage driver (1.49032ms)
✔ a partial s3 configuration is rejected rather than half applied (1.0897ms)
✔ configuring an oidc discovery url switches the auth mode (0.64852ms)
✔ an oidc discovery url without a client id is rejected (0.68089ms)
✔ a database url selects its dialect (6.58911ms)
✔ an unsupported database scheme is reported clearly (1.05916ms)
✔ a sqlite url collapses into database.path (0.73339ms)
✔ environment variables override the config file (42.47793ms)
✔ relative paths resolve against the config file directory (6.28077ms)
✔ a missing explicit config file is an error, a missing default is not (1.70847ms)
✔ a heartbeat timeout below the reap interval is rejected (8.60307ms)
✔ a non-integer port is rejected with the variable named (0.80427ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.46897ms)
✔ stateDirs omits the storage directory when s3 is in use (1.4232ms)
✔ the loaded config is frozen (0.56945ms)
✔ topological order places dependencies first (2.91692ms)
✔ topological order is deterministic (3.37661ms)
✔ a cycle is detected and named (1.29577ms)
✔ depth reflects the longest path, not insertion order (0.54313ms)
✔ independent tasks are runnable at the same time (0.66152ms)
✔ a task becomes runnable only once every dependency succeeds (0.52282ms)
✔ a running dependency does not release its dependents (0.66417ms)
✔ failure skips transitive dependents, not just direct ones (0.58096ms)
✔ a skipped dependency never releases a dependent (0.52175ms)
✔ allowed failures can satisfy a dependency when asked to (0.56654ms)
✔ transitive dependents of a leaf is empty (0.38327ms)
✔ graph helpers tolerate dependencies outside the set (0.50398ms)
✔ dialect detection covers every supported scheme (2.63683ms)
✔ statement splitter respects literals and comments (0.71538ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.29973ms)
✔ migrations apply once and are idempotent (69.3451ms)
✔ an edited migration is refused rather than silently diverging (19.9492ms)
✔ a migration removed from disk is reported (15.48502ms)
✔ rows come back as ordinary objects (20.17721ms)
✔ a conditional update claims exactly once (19.86453ms)
✔ deleting a job cascades to its tasks (18.10346ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (17.90004ms)
﹣ migrations apply and retention sweeps on postgres (8.25162ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (1.17844ms) # SKIP
✔ every example pipeline compiles (54.20959ms)
✔ the distribution example fans in per architecture (10.07094ms)
✔ the node example wires services and features (6.98379ms)
✔ git jobs with safe.directory set (1.83712ms)
✔ it appends to configuration already in the environment (0.31091ms)
✔ a count that is not a number does not corrupt the sequence (0.32297ms)
✔ git accepts the environment we build (54.63721ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (122.17736ms)
﹣ the endpoints and key set come from the discovery document (9.71292ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (60.16996ms)
✔ discovery reports an unreachable provider and a bad status (1.35306ms)
﹣ a token carrying the admin role authenticates as an administrator (0.21238ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.15564ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.12497ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.26002ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.39856ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.31442ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.60257ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.36402ms) # the JSON API was removed
﹣ a forged signature is refused (0.74912ms) # the JSON API was removed
﹣ an expired token is refused (0.21245ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.25155ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (7.50812ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.1438ms) # docker is not available
﹣ a callback with a forged state is refused (0.10707ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.52197ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.10558ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.11936ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.85033ms)
✔ a star matches any job of characters (0.71127ms)
✔ the rest of a pattern is literal, not a regular expression (0.31227ms)
✔ a restricted task is left out of jobs for other refs (27.63259ms)
✔ it is left out rather than recorded as skipped (2.98455ms)
✔ tasks depending on an excluded task are excluded too (3.23238ms)
✔ depth and ordering describe the job that will happen (1.69284ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (2.37313ms)
✔ a restricted task cannot match a job that has no ref (1.77487ms)
✔ a malformed rule is reported rather than ignored (11.1857ms)
✔ the rule is not inherited from defaults (2.09285ms)
✔ a minimal pipeline compiles (19.05782ms)
✔ version is required and pinned (7.32118ms)
✔ empty and malformed documents are rejected clearly (4.23923ms)
✔ image and script are required (0.85982ms)
✔ image may come from defaults (1.28311ms)
✔ unknown keys are rejected, with a suggestion when close (4.84354ms)
✔ all problems are reported at once (1.78558ms)
✔ durations accept seconds, units and composites (3.43769ms)
✔ durations accept day and week units (28.24366ms)
✔ a malformed duration is rejected (15.69081ms)
✔ arch expands into one task per architecture (1.83021ms)
✔ a matrix expands to the cartesian product (2.5046ms)
✔ needs match on shared dimensions rather than fanning out (14.85313ms)
✔ a task without the shared dimension depends on every instance (2.42944ms)
✔ match all opts out of dimension matching (5.69016ms)
✔ needs may name one concrete instance (2.04135ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.1807ms)
✔ needs on an unknown task lists what is defined (0.82662ms)
✔ self dependency is rejected (0.78075ms)
✔ a dependency cycle names the cycle (2.2568ms)
✔ interpolation substitutes arch and matrix values (2.52205ms)
✔ interpolating an undefined dimension is an error (1.24518ms)
✔ referring to arch without declaring one is an error (1.58159ms)
✔ matrix values must be safe for use in a task name (1.11234ms)
✔ arch may not also be a matrix dimension (0.79627ms)
✔ services get a derived alias and reject duplicates (2.59818ms)
✔ artifacts accept a bare list and reject absolute paths (3.78964ms)
✔ artifact when is constrained (0.64821ms)
✔ defaults are inherited and overridden per task (0.9929ms)
✔ env values must be scalars with valid names (1.25087ms)
✔ parsePipeline normalizes without expanding (1.10952ms)
✔ a realistic distribution pipeline produces the expected graph (2.22256ms)
✔ compiles markers to the placeholder each dialect expects (5.36984ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.33442ms)
✔ ignores markers inside string literals and comments (0.42197ms)
✔ a json literal in default text survives untouched (0.26776ms)
✔ doubling a brace escapes it (0.29069ms)
✔ block comments are skipped, and nest only for postgres (0.32006ms)
✔ postgres dollar quoted bodies are skipped (0.30627ms)
✔ mysql backtick identifiers and hash comments are skipped (0.44495ms)
✔ a malformed marker is rejected with a useful message (1.20141ms)
✔ binds by name, resolving dotted paths (1.11643ms)
✔ an exact key beats path traversal (0.37507ms)
✔ reports every missing key at once (0.6698ms)
✔ rejects an array of parameters, which would silently bind by position (0.41732ms)
✔ normalizes booleans, dates and null (0.40953ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.42736ms)
✔ an artifact past its own deadline is deleted (306.82068ms)
✔ an explicit deadline overrides the policy in both directions (233.75193ms)
✔ an explicit deadline also beats the last good job (89.0451ms)
✔ the last few jobs keep their artifacts however old they are (136.56634ms)
✔ recent artifacts are kept however many jobs have followed (156.05051ms)
✔ an artifact outside both rules is deleted (150.56798ms)
✔ the most recent successful job is kept whatever the policy says (134.52452ms)
✔ only the latest success is protected, not every success (122.39175ms)
✔ a project may keep artifacts forever despite a server default (117.55357ms)
✔ a project setting overrides the server default (99.31519ms)
✔ an unfinished job is never swept (124.41356ms)
✔ logs older than the limit are removed but the task remains (162.09411ms)
✔ a swept log is distinguishable from one that never existed (110.88828ms)
✔ a log is swept only once (99.9305ms)
✔ zero keeps logs forever (76.22171ms)
✔ a storage failure leaves the row for the next pass (110.46697ms)
✔ a sweep deletes no more than its batch (119.66947ms)
✔ one project policy does not reach into another (110.53425ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (412.70699ms)
﹣ the api reports and accepts project retention (0.28968ms) # the JSON API was removed
✔ seals and opens a value (4.81562ms)
✔ sealing twice produces different ciphertext (1.17284ms)
✔ without a key, values are stored as marked plaintext (0.4403ms)
✔ a keyed box can still read values written before a key existed (0.33203ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.92314ms)
✔ the wrong key fails to open (0.76059ms)
✔ tampering with the ciphertext is detected (0.68785ms)
✔ associated data binds a secret to its location (1.02768ms)
✔ a key of the wrong size is refused at construction (1.2569ms)
✔ task ids are opaque, and say nothing about their job (5.07302ms)
✔ time ordered ids sort by creation time (0.37091ms)
✔ random ids use the expected alphabet (0.31168ms)
✔ slugify produces readable project ids and falls back when empty (0.43251ms)
✔ token hashing and constant time comparison (1.1539ms)
✔ the pipeline this project jobs on itself compiles (49.48549ms)
✔ its tasks declare the features they actually need (17.14389ms)
✔ publishing is restricted to main and release tags (55.24751ms)
✔ get-vanilla matches the reference signature (35.72473ms)
✔ get-vanilla-query-order-key-case matches the reference signature (5.14298ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (1.70232ms)
✔ amzDate produces both required formats (1.82717ms)
✔ s3 requests carry the content hash header (4.58118ms)
✔ presigned urls carry the signature in the query string (18.1028ms)
✔ an already encoded path is not encoded a second time (5.2854ms)
✔ key validation rejects traversal and absolute paths (2.94766ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.43673ms)
✔ key layout is stable (0.61151ms)
✔ local backend round trips a buffer and reports its digest (26.36451ms)
✔ local backend serves ranges (5.82503ms)
✔ local backend accepts a stream (16.46773ms)
✔ local backend reports a missing object and deletes idempotently (18.0491ms)
✔ local backend has no presigned urls (7.65987ms)
✔ a partial write leaves no object behind (5.37804ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.86879ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.7535ms)
✔ inParts handles a chunk far larger than the part size (0.75052ms)
✔ inParts yields nothing for an empty stream (0.53247ms)
﹣ s3 backend round trips awkward keys against a real server (0.10466ms) # docker is not available
﹣ s3 serves byte ranges (0.46273ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.09438ms) # docker is not available
﹣ a presigned url is usable without credentials (0.16487ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.08541ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.07826ms) # docker is not available
﹣ a stream of unknown length is accepted (0.07489ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.07219ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.07276ms) # docker is not available
﹣ a multipart object still serves ranges (0.07582ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.07325ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.07302ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.06947ms) # docker is not available
✔ every javascript file parses (1095.78563ms)
✔ the shell scripts parse (5.83078ms)
✔ interpolated values are escaped by default (2.62289ms)
✔ quotes and ampersands are escaped inside attributes (0.38974ms)
✔ nested templates and arrays are kept, raw is passed through (0.38801ms)
✔ null, undefined and false render as nothing (0.27532ms)
✔ attrs omits absent values and renders bare booleans (0.37821ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (455.75057ms)
✔ an anonymous visitor cannot see a private job (278.63472ms)
✔ management pages redirect an anonymous visitor to sign in (132.18109ms)
✔ signing in through the form sets a session and reveals the nav (288.44205ms)
✔ a user creates a project through the form and is shown the secret once (199.99617ms)
✔ a project page shows variables and never their values (212.73241ms)
✔ setting and removing a variable returns the updated table (262.87263ms)
✔ a user cannot open or delete a project they do not own (272.23961ms)
✔ registering a worker shows the token once and lists it (269.05016ms)
✔ an ordinary user cannot create shared capacity from the form (286.06624ms)
✔ the users page is administrator only and warns about what deletion destroys (286.37011ms)
✔ a running job polls, and a finished one stops (419.71001ms)
✔ a task page streams the log and stops polling once it completes (307.12983ms)
✔ log output is escaped, so a task cannot inject markup into the page (333.87581ms)
✔ a mutation without the htmx header is refused (281.77083ms)
✔ the sign in form is centred rather than stranded at the left edge (251.45928ms)
✔ row actions stay ordinary table cells, so rows keep one height (250.25247ms)
✔ the stylesheet and htmx are served, and nothing else is (167.88987ms)
✔ the project page shows retention, with server defaults as placeholders (226.39824ms)
✔ saving retention through the form stores it, and empty means inherit (229.95643ms)
✔ a negative retention value is refused by the form (230.50025ms)
✔ the project page offers a working directory, defaulting to the server one (197.82322ms)
✔ saving a working directory stores it, and empty clears it (276.61149ms)
✔ an unusable working directory is refused by the form (240.87979ms)
✔ worker config loads from json and reports features (17.11936ms)
✔ worker config reads the token from a file (3.71007ms)
✔ environment overrides the worker config file (3.46036ms)
✔ worker config without a token is rejected (4.37337ms)
✔ a malformed feature is reported with its path (4.21044ms)
✔ shell quoting survives quotes and metacharacters (0.46902ms)
✔ a generated script echoes each command and stops on failure (0.61996ms)
✔ container names are valid for docker and stay unique (2.32383ms)
✔ job arguments carry mounts, env, network and privilege (1.09866ms)
✔ a task container is created without sharing anything with the worker (0.85907ms)
✔ a feature still contributes its bind mounts (0.34129ms)
✔ features resolve into mounts, env and privilege (0.58481ms)
✔ an unknown required feature is reported rather than ignored (0.28169ms)
✔ an artifact pattern reduces to the part that can be copied out (0.61655ms)
✔ overlapping artifact paths are copied out once (0.68921ms)
✔ artifact collection globs, and refuses to leave the workspace (31.01999ms)
✔ artifact when controls collection (0.37883ms)
✔ an idle worker keeps running instead of exiting (4014.74113ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1521.54333ms)
✔ log output is batched and offsets advance (1.9941ms)
✔ a conflicting offset resynchronises instead of duplicating (0.59509ms)
✔ secrets are masked before anything leaves the host (0.814ms)
✔ a secret split across two writes is still masked (0.44123ms)
✔ a failing conductor does not break the task (1.27317ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 19501.89855
[conductor] done