conductor

sign in

test

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

log

[conductor] task test on conductor-worker-aarch64
[conductor] commit 9d4a25c78da7 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 (139.2164ms)
✔ no file uses CRLF line endings or trailing whitespace (77.4946ms)
✔ a password round trips and a wrong one is refused (29.37429ms)
✔ the same password hashes differently each time (17.67645ms)
✔ parameters are read back from the stored hash (11.99087ms)
✔ a malformed stored hash is refused rather than throwing (0.53363ms)
✔ password length is bounded (1.06455ms)
✔ a session token round trips its claims (1.48944ms)
✔ a token signed with another secret is refused (0.91278ms)
✔ a tampered payload is refused (0.40557ms)
✔ an expired token is refused (0.46765ms)
✔ a malformed token is refused rather than throwing (0.37452ms)
✔ cookies are parsed and issued (3.73226ms)
✔ the oidc login state round trips with its return path (0.99482ms)
✔ a missing return path means the root (0.29836ms)
✔ the oidc login state is refused when forged, stale or off-site (0.38524ms)
✔ oidc roles are collected from the usual claim shapes (0.53379ms)
✔ mask replaces secrets, longest first (0.40203ms)
✔ mask ignores very short values and leaves clean output alone (0.21848ms)
✔ health reports the selected drivers (493.61908ms)
✔ a signed trigger creates a job and expands the pipeline (240.80853ms)
✔ an unsigned or wrongly signed trigger is refused (109.28222ms)
✔ github and gitlab push payloads are understood (348.92562ms)
✔ a branch deletion is ignored rather than failing (132.13991ms)
✔ a broken pipeline is reported as a client error with detail (216.9063ms)
✔ a missing pipeline file is reported clearly (281.58938ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (241.38651ms)
✔ a project pointed at a specific file gets no fallback (228.04371ms)
✔ a repository carrying both spellings is refused rather than guessed at (323.64271ms)
✔ a pipeline still using the jobs key is told what it was renamed to (351.84665ms)
✔ a job can be created directly, without a push payload to imitate (419.56697ms)
✔ creating a job requires the same signature as a trigger (190.2384ms)
✔ creating a job insists on a real commit rather than inferring one (164.57803ms)
✔ a job can be read back, with the state of every task (327.23399ms)
✔ a public job is readable without any credential at all (247.76259ms)
✔ a private job needs the trigger secret, and is otherwise absent (261.75221ms)
✔ a job of another project cannot be read through this one (291.82799ms)
✔ a task can be read back on its own, and by its full name (393.87682ms)
✔ reading a task back carries its dependencies and matrix (290.89254ms)
✔ reading a task back never exposes its environment, services or script (429.38588ms)
✔ a task lists the artifacts it stored, with a usable download url (312.7156ms)
✔ reading a task back needs no worker token (282.22664ms)
✔ a private task is absent without a credential, and needs its project named (246.74238ms)
✔ a private task is readable by an administrator, by either path (522.35119ms)
✔ a task of another project cannot be read through this one (307.71809ms)
✔ an unknown task is 404 by either path (138.49797ms)
✔ the worker api rejects missing and invalid tokens (112.0505ms)
✔ independent tasks dispatch concurrently (374.19212ms)
✔ a task is only offered to a worker that satisfies its requires (330.26649ms)
✔ a worker is not offered work for an architecture it cannot build (383.14855ms)
✔ a claimed task carries everything the worker needs (338.64089ms)
✔ a task that requires a feature reports it to the worker (302.46305ms)
✔ the standard conductor variables are present in the task environment (275.37741ms)
✔ the source tarball is served from the mirror (329.23531ms)
✔ a worker cannot touch a task it does not hold (304.95439ms)
✔ log appends are resumable and deduplicated by offset (400.97209ms)
✔ an oversized log chunk is refused (413.4437ms)
✔ a finished log moves to storage and is still readable (308.34813ms)
✔ artifacts are stored, hashed, and stripped of traversal (268.38351ms)
✔ an artifact shorter than its content-length is rejected (358.06528ms)
✔ success releases dependents, matched on shared dimensions (415.97464ms)
✔ failure skips transitive dependents, not just direct ones (302.08266ms)
✔ a job settles as failed once every task is terminal (303.63624ms)
✔ a job settles as success when everything passes (253.08379ms)
✔ an allowed failure does not fail the job or block dependents (333.53389ms)
✔ a task with retries left is requeued instead of failing the job (312.24815ms)
✔ heartbeats keep a task alive and report cancellation (406.89067ms)
✔ the reaper fails a task whose worker stopped reporting (313.77528ms)
✔ a second push produces an independent, numbered job (651.68698ms)
﹣ jobs can be listed and filtered by project (1.36065ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.36124ms) # the JSON API was removed
✔ a disabled project refuses triggers (181.00979ms)
✔ a trigger for an unknown project is a 404 (162.6044ms)
✔ a commit that is not in the repository is refused (242.04065ms)
✔ a task is told to fetch an archive, and never the repository itself (333.61443ms)
✔ the source archive is the bare tree, with no wrapping directory (430.84634ms)
✔ the working directory is resolved from the pipeline, then the project (1152.63414ms)
✔ an unusable working directory is refused rather than sanitised (1204.97716ms)
✔ the trigger secret is not stored in the clear (205.13973ms)
✔ worker tokens are stored only as hashes (123.70637ms)
✔ defaults select sqlite, local storage and local auth (26.64769ms)
✔ configuring an s3 bucket switches the storage driver (4.30174ms)
✔ a partial s3 configuration is rejected rather than half applied (5.82887ms)
✔ configuring an oidc discovery url switches the auth mode (3.66741ms)
✔ an oidc discovery url without a client id is rejected (3.40216ms)
✔ a database url selects its dialect (8.25071ms)
✔ an unsupported database scheme is reported clearly (5.13203ms)
✔ a sqlite url collapses into database.path (4.98127ms)
✔ environment variables override the config file (36.93985ms)
✔ relative paths resolve against the config file directory (7.31489ms)
✔ a missing explicit config file is an error, a missing default is not (1.94916ms)
✔ a heartbeat timeout below the reap interval is rejected (4.55935ms)
✔ a non-integer port is rejected with the variable named (0.85042ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.48346ms)
✔ stateDirs omits the storage directory when s3 is in use (1.3258ms)
✔ the loaded config is frozen (0.56028ms)
✔ topological order places dependencies first (2.57231ms)
✔ topological order is deterministic (2.97963ms)
✔ a cycle is detected and named (0.9904ms)
✔ depth reflects the longest path, not insertion order (0.41034ms)
✔ independent tasks are runnable at the same time (0.59312ms)
✔ a task becomes runnable only once every dependency succeeds (0.31ms)
✔ a running dependency does not release its dependents (0.38938ms)
✔ failure skips transitive dependents, not just direct ones (0.36276ms)
✔ a skipped dependency never releases a dependent (0.39759ms)
✔ allowed failures can satisfy a dependency when asked to (0.878ms)
✔ transitive dependents of a leaf is empty (0.27611ms)
✔ graph helpers tolerate dependencies outside the set (0.34199ms)
✔ dialect detection covers every supported scheme (11.72989ms)
✔ statement splitter respects literals and comments (3.66347ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (2.80353ms)
✔ migrations apply once and are idempotent (116.69631ms)
✔ an edited migration is refused rather than silently diverging (27.65835ms)
✔ a migration removed from disk is reported (20.60176ms)
✔ rows come back as ordinary objects (19.9729ms)
✔ a conditional update claims exactly once (19.41135ms)
✔ deleting a job cascades to its tasks (27.70006ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (18.23556ms)
﹣ migrations apply and retention sweeps on postgres (6.3871ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (1.15296ms) # SKIP
✔ every example pipeline compiles (44.53279ms)
✔ the distribution example fans in per architecture (12.98671ms)
✔ the node example wires services and features (7.68625ms)
✔ git jobs with safe.directory set (2.53321ms)
✔ it appends to configuration already in the environment (0.34044ms)
✔ a count that is not a number does not corrupt the sequence (0.36246ms)
✔ git accepts the environment we build (42.95509ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (57.75249ms)
﹣ the endpoints and key set come from the discovery document (1.94892ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (34.06349ms)
✔ discovery reports an unreachable provider and a bad status (1.17734ms)
﹣ a token carrying the admin role authenticates as an administrator (0.19114ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.16182ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.13274ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.20037ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.16146ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.23927ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.23877ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.13679ms) # the JSON API was removed
﹣ a forged signature is refused (0.85537ms) # the JSON API was removed
﹣ an expired token is refused (3.50474ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.17244ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.21464ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.08003ms) # docker is not available
﹣ a callback with a forged state is refused (0.06634ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.06102ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.0583ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.05826ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.84537ms)
✔ a star matches any job of characters (0.88084ms)
✔ the rest of a pattern is literal, not a regular expression (0.32019ms)
✔ a restricted task is left out of jobs for other refs (32.14441ms)
✔ it is left out rather than recorded as skipped (4.01459ms)
✔ tasks depending on an excluded task are excluded too (3.94214ms)
✔ depth and ordering describe the job that will happen (1.73133ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (1.90863ms)
✔ a restricted task cannot match a job that has no ref (2.93236ms)
✔ a malformed rule is reported rather than ignored (8.97257ms)
✔ the rule is not inherited from defaults (2.15687ms)
✔ a minimal pipeline compiles (24.3917ms)
✔ version is required and pinned (4.67651ms)
✔ empty and malformed documents are rejected clearly (3.73431ms)
✔ image and script are required (1.00635ms)
✔ image may come from defaults (1.38923ms)
✔ unknown keys are rejected, with a suggestion when close (6.15294ms)
✔ all problems are reported at once (1.46184ms)
✔ durations accept seconds, units and composites (3.13088ms)
✔ durations accept day and week units (2.40034ms)
✔ a malformed duration is rejected (1.54442ms)
✔ arch expands into one task per architecture (2.38481ms)
✔ a matrix expands to the cartesian product (2.26822ms)
✔ needs match on shared dimensions rather than fanning out (6.0335ms)
✔ a task without the shared dimension depends on every instance (1.83239ms)
✔ match all opts out of dimension matching (1.91733ms)
✔ needs may name one concrete instance (3.45463ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.12522ms)
✔ needs on an unknown task lists what is defined (0.71568ms)
✔ self dependency is rejected (0.70922ms)
✔ a dependency cycle names the cycle (2.4171ms)
✔ interpolation substitutes arch and matrix values (2.17938ms)
✔ interpolating an undefined dimension is an error (1.54142ms)
✔ referring to arch without declaring one is an error (1.81728ms)
✔ matrix values must be safe for use in a task name (0.92639ms)
✔ arch may not also be a matrix dimension (0.92979ms)
✔ services get a derived alias and reject duplicates (3.44402ms)
✔ artifacts accept a bare list and reject absolute paths (1.25347ms)
✔ artifact when is constrained (0.59806ms)
✔ defaults are inherited and overridden per task (1.21638ms)
✔ env values must be scalars with valid names (0.81349ms)
✔ parsePipeline normalizes without expanding (0.61076ms)
✔ a realistic distribution pipeline produces the expected graph (1.88777ms)
✔ compiles markers to the placeholder each dialect expects (4.72083ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.28151ms)
✔ ignores markers inside string literals and comments (0.3831ms)
✔ a json literal in default text survives untouched (0.22985ms)
✔ doubling a brace escapes it (0.26069ms)
✔ block comments are skipped, and nest only for postgres (0.2622ms)
✔ postgres dollar quoted bodies are skipped (0.30974ms)
✔ mysql backtick identifiers and hash comments are skipped (0.49929ms)
✔ a malformed marker is rejected with a useful message (0.86833ms)
✔ binds by name, resolving dotted paths (0.83852ms)
✔ an exact key beats path traversal (0.29658ms)
✔ reports every missing key at once (0.46718ms)
✔ rejects an array of parameters, which would silently bind by position (2.44327ms)
✔ normalizes booleans, dates and null (0.26979ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.38669ms)
✔ an artifact past its own deadline is deleted (332.0303ms)
✔ an explicit deadline overrides the policy in both directions (238.87796ms)
✔ an explicit deadline also beats the last good job (86.13951ms)
✔ the last few jobs keep their artifacts however old they are (114.5257ms)
✔ recent artifacts are kept however many jobs have followed (136.5005ms)
✔ an artifact outside both rules is deleted (127.45483ms)
✔ the most recent successful job is kept whatever the policy says (149.47293ms)
✔ only the latest success is protected, not every success (130.37528ms)
✔ a project may keep artifacts forever despite a server default (106.97652ms)
✔ a project setting overrides the server default (98.78926ms)
✔ an unfinished job is never swept (113.42842ms)
✔ logs older than the limit are removed but the task remains (84.89074ms)
✔ a swept log is distinguishable from one that never existed (148.48404ms)
✔ a log is swept only once (121.08431ms)
✔ zero keeps logs forever (112.20239ms)
✔ a storage failure leaves the row for the next pass (93.51115ms)
✔ a sweep deletes no more than its batch (140.47896ms)
✔ one project policy does not reach into another (122.07841ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (225.34485ms)
﹣ the api reports and accepts project retention (0.26022ms) # the JSON API was removed
✔ seals and opens a value (17.71401ms)
✔ sealing twice produces different ciphertext (1.2645ms)
✔ without a key, values are stored as marked plaintext (0.43222ms)
✔ a keyed box can still read values written before a key existed (0.36249ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.2693ms)
✔ the wrong key fails to open (0.87041ms)
✔ tampering with the ciphertext is detected (0.74551ms)
✔ associated data binds a secret to its location (1.40139ms)
✔ a key of the wrong size is refused at construction (0.929ms)
✔ task ids are opaque, and say nothing about their job (5.33247ms)
✔ time ordered ids sort by creation time (0.4217ms)
✔ random ids use the expected alphabet (0.37333ms)
✔ slugify produces readable project ids and falls back when empty (0.77045ms)
✔ token hashing and constant time comparison (3.41458ms)
✔ the pipeline this project jobs on itself compiles (47.58173ms)
✔ its tasks declare the features they actually need (6.527ms)
✔ publishing is restricted to main and release tags (39.86462ms)
✔ get-vanilla matches the reference signature (4.19277ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.26432ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.3134ms)
✔ amzDate produces both required formats (0.71124ms)
✔ s3 requests carry the content hash header (0.89327ms)
✔ presigned urls carry the signature in the query string (3.2781ms)
✔ an already encoded path is not encoded a second time (0.8638ms)
✔ key validation rejects traversal and absolute paths (3.8816ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.65032ms)
✔ key layout is stable (0.60481ms)
✔ local backend round trips a buffer and reports its digest (26.70495ms)
✔ local backend serves ranges (29.23213ms)
✔ local backend accepts a stream (9.63143ms)
✔ local backend reports a missing object and deletes idempotently (3.81392ms)
✔ local backend has no presigned urls (3.39693ms)
✔ a partial write leaves no object behind (3.60014ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.73318ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.51715ms)
✔ inParts handles a chunk far larger than the part size (0.70995ms)
✔ inParts yields nothing for an empty stream (0.53864ms)
﹣ s3 backend round trips awkward keys against a real server (0.08938ms) # docker is not available
﹣ s3 serves byte ranges (0.08335ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.07075ms) # docker is not available
﹣ a presigned url is usable without credentials (0.16084ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.08254ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.07257ms) # docker is not available
﹣ a stream of unknown length is accepted (0.05982ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.0614ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.05655ms) # docker is not available
﹣ a multipart object still serves ranges (0.05908ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.05391ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.05566ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.05208ms) # docker is not available
✔ every javascript file parses (1014.10525ms)
✔ the shell scripts parse (5.70152ms)
✔ interpolated values are escaped by default (2.30362ms)
✔ quotes and ampersands are escaped inside attributes (0.44066ms)
✔ nested templates and arrays are kept, raw is passed through (0.46489ms)
✔ null, undefined and false render as nothing (0.39119ms)
✔ attrs omits absent values and renders bare booleans (0.43972ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (472.31552ms)
✔ an anonymous visitor cannot see a private job (283.40756ms)
✔ management pages redirect an anonymous visitor to sign in (197.36549ms)
✔ signing in through the form sets a session and reveals the nav (251.6579ms)
✔ a user creates a project through the form and is shown the secret once (185.54315ms)
✔ a project page shows variables and never their values (238.79191ms)
✔ setting and removing a variable returns the updated table (207.82024ms)
✔ a user cannot open or delete a project they do not own (329.19402ms)
✔ registering a worker shows the token once and lists it (201.44568ms)
✔ an ordinary user cannot create shared capacity from the form (354.47097ms)
✔ the users page is administrator only and warns about what deletion destroys (316.80284ms)
✔ a running job polls, and a finished one stops (496.70994ms)
✔ a task page streams the log and stops polling once it completes (540.73732ms)
✔ log output is escaped, so a task cannot inject markup into the page (406.38494ms)
✔ a mutation without the htmx header is refused (358.06446ms)
✔ the sign in form is centred rather than stranded at the left edge (243.21931ms)
✔ row actions stay ordinary table cells, so rows keep one height (295.96859ms)
✔ the stylesheet and htmx are served, and nothing else is (177.98807ms)
✔ the project page shows retention, with server defaults as placeholders (181.46966ms)
✔ saving retention through the form stores it, and empty means inherit (223.55864ms)
✔ a negative retention value is refused by the form (213.28842ms)
✔ the project page offers a working directory, defaulting to the server one (331.59383ms)
✔ saving a working directory stores it, and empty clears it (255.44843ms)
✔ an unusable working directory is refused by the form (232.05454ms)
✔ worker config loads from json and reports features (21.46791ms)
✔ worker config reads the token from a file (9.54605ms)
✔ environment overrides the worker config file (3.36878ms)
✔ worker config without a token is rejected (5.01917ms)
✔ a malformed feature is reported with its path (14.7122ms)
✔ shell quoting survives quotes and metacharacters (2.87508ms)
✔ a generated script echoes each command and stops on failure (2.11372ms)
✔ container names are valid for docker and stay unique (1.72023ms)
✔ job arguments carry mounts, env, network and privilege (2.48193ms)
✔ a task container is created without sharing anything with the worker (0.69502ms)
✔ a feature still contributes its bind mounts (0.2907ms)
✔ features resolve into mounts, env and privilege (0.50889ms)
✔ an unknown required feature is reported rather than ignored (0.22025ms)
✔ an artifact pattern reduces to the part that can be copied out (0.41527ms)
✔ overlapping artifact paths are copied out once (0.53458ms)
✔ artifact collection globs, and refuses to leave the workspace (19.60139ms)
✔ artifact when controls collection (0.34855ms)
✔ an idle worker keeps running instead of exiting (4012.0015ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1517.56323ms)
✔ log output is batched and offsets advance (1.90266ms)
✔ a conflicting offset resynchronises instead of duplicating (0.63934ms)
✔ secrets are masked before anything leaves the host (0.78078ms)
✔ a secret split across two writes is still masked (0.44033ms)
✔ a failing conductor does not break the task (0.69453ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 20049.44843
[conductor] done