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 a134e2de963e 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 (234.32047ms)
✔ no file uses CRLF line endings or trailing whitespace (118.00048ms)
✔ a password round trips and a wrong one is refused (38.42399ms)
✔ the same password hashes differently each time (82.35451ms)
✔ parameters are read back from the stored hash (84.25142ms)
✔ a malformed stored hash is refused rather than throwing (0.65053ms)
✔ password length is bounded (0.90373ms)
✔ a session token round trips its claims (2.06932ms)
✔ a token signed with another secret is refused (0.86209ms)
✔ a tampered payload is refused (0.5135ms)
✔ an expired token is refused (0.78507ms)
✔ a malformed token is refused rather than throwing (0.48305ms)
✔ cookies are parsed and issued (4.29183ms)
✔ the oidc login state round trips with its return path (1.38276ms)
✔ a missing return path means the root (0.3961ms)
✔ the oidc login state is refused when forged, stale or off-site (0.49046ms)
✔ oidc roles are collected from the usual claim shapes (0.98744ms)
✔ mask replaces secrets, longest first (0.52361ms)
✔ mask ignores very short values and leaves clean output alone (0.30161ms)
✔ health reports the selected drivers (331.00203ms)
✔ a signed trigger creates a job and expands the pipeline (238.51948ms)
✔ an unsigned or wrongly signed trigger is refused (122.78827ms)
✔ github and gitlab push payloads are understood (337.87478ms)
✔ a branch deletion is ignored rather than failing (106.32009ms)
✔ a broken pipeline is reported as a client error with detail (192.35886ms)
✔ a missing pipeline file is reported clearly (203.05547ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (309.50768ms)
✔ a project pointed at a specific file gets no fallback (353.80475ms)
✔ a repository carrying both spellings is refused rather than guessed at (354.79493ms)
✔ a pipeline still using the jobs key is told what it was renamed to (387.65176ms)
✔ a job can be created directly, without a push payload to imitate (360.54467ms)
✔ creating a job requires the same signature as a trigger (181.9442ms)
✔ creating a job insists on a real commit rather than inferring one (148.79092ms)
✔ a job can be read back, with the state of every task (427.54182ms)
✔ a public job is readable without any credential at all (419.99138ms)
✔ a private job needs the trigger secret, and is otherwise absent (466.15196ms)
✔ a job of another project cannot be read through this one (394.09381ms)
✔ a task can be read back on its own, and by its full name (327.90449ms)
✔ reading a task back carries its dependencies and matrix (297.72376ms)
✔ reading a task back never exposes its environment, services or script (415.8362ms)
✔ a task lists the artifacts it stored, with a usable download url (322.82886ms)
✔ reading a task back needs no worker token (452.94317ms)
✔ a private task is absent without a credential, and needs its project named (486.62715ms)
✔ a private task is readable by an administrator, by either path (538.71281ms)
✔ a task of another project cannot be read through this one (341.09758ms)
✔ an unknown task is 404 by either path (162.01326ms)
✔ the worker api rejects missing and invalid tokens (167.70347ms)
✔ independent tasks dispatch concurrently (352.91998ms)
✔ a task is only offered to a worker that satisfies its requires (436.2878ms)
✔ a worker is not offered work for an architecture it cannot build (471.91578ms)
✔ a claimed task carries everything the worker needs (375.92247ms)
✔ a task that requires a feature reports it to the worker (441.15512ms)
✔ the standard conductor variables are present in the task environment (421.6285ms)
✔ the source tarball is served from the mirror (498.1257ms)
✔ a worker cannot touch a task it does not hold (464.14375ms)
✔ log appends are resumable and deduplicated by offset (406.54392ms)
✔ an oversized log chunk is refused (377.93886ms)
✔ a finished log moves to storage and is still readable (375.31643ms)
✔ artifacts are stored, hashed, and stripped of traversal (440.40681ms)
✔ an artifact shorter than its content-length is rejected (462.0336ms)
✔ success releases dependents, matched on shared dimensions (396.55291ms)
✔ failure skips transitive dependents, not just direct ones (440.34693ms)
✔ a job settles as failed once every task is terminal (402.718ms)
✔ a job settles as success when everything passes (459.59419ms)
✔ an allowed failure does not fail the job or block dependents (442.57076ms)
✔ a task with retries left is requeued instead of failing the job (432.71098ms)
✔ heartbeats keep a task alive and report cancellation (452.78079ms)
✔ the reaper fails a task whose worker stopped reporting (293.45154ms)
✔ a second push produces an independent, numbered job (649.41142ms)
﹣ jobs can be listed and filtered by project (0.36503ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.11388ms) # the JSON API was removed
✔ a disabled project refuses triggers (182.18761ms)
✔ a trigger for an unknown project is a 404 (185.43379ms)
✔ a commit that is not in the repository is refused (327.2698ms)
✔ a task is told to fetch an archive, and never the repository itself (430.20187ms)
✔ the source archive is the bare tree, with no wrapping directory (450.29818ms)
✔ the working directory is resolved from the pipeline, then the project (1318.45142ms)
✔ an unusable working directory is refused rather than sanitised (1538.22134ms)
✔ the trigger secret is not stored in the clear (157.46696ms)
✔ worker tokens are stored only as hashes (221.48033ms)
✔ defaults select sqlite, local storage and local auth (8.68596ms)
✔ configuring an s3 bucket switches the storage driver (1.33146ms)
✔ a partial s3 configuration is rejected rather than half applied (1.86419ms)
✔ configuring an oidc discovery url switches the auth mode (0.80995ms)
✔ an oidc discovery url without a client id is rejected (0.61961ms)
✔ a database url selects its dialect (1.38474ms)
✔ an unsupported database scheme is reported clearly (0.81835ms)
✔ a sqlite url collapses into database.path (2.03427ms)
✔ environment variables override the config file (44.79774ms)
✔ relative paths resolve against the config file directory (6.98102ms)
✔ a missing explicit config file is an error, a missing default is not (1.58945ms)
✔ a heartbeat timeout below the reap interval is rejected (6.32907ms)
✔ a non-integer port is rejected with the variable named (0.86905ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.59467ms)
✔ stateDirs omits the storage directory when s3 is in use (1.46381ms)
✔ the loaded config is frozen (0.63581ms)
✔ topological order places dependencies first (2.96993ms)
✔ topological order is deterministic (3.46341ms)
✔ a cycle is detected and named (1.18839ms)
✔ depth reflects the longest path, not insertion order (0.71115ms)
✔ independent tasks are runnable at the same time (0.67594ms)
✔ a task becomes runnable only once every dependency succeeds (0.73517ms)
✔ a running dependency does not release its dependents (0.5276ms)
✔ failure skips transitive dependents, not just direct ones (0.64068ms)
✔ a skipped dependency never releases a dependent (1.62252ms)
✔ allowed failures can satisfy a dependency when asked to (0.64402ms)
✔ transitive dependents of a leaf is empty (0.35362ms)
✔ graph helpers tolerate dependencies outside the set (0.57078ms)
✔ dialect detection covers every supported scheme (8.09456ms)
✔ statement splitter respects literals and comments (0.89163ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.3527ms)
✔ migrations apply once and are idempotent (108.36706ms)
✔ an edited migration is refused rather than silently diverging (29.32027ms)
✔ a migration removed from disk is reported (25.71327ms)
✔ rows come back as ordinary objects (23.83699ms)
✔ a conditional update claims exactly once (38.94141ms)
✔ deleting a job cascades to its tasks (89.25211ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (120.01489ms)
﹣ migrations apply and retention sweeps on postgres (2.33764ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.22407ms) # SKIP
✔ every example pipeline compiles (45.35243ms)
✔ the distribution example fans in per architecture (89.85862ms)
✔ the node example wires services and features (55.82531ms)
✔ git jobs with safe.directory set (2.43009ms)
✔ it appends to configuration already in the environment (0.43209ms)
✔ a count that is not a number does not corrupt the sequence (0.41051ms)
✔ git accepts the environment we build (63.91547ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (66.97316ms)
﹣ the endpoints and key set come from the discovery document (2.51111ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (46.00898ms)
✔ discovery reports an unreachable provider and a bad status (1.75369ms)
﹣ a token carrying the admin role authenticates as an administrator (0.74566ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.19572ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.17113ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (1.10152ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.2741ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.31117ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (2.7749ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.90505ms) # the JSON API was removed
﹣ a forged signature is refused (1.7111ms) # the JSON API was removed
﹣ an expired token is refused (1.09558ms) # the JSON API was removed
﹣ a token from a different issuer is refused (1.23141ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.64122ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.50416ms) # docker is not available
﹣ a callback with a forged state is refused (0.54453ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.48857ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.54593ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.47957ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.16202ms)
✔ a star matches any job of characters (1.19676ms)
✔ the rest of a pattern is literal, not a regular expression (0.56622ms)
✔ a restricted task is left out of jobs for other refs (45.0832ms)
✔ it is left out rather than recorded as skipped (7.76492ms)
✔ tasks depending on an excluded task are excluded too (3.44931ms)
✔ depth and ordering describe the job that will happen (1.77377ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (2.26535ms)
✔ a restricted task cannot match a job that has no ref (4.39128ms)
✔ a malformed rule is reported rather than ignored (12.26894ms)
✔ the rule is not inherited from defaults (2.78867ms)
✔ a minimal pipeline compiles (28.04129ms)
✔ version is required and pinned (3.81901ms)
✔ empty and malformed documents are rejected clearly (4.352ms)
✔ image and script are required (1.21365ms)
✔ image may come from defaults (4.32369ms)
✔ unknown keys are rejected, with a suggestion when close (5.33893ms)
✔ all problems are reported at once (1.8031ms)
✔ durations accept seconds, units and composites (7.46232ms)
✔ durations accept day and week units (5.51052ms)
✔ a malformed duration is rejected (1.22891ms)
✔ arch expands into one task per architecture (1.95008ms)
✔ a matrix expands to the cartesian product (3.1392ms)
✔ needs match on shared dimensions rather than fanning out (7.15434ms)
✔ a task without the shared dimension depends on every instance (2.003ms)
✔ match all opts out of dimension matching (5.4653ms)
✔ needs may name one concrete instance (12.19964ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (0.99231ms)
✔ needs on an unknown task lists what is defined (0.64742ms)
✔ self dependency is rejected (0.65486ms)
✔ a dependency cycle names the cycle (1.57869ms)
✔ interpolation substitutes arch and matrix values (1.60527ms)
✔ interpolating an undefined dimension is an error (2.55789ms)
✔ referring to arch without declaring one is an error (0.54392ms)
✔ matrix values must be safe for use in a task name (0.62942ms)
✔ arch may not also be a matrix dimension (0.55265ms)
✔ services get a derived alias and reject duplicates (2.74874ms)
✔ artifacts accept a bare list and reject absolute paths (1.06389ms)
✔ artifact when is constrained (0.82593ms)
✔ defaults are inherited and overridden per task (2.58424ms)
✔ env values must be scalars with valid names (0.86522ms)
✔ parsePipeline normalizes without expanding (2.08504ms)
✔ a realistic distribution pipeline produces the expected graph (4.56992ms)
✔ compiles markers to the placeholder each dialect expects (6.39312ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.3716ms)
✔ ignores markers inside string literals and comments (0.51892ms)
✔ a json literal in default text survives untouched (0.32494ms)
✔ doubling a brace escapes it (0.80304ms)
✔ block comments are skipped, and nest only for postgres (0.40835ms)
✔ postgres dollar quoted bodies are skipped (0.38372ms)
✔ mysql backtick identifiers and hash comments are skipped (0.44448ms)
✔ a malformed marker is rejected with a useful message (1.45862ms)
✔ binds by name, resolving dotted paths (1.24756ms)
✔ an exact key beats path traversal (1.88992ms)
✔ reports every missing key at once (0.50617ms)
✔ rejects an array of parameters, which would silently bind by position (0.45686ms)
✔ normalizes booleans, dates and null (0.37152ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.50765ms)
✔ an artifact past its own deadline is deleted (339.36288ms)
✔ an explicit deadline overrides the policy in both directions (288.87181ms)
✔ an explicit deadline also beats the last good job (103.45625ms)
✔ the last few jobs keep their artifacts however old they are (144.35458ms)
✔ recent artifacts are kept however many jobs have followed (117.74532ms)
✔ an artifact outside both rules is deleted (166.2868ms)
✔ the most recent successful job is kept whatever the policy says (84.37835ms)
✔ only the latest success is protected, not every success (150.35265ms)
✔ a project may keep artifacts forever despite a server default (85.31189ms)
✔ a project setting overrides the server default (121.04733ms)
✔ an unfinished job is never swept (112.52828ms)
✔ logs older than the limit are removed but the task remains (91.0406ms)
✔ a swept log is distinguishable from one that never existed (92.90699ms)
✔ a log is swept only once (111.17153ms)
✔ zero keeps logs forever (113.00836ms)
✔ a storage failure leaves the row for the next pass (99.72552ms)
✔ a sweep deletes no more than its batch (159.48162ms)
✔ one project policy does not reach into another (93.00326ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (274.26978ms)
﹣ the api reports and accepts project retention (0.29398ms) # the JSON API was removed
✔ seals and opens a value (26.19197ms)
✔ sealing twice produces different ciphertext (4.44353ms)
✔ without a key, values are stored as marked plaintext (2.02914ms)
✔ a keyed box can still read values written before a key existed (1.49393ms)
✔ an unkeyed box refuses encrypted values with an actionable message (10.72018ms)
✔ the wrong key fails to open (3.21425ms)
✔ tampering with the ciphertext is detected (3.67489ms)
✔ associated data binds a secret to its location (5.57491ms)
✔ a key of the wrong size is refused at construction (1.99719ms)
✔ task ids are opaque, and say nothing about their job (15.21691ms)
✔ time ordered ids sort by creation time (0.64656ms)
✔ random ids use the expected alphabet (0.59934ms)
✔ slugify produces readable project ids and falls back when empty (1.04319ms)
✔ token hashing and constant time comparison (1.74101ms)
✔ the pipeline this project jobs on itself compiles (245.36249ms)
✔ its tasks declare the features they actually need (63.71487ms)
✔ publishing is restricted to main and release tags (89.72456ms)
✔ get-vanilla matches the reference signature (3.71499ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.31294ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.30028ms)
✔ amzDate produces both required formats (0.27328ms)
✔ s3 requests carry the content hash header (0.74733ms)
✔ presigned urls carry the signature in the query string (2.73556ms)
✔ an already encoded path is not encoded a second time (0.85116ms)
✔ key validation rejects traversal and absolute paths (2.94713ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.50722ms)
✔ key layout is stable (1.39209ms)
✔ local backend round trips a buffer and reports its digest (29.58506ms)
✔ local backend serves ranges (6.44614ms)
✔ local backend accepts a stream (23.16175ms)
✔ local backend reports a missing object and deletes idempotently (3.59483ms)
✔ local backend has no presigned urls (21.67193ms)
✔ a partial write leaves no object behind (21.94507ms)
✔ part size grows so that a huge object still fits in 10000 parts (3.63159ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (8.96023ms)
✔ inParts handles a chunk far larger than the part size (3.64837ms)
✔ inParts yields nothing for an empty stream (2.72459ms)
﹣ s3 backend round trips awkward keys against a real server (0.52959ms) # docker is not available
﹣ s3 serves byte ranges (0.44706ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.44761ms) # docker is not available
﹣ a presigned url is usable without credentials (3.98487ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.4473ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.41256ms) # docker is not available
﹣ a stream of unknown length is accepted (0.4126ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.41106ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.40581ms) # docker is not available
﹣ a multipart object still serves ranges (0.39831ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.39539ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.45369ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.3886ms) # docker is not available
✔ every javascript file parses (1093.58449ms)
✔ the shell scripts parse (3.86336ms)
✔ interpolated values are escaped by default (3.49751ms)
✔ quotes and ampersands are escaped inside attributes (0.33996ms)
✔ nested templates and arrays are kept, raw is passed through (0.35227ms)
✔ null, undefined and false render as nothing (0.28005ms)
✔ attrs omits absent values and renders bare booleans (0.44782ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (521.20028ms)
✔ an anonymous visitor cannot see a private job (320.25946ms)
✔ management pages redirect an anonymous visitor to sign in (236.17297ms)
✔ signing in through the form sets a session and reveals the nav (343.00597ms)
✔ a user creates a project through the form and is shown the secret once (203.42556ms)
✔ a project page shows variables and never their values (226.47863ms)
✔ setting and removing a variable returns the updated table (271.10927ms)
✔ a user cannot open or delete a project they do not own (312.00795ms)
✔ registering a worker shows the token once and lists it (284.32547ms)
✔ an ordinary user cannot create shared capacity from the form (433.74711ms)
✔ the users page is administrator only and warns about what deletion destroys (385.27679ms)
✔ a running job polls, and a finished one stops (456.13916ms)
✔ a task page streams the log and stops polling once it completes (274.24715ms)
✔ log output is escaped, so a task cannot inject markup into the page (403.31566ms)
✔ a mutation without the htmx header is refused (336.43086ms)
✔ the sign in form is centred rather than stranded at the left edge (216.38608ms)
✔ row actions stay ordinary table cells, so rows keep one height (364.17169ms)
✔ the stylesheet and htmx are served, and nothing else is (187.42787ms)
✔ the project page shows retention, with server defaults as placeholders (293.83478ms)
✔ saving retention through the form stores it, and empty means inherit (250.58288ms)
✔ a negative retention value is refused by the form (257.01332ms)
✔ the project page offers a working directory, defaulting to the server one (251.85803ms)
✔ saving a working directory stores it, and empty clears it (226.37233ms)
✔ an unusable working directory is refused by the form (281.00979ms)
✔ worker config loads from json and reports features (30.83383ms)
✔ worker config reads the token from a file (3.78637ms)
✔ environment overrides the worker config file (3.37033ms)
✔ worker config without a token is rejected (11.21264ms)
✔ a malformed feature is reported with its path (22.13582ms)
✔ shell quoting survives quotes and metacharacters (7.59504ms)
✔ a generated script echoes each command and stops on failure (12.5346ms)
✔ container names are valid for docker and stay unique (12.90499ms)
✔ job arguments carry mounts, env, network and privilege (8.65822ms)
✔ a task container is created without sharing anything with the worker (13.95708ms)
✔ a feature still contributes its bind mounts (0.92577ms)
✔ features resolve into mounts, env and privilege (0.63885ms)
✔ an unknown required feature is reported rather than ignored (0.28071ms)
✔ an artifact pattern reduces to the part that can be copied out (0.62383ms)
✔ overlapping artifact paths are copied out once (0.63878ms)
✔ artifact collection globs, and refuses to leave the workspace (37.39952ms)
✔ artifact when controls collection (5.29954ms)
✔ an idle worker keeps running instead of exiting (4021.73401ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1522.62807ms)
✔ log output is batched and offsets advance (3.58688ms)
✔ a conflicting offset resynchronises instead of duplicating (0.66506ms)
✔ secrets are masked before anything leaves the host (1.20737ms)
✔ a secret split across two writes is still masked (0.46237ms)
✔ a failing conductor does not break the task (0.84916ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 23702.40261
[conductor] done