conductor

sign in

test

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

log

[conductor] task test on conductor-worker-aarch64
[conductor] commit 16e4ff6c128f 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.4 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (148.44ms)
✔ no file uses CRLF line endings or trailing whitespace (63.66095ms)
✔ a password round trips and a wrong one is refused (23.79067ms)
✔ the same password hashes differently each time (13.39787ms)
✔ parameters are read back from the stored hash (11.81321ms)
✔ a malformed stored hash is refused rather than throwing (0.55174ms)
✔ password length is bounded (0.7041ms)
✔ a session token round trips its claims (2.12621ms)
✔ a token signed with another secret is refused (0.49045ms)
✔ a tampered payload is refused (0.42199ms)
✔ an expired token is refused (0.56746ms)
✔ a malformed token is refused rather than throwing (0.38225ms)
✔ cookies are parsed and issued (1.57262ms)
✔ the oidc login state round trips with its return path (2.59572ms)
✔ a missing return path means the root (0.3397ms)
✔ the oidc login state is refused when forged, stale or off-site (0.43767ms)
✔ oidc roles are collected from the usual claim shapes (0.65292ms)
✔ mask replaces secrets, longest first (0.42106ms)
✔ mask ignores very short values and leaves clean output alone (0.23075ms)
✔ health reports the selected drivers (344.85916ms)
✔ a signed trigger creates a job and expands the pipeline (251.27819ms)
✔ an unsigned or wrongly signed trigger is refused (134.08719ms)
✔ github and gitlab push payloads are understood (314.62372ms)
✔ a branch deletion is ignored rather than failing (141.5159ms)
✔ a broken pipeline is reported as a client error with detail (190.9702ms)
✔ a missing pipeline file is reported clearly (224.50792ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (260.88573ms)
✔ a project pointed at a specific file gets no fallback (207.78137ms)
✔ a repository carrying both spellings is refused rather than guessed at (280.37499ms)
✔ a pipeline still using the jobs key is told what it was renamed to (364.61893ms)
✔ a job can be created directly, without a push payload to imitate (212.19196ms)
✔ creating a job requires the same signature as a trigger (133.60625ms)
✔ creating a job insists on a real commit rather than inferring one (135.34292ms)
✔ a job can be read back, with the state of every task (364.51842ms)
✔ a public job is readable without any credential at all (391.12836ms)
✔ a private job needs the trigger secret, and is otherwise absent (298.42069ms)
✔ a job of another project cannot be read through this one (315.25768ms)
✔ a task can be read back on its own, and by its full name (328.19729ms)
✔ reading a task back carries its dependencies and matrix (310.96045ms)
✔ reading a task back never exposes its environment, services or script (422.98774ms)
✔ a task lists the artifacts it stored, with a usable download url (418.02485ms)
✔ reading a task back needs no worker token (417.55628ms)
✔ a private task is absent without a credential, and needs its project named (295.19938ms)
✔ a private task is readable by an administrator, by either path (346.95377ms)
✔ a task of another project cannot be read through this one (307.85996ms)
✔ an unknown task is 404 by either path (175.67841ms)
✔ the worker api rejects missing and invalid tokens (174.26511ms)
✔ independent tasks dispatch concurrently (396.37097ms)
✔ a task is only offered to a worker that satisfies its requires (263.6202ms)
✔ a worker is not offered work for an architecture it cannot build (427.33821ms)
✔ a claimed task carries everything the worker needs (428.90034ms)
✔ a task that requires a feature reports it to the worker (308.71084ms)
✔ the standard conductor variables are present in the task environment (385.65494ms)
✔ the source tarball is served from the mirror (325.48978ms)
✔ a worker cannot touch a task it does not hold (316.39373ms)
✔ log appends are resumable and deduplicated by offset (319.62138ms)
✔ an oversized log chunk is refused (382.35598ms)
✔ a finished log moves to storage and is still readable (408.04157ms)
✔ artifacts are stored, hashed, and stripped of traversal (285.23428ms)
✔ an artifact shorter than its content-length is rejected (399.73753ms)
✔ success releases dependents, matched on shared dimensions (439.08845ms)
✔ failure skips transitive dependents, not just direct ones (304.47876ms)
✔ a job settles as failed once every task is terminal (269.59566ms)
✔ a job settles as success when everything passes (257.93576ms)
✔ an allowed failure does not fail the job or block dependents (385.51193ms)
✔ a task with retries left is requeued instead of failing the job (301.45466ms)
✔ heartbeats keep a task alive and report cancellation (307.21464ms)
✔ the reaper fails a task whose worker stopped reporting (307.52487ms)
✔ a second push produces an independent, numbered job (544.10748ms)
﹣ jobs can be listed and filtered by project (1.17034ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.41348ms) # the JSON API was removed
✔ a disabled project refuses triggers (133.41169ms)
✔ a trigger for an unknown project is a 404 (163.77885ms)
✔ a commit that is not in the repository is refused (253.19332ms)
✔ a task is told to fetch an archive, and never the repository itself (402.10656ms)
✔ the source archive is the bare tree, with no wrapping directory (450.0109ms)
✔ the working directory is resolved from the pipeline, then the project (1211.27683ms)
✔ an unusable working directory is refused rather than sanitised (1097.8927ms)
✔ the trigger secret is not stored in the clear (196.2282ms)
✔ worker tokens are stored only as hashes (117.67444ms)
✔ defaults select sqlite, local storage and local auth (6.11035ms)
✔ configuring an s3 bucket switches the storage driver (0.99156ms)
✔ a partial s3 configuration is rejected rather than half applied (1.59234ms)
✔ configuring an oidc discovery url switches the auth mode (0.80024ms)
✔ an oidc discovery url without a client id is rejected (0.8391ms)
✔ a database url selects its dialect (2.00371ms)
✔ an unsupported database scheme is reported clearly (0.84205ms)
✔ a sqlite url collapses into database.path (1.95892ms)
✔ environment variables override the config file (48.87936ms)
✔ relative paths resolve against the config file directory (4.87022ms)
✔ a missing explicit config file is an error, a missing default is not (2.45057ms)
✔ a heartbeat timeout below the reap interval is rejected (8.84697ms)
✔ a non-integer port is rejected with the variable named (1.03061ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.76095ms)
✔ stateDirs omits the storage directory when s3 is in use (1.87982ms)
✔ the loaded config is frozen (0.80325ms)
✔ topological order places dependencies first (13.14589ms)
✔ topological order is deterministic (15.54325ms)
✔ a cycle is detected and named (5.69117ms)
✔ depth reflects the longest path, not insertion order (2.43256ms)
✔ independent tasks are runnable at the same time (2.94208ms)
✔ a task becomes runnable only once every dependency succeeds (2.43717ms)
✔ a running dependency does not release its dependents (1.95587ms)
✔ failure skips transitive dependents, not just direct ones (4.71402ms)
✔ a skipped dependency never releases a dependent (5.96443ms)
✔ allowed failures can satisfy a dependency when asked to (2.81891ms)
✔ transitive dependents of a leaf is empty (1.64469ms)
✔ graph helpers tolerate dependencies outside the set (2.41445ms)
✔ dialect detection covers every supported scheme (11.12658ms)
✔ statement splitter respects literals and comments (2.93424ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (1.49371ms)
✔ migrations apply once and are idempotent (211.44993ms)
✔ an edited migration is refused rather than silently diverging (22.50403ms)
✔ a migration removed from disk is reported (26.2546ms)
✔ rows come back as ordinary objects (49.47253ms)
✔ a conditional update claims exactly once (29.43143ms)
✔ deleting a job cascades to its tasks (23.66051ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (21.18282ms)
﹣ migrations apply and retention sweeps on postgres (6.85982ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (1.17839ms) # SKIP
✔ every example pipeline compiles (56.80214ms)
✔ the distribution example fans in per architecture (13.05826ms)
✔ the node example wires services and features (6.62189ms)
✔ git jobs with safe.directory set (2.93105ms)
✔ it appends to configuration already in the environment (0.3636ms)
✔ a count that is not a number does not corrupt the sequence (0.3785ms)
✔ git accepts the environment we build (58.01627ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (67.70071ms)
﹣ the endpoints and key set come from the discovery document (1.61188ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (37.27973ms)
✔ discovery reports an unreachable provider and a bad status (1.27804ms)
﹣ a token carrying the admin role authenticates as an administrator (0.29106ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.1673ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.14716ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.21181ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (3.2112ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.27818ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (1.46659ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.16104ms) # the JSON API was removed
﹣ a forged signature is refused (0.39071ms) # the JSON API was removed
﹣ an expired token is refused (0.12797ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.18403ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.22276ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (1.57521ms) # docker is not available
﹣ a callback with a forged state is refused (0.141ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.17108ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.12978ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.08751ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.35403ms)
✔ a star matches any job of characters (0.59941ms)
✔ the rest of a pattern is literal, not a regular expression (0.2766ms)
✔ a restricted task is left out of jobs for other refs (25.56091ms)
✔ it is left out rather than recorded as skipped (3.59399ms)
✔ tasks depending on an excluded task are excluded too (3.58124ms)
✔ depth and ordering describe the job that will happen (1.75601ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (3.73152ms)
✔ a restricted task cannot match a job that has no ref (2.26912ms)
✔ a malformed rule is reported rather than ignored (8.21337ms)
✔ the rule is not inherited from defaults (2.13187ms)
✔ a minimal pipeline compiles (104.00626ms)
✔ version is required and pinned (37.35984ms)
✔ empty and malformed documents are rejected clearly (17.27301ms)
✔ image and script are required (4.89157ms)
✔ image may come from defaults (7.93029ms)
✔ unknown keys are rejected, with a suggestion when close (6.63863ms)
✔ all problems are reported at once (1.83848ms)
✔ durations accept seconds, units and composites (3.24222ms)
✔ durations accept day and week units (2.11494ms)
✔ a malformed duration is rejected (1.42739ms)
✔ arch expands into one task per architecture (2.0821ms)
✔ a matrix expands to the cartesian product (1.93487ms)
✔ needs match on shared dimensions rather than fanning out (40.33947ms)
✔ a task without the shared dimension depends on every instance (8.1108ms)
✔ match all opts out of dimension matching (10.18361ms)
✔ needs may name one concrete instance (2.64847ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.38684ms)
✔ needs on an unknown task lists what is defined (0.78782ms)
✔ self dependency is rejected (0.78447ms)
✔ a dependency cycle names the cycle (2.07453ms)
✔ interpolation substitutes arch and matrix values (1.53088ms)
✔ interpolating an undefined dimension is an error (1.76228ms)
✔ referring to arch without declaring one is an error (0.77974ms)
✔ matrix values must be safe for use in a task name (1.87699ms)
✔ arch may not also be a matrix dimension (0.66422ms)
✔ services get a derived alias and reject duplicates (9.82548ms)
✔ artifacts accept a bare list and reject absolute paths (2.66145ms)
✔ artifact when is constrained (0.87831ms)
✔ defaults are inherited and overridden per task (1.4438ms)
✔ env values must be scalars with valid names (0.97127ms)
✔ parsePipeline normalizes without expanding (0.73901ms)
✔ a realistic distribution pipeline produces the expected graph (2.23935ms)
✔ compiles markers to the placeholder each dialect expects (5.64413ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.37219ms)
✔ ignores markers inside string literals and comments (0.54362ms)
✔ a json literal in default text survives untouched (0.32336ms)
✔ doubling a brace escapes it (0.32023ms)
✔ block comments are skipped, and nest only for postgres (0.32146ms)
✔ postgres dollar quoted bodies are skipped (0.49909ms)
✔ mysql backtick identifiers and hash comments are skipped (0.81178ms)
✔ a malformed marker is rejected with a useful message (1.14428ms)
✔ binds by name, resolving dotted paths (1.10237ms)
✔ an exact key beats path traversal (1.23464ms)
✔ reports every missing key at once (0.43944ms)
✔ rejects an array of parameters, which would silently bind by position (0.41604ms)
✔ normalizes booleans, dates and null (0.35372ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.45915ms)
✔ an artifact past its own deadline is deleted (349.36757ms)
✔ an explicit deadline overrides the policy in both directions (210.92461ms)
✔ an explicit deadline also beats the last good job (104.91105ms)
✔ the last few jobs keep their artifacts however old they are (122.6619ms)
✔ recent artifacts are kept however many jobs have followed (107.7113ms)
✔ an artifact outside both rules is deleted (117.2134ms)
✔ the most recent successful job is kept whatever the policy says (110.86006ms)
✔ only the latest success is protected, not every success (142.37266ms)
✔ a project may keep artifacts forever despite a server default (77.93263ms)
✔ a project setting overrides the server default (95.68336ms)
✔ an unfinished job is never swept (104.47066ms)
✔ logs older than the limit are removed but the task remains (108.95323ms)
✔ a swept log is distinguishable from one that never existed (103.96279ms)
✔ a log is swept only once (123.5963ms)
✔ zero keeps logs forever (108.96028ms)
✔ a storage failure leaves the row for the next pass (111.94538ms)
✔ a sweep deletes no more than its batch (96.78699ms)
✔ one project policy does not reach into another (104.84105ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (301.96045ms)
﹣ the api reports and accepts project retention (0.29303ms) # the JSON API was removed
✔ seals and opens a value (5.4406ms)
✔ sealing twice produces different ciphertext (0.79458ms)
✔ without a key, values are stored as marked plaintext (0.52735ms)
✔ a keyed box can still read values written before a key existed (0.34836ms)
✔ an unkeyed box refuses encrypted values with an actionable message (3.61612ms)
✔ the wrong key fails to open (0.77078ms)
✔ tampering with the ciphertext is detected (1.03484ms)
✔ associated data binds a secret to its location (1.21965ms)
✔ a key of the wrong size is refused at construction (0.60381ms)
✔ task ids are opaque, and say nothing about their job (6.89231ms)
✔ time ordered ids sort by creation time (0.43981ms)
✔ random ids use the expected alphabet (0.35934ms)
✔ slugify produces readable project ids and falls back when empty (0.66466ms)
✔ token hashing and constant time comparison (2.0491ms)
✔ the pipeline this project jobs on itself compiles (48.72067ms)
✔ its tasks declare the features they actually need (10.28709ms)
✔ publishing is restricted to main and release tags (33.92887ms)
✔ get-vanilla matches the reference signature (10.35365ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.12382ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.29624ms)
✔ amzDate produces both required formats (0.36589ms)
✔ s3 requests carry the content hash header (4.72731ms)
✔ presigned urls carry the signature in the query string (7.2053ms)
✔ an already encoded path is not encoded a second time (9.30029ms)
✔ key validation rejects traversal and absolute paths (3.2721ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.38728ms)
✔ key layout is stable (0.55973ms)
✔ local backend round trips a buffer and reports its digest (35.20013ms)
✔ local backend serves ranges (8.2516ms)
✔ local backend accepts a stream (10.83547ms)
✔ local backend reports a missing object and deletes idempotently (4.25107ms)
✔ local backend has no presigned urls (3.92714ms)
✔ a partial write leaves no object behind (14.06388ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.75518ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.34633ms)
✔ inParts handles a chunk far larger than the part size (0.78049ms)
✔ inParts yields nothing for an empty stream (0.71203ms)
﹣ s3 backend round trips awkward keys against a real server (0.10797ms) # docker is not available
﹣ s3 serves byte ranges (0.09508ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.08942ms) # docker is not available
﹣ a presigned url is usable without credentials (0.46669ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.09018ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.08035ms) # docker is not available
﹣ a stream of unknown length is accepted (0.08072ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.07723ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.15424ms) # docker is not available
﹣ a multipart object still serves ranges (0.11394ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.08722ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.08611ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.07801ms) # docker is not available
✔ every javascript file parses (937.94257ms)
✔ the shell scripts parse (5.24556ms)
✔ interpolated values are escaped by default (6.10178ms)
✔ quotes and ampersands are escaped inside attributes (0.41831ms)
✔ nested templates and arrays are kept, raw is passed through (0.41732ms)
✔ null, undefined and false render as nothing (0.24171ms)
✔ attrs omits absent values and renders bare booleans (0.6545ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (466.82798ms)
✔ an anonymous visitor cannot see a private job (264.56289ms)
✔ management pages redirect an anonymous visitor to sign in (177.80018ms)
✔ signing in through the form sets a session and reveals the nav (254.61768ms)
✔ a user creates a project through the form and is shown the secret once (263.55934ms)
✔ a project page shows variables and never their values (220.8468ms)
✔ setting and removing a variable returns the updated table (305.9077ms)
✔ a user cannot open or delete a project they do not own (395.75676ms)
✔ registering a worker shows the token once and lists it (224.3253ms)
✔ an ordinary user cannot create shared capacity from the form (394.62572ms)
✔ the users page is administrator only and warns about what deletion destroys (296.85655ms)
✔ a running job polls, and a finished one stops (450.36858ms)
✔ a task page streams the log and stops polling once it completes (424.83465ms)
✔ log output is escaped, so a task cannot inject markup into the page (333.61733ms)
✔ a mutation without the htmx header is refused (289.43684ms)
✔ the sign in form is centred rather than stranded at the left edge (171.87662ms)
✔ row actions stay ordinary table cells, so rows keep one height (245.94814ms)
✔ the stylesheet and htmx are served, and nothing else is (237.56308ms)
✔ the project page shows retention, with server defaults as placeholders (224.54136ms)
✔ saving retention through the form stores it, and empty means inherit (264.00984ms)
✔ a negative retention value is refused by the form (252.71348ms)
✔ the project page offers a working directory, defaulting to the server one (248.21267ms)
✔ saving a working directory stores it, and empty clears it (294.66252ms)
✔ an unusable working directory is refused by the form (284.35944ms)
✔ worker config loads from json and reports features (21.92042ms)
✔ worker config reads the token from a file (4.25085ms)
✔ environment overrides the worker config file (4.28807ms)
✔ worker config without a token is rejected (4.73002ms)
✔ a malformed feature is reported with its path (3.83081ms)
✔ shell quoting survives quotes and metacharacters (0.40593ms)
✔ a generated script echoes each command and stops on failure (0.48359ms)
✔ container names are valid for docker and stay unique (1.75205ms)
✔ job arguments carry mounts, env, network and privilege (0.71384ms)
✔ a task container is created without sharing anything with the worker (0.82509ms)
✔ a feature still contributes its bind mounts (0.33602ms)
✔ features resolve into mounts, env and privilege (0.61232ms)
✔ an unknown required feature is reported rather than ignored (0.26645ms)
✔ an artifact pattern reduces to the part that can be copied out (0.5599ms)
✔ overlapping artifact paths are copied out once (0.57862ms)
✔ artifact collection globs, and refuses to leave the workspace (39.73274ms)
✔ artifact when controls collection (0.35176ms)
✔ an idle worker keeps running instead of exiting (4009.66233ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1517.486ms)
✔ log output is batched and offsets advance (1.78189ms)
✔ a conflicting offset resynchronises instead of duplicating (0.57051ms)
✔ secrets are masked before anything leaves the host (0.85142ms)
✔ a secret split across two writes is still masked (0.39713ms)
✔ a failing conductor does not break the task (0.81231ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 19900.09568
[conductor] done