conductor

sign in

test

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

log

[conductor] task test on conductor-worker-aarch64
[conductor] commit 8069c51effa2 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.2 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (218.66254ms)
✔ no file uses CRLF line endings or trailing whitespace (180.56339ms)
✔ a password round trips and a wrong one is refused (43.26558ms)
✔ the same password hashes differently each time (24.86035ms)
✔ parameters are read back from the stored hash (17.68164ms)
✔ a malformed stored hash is refused rather than throwing (0.6763ms)
✔ password length is bounded (0.91826ms)
✔ a session token round trips its claims (2.27383ms)
✔ a token signed with another secret is refused (0.50648ms)
✔ a tampered payload is refused (0.47017ms)
✔ an expired token is refused (0.78254ms)
✔ a malformed token is refused rather than throwing (0.60226ms)
✔ cookies are parsed and issued (2.54439ms)
✔ the oidc login state round trips with its return path (1.46959ms)
✔ a missing return path means the root (0.43823ms)
✔ the oidc login state is refused when forged, stale or off-site (0.59665ms)
✔ oidc roles are collected from the usual claim shapes (0.72885ms)
✔ mask replaces secrets, longest first (0.6101ms)
✔ mask ignores very short values and leaves clean output alone (0.32896ms)
✔ health reports the selected drivers (320.25648ms)
✔ a signed trigger creates a job and expands the pipeline (194.81517ms)
✔ an unsigned or wrongly signed trigger is refused (87.41455ms)
✔ github and gitlab push payloads are understood (325.93802ms)
✔ a branch deletion is ignored rather than failing (107.41224ms)
✔ a broken pipeline is reported as a client error with detail (221.37381ms)
✔ a missing pipeline file is reported clearly (233.85812ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (245.66188ms)
✔ a project pointed at a specific file gets no fallback (205.88601ms)
✔ a repository carrying both spellings is refused rather than guessed at (288.09171ms)
✔ a pipeline still using the jobs key is told what it was renamed to (281.96282ms)
✔ a job can be created directly, without a push payload to imitate (275.95359ms)
✔ creating a job requires the same signature as a trigger (156.62255ms)
✔ creating a job insists on a real commit rather than inferring one (129.0817ms)
✔ a job can be read back, with the state of every task (350.53934ms)
✔ a public job is readable without any credential at all (345.33292ms)
✔ a private job needs the trigger secret, and is otherwise absent (361.36814ms)
✔ a job of another project cannot be read through this one (256.12401ms)
✔ a task can be read back on its own, and by its full name (273.05508ms)
✔ reading a task back carries its dependencies and matrix (391.64812ms)
✔ reading a task back never exposes its environment, services or script (401.12974ms)
✔ a task lists the artifacts it stored, with a usable download url (414.13177ms)
✔ reading a task back needs no worker token (245.7997ms)
✔ a private task is absent without a credential, and needs its project named (372.05159ms)
✔ a private task is readable by an administrator, by either path (498.03195ms)
✔ a task of another project cannot be read through this one (286.21338ms)
✔ an unknown task is 404 by either path (162.6712ms)
✔ the worker api rejects missing and invalid tokens (141.02496ms)
✔ independent tasks dispatch concurrently (397.63561ms)
✔ a task is only offered to a worker that satisfies its requires (308.5245ms)
✔ a worker is not offered work for an architecture it cannot build (287.40143ms)
✔ a claimed task carries everything the worker needs (290.85662ms)
✔ a task that requires a feature reports it to the worker (392.26066ms)
✔ the standard conductor variables are present in the task environment (406.06677ms)
✔ the source tarball is served from the mirror (332.0872ms)
✔ a worker cannot touch a task it does not hold (251.96812ms)
✔ log appends are resumable and deduplicated by offset (271.42907ms)
✔ an oversized log chunk is refused (383.81423ms)
✔ a finished log moves to storage and is still readable (445.78884ms)
✔ artifacts are stored, hashed, and stripped of traversal (294.12912ms)
✔ an artifact shorter than its content-length is rejected (416.59631ms)
✔ success releases dependents, matched on shared dimensions (316.96327ms)
✔ failure skips transitive dependents, not just direct ones (294.17667ms)
✔ a job settles as failed once every task is terminal (442.98223ms)
✔ a job settles as success when everything passes (276.97492ms)
✔ an allowed failure does not fail the job or block dependents (391.98466ms)
✔ a task with retries left is requeued instead of failing the job (319.00419ms)
✔ heartbeats keep a task alive and report cancellation (413.66627ms)
✔ the reaper fails a task whose worker stopped reporting (293.67882ms)
✔ a second push produces an independent, numbered job (664.57251ms)
﹣ jobs can be listed and filtered by project (1.32943ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.39011ms) # the JSON API was removed
✔ a disabled project refuses triggers (189.99132ms)
✔ a trigger for an unknown project is a 404 (160.34322ms)
✔ a commit that is not in the repository is refused (288.57778ms)
✔ a task is told to fetch an archive, and never the repository itself (328.81833ms)
✔ the source archive is the bare tree, with no wrapping directory (347.22384ms)
✔ the working directory is resolved from the pipeline, then the project (1138.40892ms)
✔ an unusable working directory is refused rather than sanitised (1276.84793ms)
✔ the trigger secret is not stored in the clear (185.00443ms)
✔ worker tokens are stored only as hashes (141.08515ms)
✔ defaults select sqlite, local storage and local auth (4.18545ms)
✔ configuring an s3 bucket switches the storage driver (0.76385ms)
✔ a partial s3 configuration is rejected rather than half applied (1.15862ms)
✔ configuring an oidc discovery url switches the auth mode (0.59897ms)
✔ an oidc discovery url without a client id is rejected (0.60625ms)
✔ a database url selects its dialect (1.20419ms)
✔ an unsupported database scheme is reported clearly (0.71142ms)
✔ a sqlite url collapses into database.path (5.946ms)
✔ environment variables override the config file (55.02399ms)
✔ relative paths resolve against the config file directory (6.41072ms)
✔ a missing explicit config file is an error, a missing default is not (2.10659ms)
✔ a heartbeat timeout below the reap interval is rejected (7.57575ms)
✔ a non-integer port is rejected with the variable named (0.85659ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.48369ms)
✔ stateDirs omits the storage directory when s3 is in use (1.47301ms)
✔ the loaded config is frozen (0.65486ms)
✔ topological order places dependencies first (2.6863ms)
✔ topological order is deterministic (2.49203ms)
✔ a cycle is detected and named (1.01956ms)
✔ depth reflects the longest path, not insertion order (0.45523ms)
✔ independent tasks are runnable at the same time (0.57229ms)
✔ a task becomes runnable only once every dependency succeeds (0.4346ms)
✔ a running dependency does not release its dependents (0.31937ms)
✔ failure skips transitive dependents, not just direct ones (0.46558ms)
✔ a skipped dependency never releases a dependent (0.75991ms)
✔ allowed failures can satisfy a dependency when asked to (0.57813ms)
✔ transitive dependents of a leaf is empty (0.44581ms)
✔ graph helpers tolerate dependencies outside the set (5.97914ms)
✔ dialect detection covers every supported scheme (2.70837ms)
✔ statement splitter respects literals and comments (0.72113ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.33708ms)
✔ migrations apply once and are idempotent (86.7666ms)
✔ an edited migration is refused rather than silently diverging (33.10676ms)
✔ a migration removed from disk is reported (15.88888ms)
✔ rows come back as ordinary objects (24.7291ms)
✔ a conditional update claims exactly once (14.34119ms)
✔ deleting a job cascades to its tasks (20.8753ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (24.90661ms)
﹣ migrations apply and retention sweeps on postgres (2.1137ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.21141ms) # SKIP
✔ every example pipeline compiles (59.88222ms)
✔ the distribution example fans in per architecture (12.79145ms)
✔ the node example wires services and features (10.0546ms)
✔ git jobs with safe.directory set (9.80886ms)
✔ it appends to configuration already in the environment (2.81182ms)
✔ a count that is not a number does not corrupt the sequence (1.78839ms)
✔ git accepts the environment we build (138.75808ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (113.1515ms)
﹣ the endpoints and key set come from the discovery document (1.42426ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (26.48905ms)
✔ discovery reports an unreachable provider and a bad status (1.16855ms)
﹣ a token carrying the admin role authenticates as an administrator (0.2087ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.16834ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.17768ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.22135ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.29669ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.26663ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.32775ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.21658ms) # the JSON API was removed
﹣ a forged signature is refused (0.67529ms) # the JSON API was removed
﹣ an expired token is refused (0.29464ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.23251ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.14166ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.22396ms) # docker is not available
﹣ a callback with a forged state is refused (0.11189ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (4.54473ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.37113ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.25051ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.54127ms)
✔ a star matches any job of characters (0.75591ms)
✔ the rest of a pattern is literal, not a regular expression (0.27706ms)
✔ a restricted task is left out of jobs for other refs (38.69108ms)
✔ it is left out rather than recorded as skipped (4.20871ms)
✔ tasks depending on an excluded task are excluded too (2.50218ms)
✔ depth and ordering describe the job that will happen (4.81391ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (3.63986ms)
✔ a restricted task cannot match a job that has no ref (1.49258ms)
✔ a malformed rule is reported rather than ignored (16.65957ms)
✔ the rule is not inherited from defaults (2.49635ms)
✔ a minimal pipeline compiles (110.53866ms)
✔ version is required and pinned (27.44829ms)
✔ empty and malformed documents are rejected clearly (11.15434ms)
✔ image and script are required (1.01834ms)
✔ image may come from defaults (10.89057ms)
✔ unknown keys are rejected, with a suggestion when close (19.49674ms)
✔ all problems are reported at once (7.51504ms)
✔ durations accept seconds, units and composites (20.31606ms)
✔ durations accept day and week units (14.86796ms)
✔ a malformed duration is rejected (7.7259ms)
✔ arch expands into one task per architecture (1.99756ms)
✔ a matrix expands to the cartesian product (2.41181ms)
✔ needs match on shared dimensions rather than fanning out (9.26721ms)
✔ a task without the shared dimension depends on every instance (1.30831ms)
✔ match all opts out of dimension matching (4.5566ms)
✔ needs may name one concrete instance (1.73588ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (4.79532ms)
✔ needs on an unknown task lists what is defined (0.79412ms)
✔ self dependency is rejected (0.6289ms)
✔ a dependency cycle names the cycle (1.91941ms)
✔ interpolation substitutes arch and matrix values (1.99908ms)
✔ interpolating an undefined dimension is an error (1.94714ms)
✔ referring to arch without declaring one is an error (0.55117ms)
✔ matrix values must be safe for use in a task name (0.68886ms)
✔ arch may not also be a matrix dimension (0.5935ms)
✔ services get a derived alias and reject duplicates (2.07782ms)
✔ artifacts accept a bare list and reject absolute paths (1.03874ms)
✔ artifact when is constrained (0.64367ms)
✔ defaults are inherited and overridden per task (2.55062ms)
✔ env values must be scalars with valid names (1.91554ms)
✔ parsePipeline normalizes without expanding (0.70561ms)
✔ a realistic distribution pipeline produces the expected graph (2.11959ms)
✔ compiles markers to the placeholder each dialect expects (6.80976ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.32737ms)
✔ ignores markers inside string literals and comments (0.44625ms)
✔ a json literal in default text survives untouched (0.26869ms)
✔ doubling a brace escapes it (0.5706ms)
✔ block comments are skipped, and nest only for postgres (0.54404ms)
✔ postgres dollar quoted bodies are skipped (0.37491ms)
✔ mysql backtick identifiers and hash comments are skipped (0.46842ms)
✔ a malformed marker is rejected with a useful message (1.51704ms)
✔ binds by name, resolving dotted paths (1.23524ms)
✔ an exact key beats path traversal (0.40325ms)
✔ reports every missing key at once (0.59227ms)
✔ rejects an array of parameters, which would silently bind by position (0.8839ms)
✔ normalizes booleans, dates and null (0.85592ms)
✔ rejects an object value, which is nearly always a forgotten stringify (1.5437ms)
✔ an artifact past its own deadline is deleted (284.14513ms)
✔ an explicit deadline overrides the policy in both directions (197.67421ms)
✔ an explicit deadline also beats the last good job (106.09465ms)
✔ the last few jobs keep their artifacts however old they are (115.86512ms)
✔ recent artifacts are kept however many jobs have followed (143.98529ms)
✔ an artifact outside both rules is deleted (93.26613ms)
✔ the most recent successful job is kept whatever the policy says (118.83706ms)
✔ only the latest success is protected, not every success (119.83776ms)
✔ a project may keep artifacts forever despite a server default (75.45344ms)
✔ a project setting overrides the server default (126.49646ms)
✔ an unfinished job is never swept (116.14489ms)
✔ logs older than the limit are removed but the task remains (91.34053ms)
✔ a swept log is distinguishable from one that never existed (114.0509ms)
✔ a log is swept only once (127.54695ms)
✔ zero keeps logs forever (75.13565ms)
✔ a storage failure leaves the row for the next pass (136.51502ms)
✔ a sweep deletes no more than its batch (130.67651ms)
✔ one project policy does not reach into another (118.51679ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (248.1575ms)
﹣ the api reports and accepts project retention (0.28407ms) # the JSON API was removed
✔ seals and opens a value (3.78348ms)
✔ sealing twice produces different ciphertext (0.6561ms)
✔ without a key, values are stored as marked plaintext (0.36322ms)
✔ a keyed box can still read values written before a key existed (1.99958ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.23648ms)
✔ the wrong key fails to open (0.80583ms)
✔ tampering with the ciphertext is detected (0.54919ms)
✔ associated data binds a secret to its location (2.59015ms)
✔ a key of the wrong size is refused at construction (0.43046ms)
✔ task ids are opaque, and say nothing about their job (5.55057ms)
✔ time ordered ids sort by creation time (0.52154ms)
✔ random ids use the expected alphabet (0.32525ms)
✔ slugify produces readable project ids and falls back when empty (0.7754ms)
✔ token hashing and constant time comparison (1.5814ms)
✔ the pipeline this project jobs on itself compiles (63.95128ms)
✔ its tasks declare the features they actually need (13.18168ms)
✔ publishing is restricted to main and release tags (42.03223ms)
✔ get-vanilla matches the reference signature (6.11178ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.46652ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.41547ms)
✔ amzDate produces both required formats (0.40673ms)
✔ s3 requests carry the content hash header (1.11532ms)
✔ presigned urls carry the signature in the query string (3.85411ms)
✔ an already encoded path is not encoded a second time (1.02706ms)
✔ key validation rejects traversal and absolute paths (2.99673ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.49015ms)
✔ key layout is stable (0.42684ms)
✔ local backend round trips a buffer and reports its digest (47.65166ms)
✔ local backend serves ranges (14.4448ms)
✔ local backend accepts a stream (15.86798ms)
✔ local backend reports a missing object and deletes idempotently (4.07615ms)
✔ local backend has no presigned urls (2.88564ms)
✔ a partial write leaves no object behind (5.23864ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.8689ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.43025ms)
✔ inParts handles a chunk far larger than the part size (0.69525ms)
✔ inParts yields nothing for an empty stream (1.42691ms)
﹣ s3 backend round trips awkward keys against a real server (0.09428ms) # docker is not available
﹣ s3 serves byte ranges (0.08183ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.06817ms) # docker is not available
﹣ a presigned url is usable without credentials (0.17015ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.09315ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.1029ms) # docker is not available
﹣ a stream of unknown length is accepted (0.06919ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.05822ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.06112ms) # docker is not available
﹣ a multipart object still serves ranges (0.13727ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.06077ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.05352ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.05128ms) # docker is not available
✔ every javascript file parses (1037.61644ms)
✔ the shell scripts parse (3.30949ms)
✔ interpolated values are escaped by default (4.07758ms)
✔ quotes and ampersands are escaped inside attributes (0.63044ms)
✔ nested templates and arrays are kept, raw is passed through (0.53991ms)
✔ null, undefined and false render as nothing (0.37194ms)
✔ attrs omits absent values and renders bare booleans (1.06703ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (600.12099ms)
✔ an anonymous visitor cannot see a private job (282.69787ms)
✔ management pages redirect an anonymous visitor to sign in (149.41044ms)
✔ signing in through the form sets a session and reveals the nav (279.38814ms)
✔ a user creates a project through the form and is shown the secret once (362.47467ms)
✔ a project page shows variables and never their values (285.88152ms)
✔ setting and removing a variable returns the updated table (183.54738ms)
✔ a user cannot open or delete a project they do not own (323.42858ms)
✔ registering a worker shows the token once and lists it (281.19512ms)
✔ an ordinary user cannot create shared capacity from the form (344.57359ms)
✔ the users page is administrator only and warns about what deletion destroys (384.43569ms)
✔ a running job polls, and a finished one stops (475.74615ms)
✔ a task page streams the log and stops polling once it completes (305.2855ms)
✔ log output is escaped, so a task cannot inject markup into the page (465.23254ms)
✔ a mutation without the htmx header is refused (225.35495ms)
✔ the sign in form is centred rather than stranded at the left edge (216.35299ms)
✔ row actions stay ordinary table cells, so rows keep one height (259.31532ms)
✔ the stylesheet and htmx are served, and nothing else is (220.51933ms)
✔ the project page shows retention, with server defaults as placeholders (228.31302ms)
✔ saving retention through the form stores it, and empty means inherit (270.16309ms)
✔ a negative retention value is refused by the form (196.89371ms)
✔ the project page offers a working directory, defaulting to the server one (227.46303ms)
✔ saving a working directory stores it, and empty clears it (224.95738ms)
✔ an unusable working directory is refused by the form (264.47143ms)
✔ worker config loads from json and reports features (22.37861ms)
✔ worker config reads the token from a file (4.2819ms)
✔ environment overrides the worker config file (4.93469ms)
✔ worker config without a token is rejected (4.74189ms)
✔ a malformed feature is reported with its path (4.1805ms)
✔ shell quoting survives quotes and metacharacters (0.70336ms)
✔ a generated script echoes each command and stops on failure (0.60039ms)
✔ container names are valid for docker and stay unique (1.93664ms)
✔ job arguments carry mounts, env, network and privilege (1.48048ms)
✔ a task container is created without sharing anything with the worker (1.0966ms)
✔ a feature still contributes its bind mounts (0.38709ms)
✔ features resolve into mounts, env and privilege (0.69498ms)
✔ an unknown required feature is reported rather than ignored (0.24966ms)
✔ an artifact pattern reduces to the part that can be copied out (0.51346ms)
✔ overlapping artifact paths are copied out once (0.57376ms)
✔ artifact collection globs, and refuses to leave the workspace (24.63092ms)
✔ artifact when controls collection (0.28685ms)
✔ an idle worker keeps running instead of exiting (4007.20436ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1521.46766ms)
✔ log output is batched and offsets advance (1.97195ms)
✔ a conflicting offset resynchronises instead of duplicating (0.74018ms)
✔ secrets are masked before anything leaves the host (1.14851ms)
✔ a secret split across two writes is still masked (0.51526ms)
✔ a failing conductor does not break the task (0.97715ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 19887.96823
[conductor] done