conductor

sign in

integration

statesuccess
jobback to job
imagenode:24-alpine
arch-
attempt1 of 1
workerconductor-worker-x86-64
duration24s

log

[conductor] task integration on conductor-worker-x86-64
[conductor] commit 49200bfa627c 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: 23.3 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 (228.766701ms)
✔ no file uses CRLF line endings or trailing whitespace (128.306664ms)
✔ a password round trips and a wrong one is refused (71.622157ms)
✔ the same password hashes differently each time (60.150845ms)
✔ parameters are read back from the stored hash (44.311393ms)
✔ a malformed stored hash is refused rather than throwing (0.784678ms)
✔ password length is bounded (1.023173ms)
✔ a session token round trips its claims (4.239768ms)
✔ a token signed with another secret is refused (1.730707ms)
✔ a tampered payload is refused (0.692951ms)
✔ an expired token is refused (0.957649ms)
✔ a malformed token is refused rather than throwing (0.822068ms)
✔ cookies are parsed and issued (9.266605ms)
✔ the oidc login state round trips with its return path (1.732527ms)
✔ a missing return path means the root (0.504948ms)
✔ the oidc login state is refused when forged, stale or off-site (0.738447ms)
✔ oidc roles are collected from the usual claim shapes (1.523178ms)
✔ mask replaces secrets, longest first (0.714114ms)
✔ mask ignores very short values and leaves clean output alone (0.38837ms)
✔ health reports the selected drivers (393.410211ms)
✔ a signed trigger creates a job and expands the pipeline (228.876954ms)
✔ an unsigned or wrongly signed trigger is refused (113.888595ms)
✔ github and gitlab push payloads are understood (308.075927ms)
✔ a branch deletion is ignored rather than failing (90.471035ms)
✔ a broken pipeline is reported as a client error with detail (208.223334ms)
✔ a missing pipeline file is reported clearly (206.785387ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (216.377526ms)
✔ a project pointed at a specific file gets no fallback (225.297157ms)
✔ a repository carrying both spellings is refused rather than guessed at (238.487676ms)
✔ a pipeline still using the jobs key is told what it was renamed to (236.222244ms)
✔ a job can be created directly, without a push payload to imitate (217.411872ms)
✔ creating a job requires the same signature as a trigger (110.997298ms)
✔ creating a job insists on a real commit rather than inferring one (107.742606ms)
✔ a job can be read back, with the state of every task (226.534452ms)
✔ a public job is readable without any credential at all (198.564977ms)
✔ a private job needs the trigger secret, and is otherwise absent (254.985233ms)
✔ a job of another project cannot be read through this one (213.545573ms)
✔ a task can be read back on its own, and by its full name (287.242764ms)
✔ reading a task back carries its dependencies and matrix (233.439528ms)
✔ reading a task back never exposes its environment, services or script (214.979104ms)
✔ a task lists the artifacts it stored, with a usable download url (317.789019ms)
✔ reading a task back needs no worker token (219.652401ms)
✔ a private task is absent without a credential, and needs its project named (226.484353ms)
✔ a private task is readable by an administrator, by either path (370.054428ms)
✔ a task of another project cannot be read through this one (232.256972ms)
✔ an unknown task is 404 by either path (109.305734ms)
✔ the worker api rejects missing and invalid tokens (96.438144ms)
✔ independent tasks dispatch concurrently (228.74733ms)
✔ a task is only offered to a worker that satisfies its requires (202.477778ms)
✔ a worker is not offered work for an architecture it cannot build (214.86883ms)
✔ a claimed task carries everything the worker needs (259.649619ms)
✔ a task that requires a feature reports it to the worker (271.632181ms)
✔ the standard conductor variables are present in the task environment (220.216122ms)
✔ the source tarball is served from the mirror (217.665304ms)
✔ a worker cannot touch a task it does not hold (255.390359ms)
✔ log appends are resumable and deduplicated by offset (262.028733ms)
✔ an oversized log chunk is refused (248.575281ms)
✔ a finished log moves to storage and is still readable (221.176516ms)
✔ artifacts are stored, hashed, and stripped of traversal (234.200068ms)
✔ an artifact shorter than its content-length is rejected (247.579297ms)
✔ success releases dependents, matched on shared dimensions (251.233462ms)
✔ failure skips transitive dependents, not just direct ones (261.277336ms)
✔ a job settles as failed once every task is terminal (285.023316ms)
✔ a job settles as success when everything passes (258.858704ms)
✔ an allowed failure does not fail the job or block dependents (260.102441ms)
✔ a task with retries left is requeued instead of failing the job (255.504833ms)
✔ heartbeats keep a task alive and report cancellation (253.34828ms)
✔ the reaper fails a task whose worker stopped reporting (283.639983ms)
✔ a second push produces an independent, numbered job (380.417484ms)
﹣ jobs can be listed and filtered by project (0.807047ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.368036ms) # the JSON API was removed
✔ a disabled project refuses triggers (100.058871ms)
✔ a trigger for an unknown project is a 404 (97.677018ms)
✔ a commit that is not in the repository is refused (215.330651ms)
✔ a task is told to fetch an archive, and never the repository itself (223.059681ms)
✔ the source archive is the bare tree, with no wrapping directory (257.118791ms)
✔ the working directory is resolved from the pipeline, then the project (670.733231ms)
✔ an unusable working directory is refused rather than sanitised (990.831034ms)
✔ the trigger secret is not stored in the clear (143.461124ms)
✔ worker tokens are stored only as hashes (107.698625ms)
✔ defaults select sqlite, local storage and local auth (9.083207ms)
✔ configuring an s3 bucket switches the storage driver (1.852397ms)
✔ a partial s3 configuration is rejected rather than half applied (2.410705ms)
✔ configuring an oidc discovery url switches the auth mode (1.696749ms)
✔ an oidc discovery url without a client id is rejected (1.435808ms)
✔ a database url selects its dialect (2.870094ms)
✔ an unsupported database scheme is reported clearly (1.715286ms)
✔ a sqlite url collapses into database.path (4.428425ms)
✔ environment variables override the config file (55.676291ms)
✔ relative paths resolve against the config file directory (9.39519ms)
✔ a missing explicit config file is an error, a missing default is not (3.241969ms)
✔ a heartbeat timeout below the reap interval is rejected (9.54431ms)
✔ a non-integer port is rejected with the variable named (1.231518ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.673075ms)
✔ stateDirs omits the storage directory when s3 is in use (2.363239ms)
✔ the loaded config is frozen (1.079154ms)
✔ topological order places dependencies first (4.933525ms)
✔ topological order is deterministic (9.626513ms)
✔ a cycle is detected and named (2.01305ms)
✔ depth reflects the longest path, not insertion order (0.895414ms)
✔ independent tasks are runnable at the same time (1.079872ms)
✔ a task becomes runnable only once every dependency succeeds (1.134543ms)
✔ a running dependency does not release its dependents (0.863765ms)
✔ failure skips transitive dependents, not just direct ones (1.178004ms)
✔ a skipped dependency never releases a dependent (0.964444ms)
✔ allowed failures can satisfy a dependency when asked to (0.934576ms)
✔ transitive dependents of a leaf is empty (0.867146ms)
✔ graph helpers tolerate dependencies outside the set (0.98939ms)
✔ dialect detection covers every supported scheme (3.666883ms)
✔ statement splitter respects literals and comments (1.168ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.517751ms)
✔ migrations apply once and are idempotent (123.905691ms)
✔ an edited migration is refused rather than silently diverging (48.402386ms)
✔ a migration removed from disk is reported (37.442668ms)
✔ rows come back as ordinary objects (56.535643ms)
✔ a conditional update claims exactly once (55.35332ms)
✔ deleting a job cascades to its tasks (36.622539ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (37.483988ms)
﹣ migrations apply and retention sweeps on postgres (2.933981ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.389073ms) # SKIP
✔ every example pipeline compiles (93.089652ms)
✔ the distribution example fans in per architecture (26.112499ms)
✔ the node example wires services and features (17.092982ms)
✔ git jobs with safe.directory set (3.897732ms)
✔ it appends to configuration already in the environment (0.559088ms)
✔ a count that is not a number does not corrupt the sequence (0.630074ms)
✔ git accepts the environment we build (67.742431ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (91.81214ms)
﹣ the endpoints and key set come from the discovery document (2.20362ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (50.432452ms)
✔ discovery reports an unreachable provider and a bad status (1.736074ms)
﹣ a token carrying the admin role authenticates as an administrator (0.3844ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.218907ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.232016ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.248358ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.450755ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.624558ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.618297ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.273749ms) # the JSON API was removed
﹣ a forged signature is refused (0.414088ms) # the JSON API was removed
﹣ an expired token is refused (0.339008ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.336226ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.340681ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.124099ms) # docker is not available
﹣ a callback with a forged state is refused (0.131733ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.14335ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.122711ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.07473ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.504059ms)
✔ a star matches any job of characters (1.092495ms)
✔ the rest of a pattern is literal, not a regular expression (0.71935ms)
✔ a restricted task is left out of jobs for other refs (47.144527ms)
✔ it is left out rather than recorded as skipped (6.019309ms)
✔ tasks depending on an excluded task are excluded too (7.628622ms)
✔ depth and ordering describe the job that will happen (3.366926ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (6.757937ms)
✔ a restricted task cannot match a job that has no ref (7.689918ms)
✔ a malformed rule is reported rather than ignored (18.206373ms)
✔ the rule is not inherited from defaults (2.795683ms)
✔ a page number is read from the query, and nonsense reads as the first (3.309794ms)
✔ an absurd page number cannot produce an unusable offset (0.567541ms)
✔ a window describes the slice it holds (0.647144ms)
✔ an empty table is one page, and counts from zero (0.379499ms)
✔ windowOfAll slices a list that is already in memory (0.719888ms)
✔ a page link keeps the other query parameters (0.754685ms)
✔ a pager is not rendered when everything fits on one page (0.873063ms)
✔ a pager offers only the steps that exist (1.330308ms)
✔ paginate counts under the same conditions as it selects (451.164586ms)
✔ successive pages do not repeat or skip a row (175.33815ms)
✔ the job list is capped at a page and offers the next one (247.796123ms)
✔ paging past the end is an empty table rather than an error (177.33365ms)
✔ a page link keeps the project filter, and so does the live fragment (192.770518ms)
✔ the polling fragment asks for the page being viewed, not the first (267.32094ms)
✔ the count behind the pager respects who is asking (373.081014ms)
✔ the users and workers tables keep their swap target on the wrapper (304.845476ms)
✔ a minimal pipeline compiles (43.118144ms)
✔ version is required and pinned (8.799673ms)
✔ empty and malformed documents are rejected clearly (5.912037ms)
✔ image and script are required (1.784206ms)
✔ image may come from defaults (4.061524ms)
✔ unknown keys are rejected, with a suggestion when close (7.266844ms)
✔ all problems are reported at once (4.393742ms)
✔ durations accept seconds, units and composites (6.085643ms)
✔ durations accept day and week units (3.563674ms)
✔ a malformed duration is rejected (2.74598ms)
✔ arch expands into one task per architecture (3.496452ms)
✔ a matrix expands to the cartesian product (2.592796ms)
✔ needs match on shared dimensions rather than fanning out (8.89525ms)
✔ a task without the shared dimension depends on every instance (2.288086ms)
✔ match all opts out of dimension matching (2.559822ms)
✔ needs may name one concrete instance (2.915591ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.243726ms)
✔ needs on an unknown task lists what is defined (0.942266ms)
✔ self dependency is rejected (3.377769ms)
✔ a dependency cycle names the cycle (2.668423ms)
✔ interpolation substitutes arch and matrix values (3.192856ms)
✔ interpolating an undefined dimension is an error (2.010482ms)
✔ referring to arch without declaring one is an error (2.381139ms)
✔ matrix values must be safe for use in a task name (0.943219ms)
✔ arch may not also be a matrix dimension (0.915563ms)
✔ services get a derived alias and reject duplicates (6.749746ms)
✔ artifacts accept a bare list and reject absolute paths (1.85782ms)
✔ artifact when is constrained (0.887065ms)
✔ defaults are inherited and overridden per task (1.289636ms)
✔ env values must be scalars with valid names (1.053555ms)
✔ parsePipeline normalizes without expanding (1.040066ms)
✔ a realistic distribution pipeline produces the expected graph (4.228885ms)
✔ compiles markers to the placeholder each dialect expects (15.148986ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.576048ms)
✔ ignores markers inside string literals and comments (0.7555ms)
✔ a json literal in default text survives untouched (0.505595ms)
✔ doubling a brace escapes it (0.563254ms)
✔ block comments are skipped, and nest only for postgres (0.959624ms)
✔ postgres dollar quoted bodies are skipped (0.653075ms)
✔ mysql backtick identifiers and hash comments are skipped (1.170261ms)
✔ a malformed marker is rejected with a useful message (2.652682ms)
✔ binds by name, resolving dotted paths (2.20775ms)
✔ an exact key beats path traversal (1.586307ms)
✔ reports every missing key at once (0.807969ms)
✔ rejects an array of parameters, which would silently bind by position (2.524292ms)
✔ normalizes booleans, dates and null (0.481037ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.540132ms)
✔ an artifact past its own deadline is deleted (385.276213ms)
✔ an explicit deadline overrides the policy in both directions (244.966192ms)
✔ an explicit deadline also beats the last good job (108.442456ms)
✔ the last few jobs keep their artifacts however old they are (113.271715ms)
✔ recent artifacts are kept however many jobs have followed (119.18715ms)
✔ an artifact outside both rules is deleted (99.699657ms)
✔ the most recent successful job is kept whatever the policy says (100.029393ms)
✔ only the latest success is protected, not every success (123.750092ms)
✔ a project may keep artifacts forever despite a server default (90.6522ms)
✔ a project setting overrides the server default (92.43472ms)
✔ an unfinished job is never swept (93.26341ms)
✔ logs older than the limit are removed but the task remains (78.423096ms)
✔ a swept log is distinguishable from one that never existed (99.215066ms)
✔ a log is swept only once (101.376247ms)
✔ zero keeps logs forever (109.856408ms)
✔ a storage failure leaves the row for the next pass (88.393831ms)
✔ a sweep deletes no more than its batch (117.541637ms)
✔ one project policy does not reach into another (96.694529ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (274.146576ms)
﹣ the api reports and accepts project retention (0.431595ms) # the JSON API was removed
✔ seals and opens a value (7.799078ms)
✔ sealing twice produces different ciphertext (1.395143ms)
✔ without a key, values are stored as marked plaintext (0.754853ms)
✔ a keyed box can still read values written before a key existed (0.545085ms)
✔ an unkeyed box refuses encrypted values with an actionable message (6.231605ms)
✔ the wrong key fails to open (1.185302ms)
✔ tampering with the ciphertext is detected (1.034094ms)
✔ associated data binds a secret to its location (2.266336ms)
✔ a key of the wrong size is refused at construction (2.409642ms)
✔ task ids are opaque, and say nothing about their job (13.552054ms)
✔ time ordered ids sort by creation time (0.592102ms)
✔ random ids use the expected alphabet (0.440418ms)
✔ slugify produces readable project ids and falls back when empty (0.728365ms)
✔ token hashing and constant time comparison (2.035682ms)
✔ the pipeline this project jobs on itself compiles (50.40513ms)
✔ its tasks declare the features they actually need (9.979656ms)
✔ publishing is restricted to main and release tags (55.935121ms)
✔ get-vanilla matches the reference signature (6.777368ms)
✔ get-vanilla-query-order-key-case matches the reference signature (2.04969ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.53871ms)
✔ amzDate produces both required formats (0.705268ms)
✔ s3 requests carry the content hash header (1.674807ms)
✔ presigned urls carry the signature in the query string (6.137697ms)
✔ an already encoded path is not encoded a second time (1.803252ms)
✔ key validation rejects traversal and absolute paths (4.721685ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.71225ms)
✔ key layout is stable (0.631214ms)
✔ local backend round trips a buffer and reports its digest (32.859441ms)
✔ local backend serves ranges (5.752517ms)
✔ local backend accepts a stream (13.737228ms)
✔ local backend reports a missing object and deletes idempotently (10.996269ms)
✔ local backend has no presigned urls (3.124321ms)
✔ a partial write leaves no object behind (6.024642ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.285203ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.754197ms)
✔ inParts handles a chunk far larger than the part size (1.086185ms)
✔ inParts yields nothing for an empty stream (0.837825ms)
﹣ s3 backend round trips awkward keys against a real server (0.160493ms) # docker is not available
﹣ s3 serves byte ranges (0.151014ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.138663ms) # docker is not available
﹣ a presigned url is usable without credentials (0.674944ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.143206ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.125801ms) # docker is not available
﹣ a stream of unknown length is accepted (0.144949ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.12ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.12095ms) # docker is not available
﹣ a multipart object still serves ranges (0.119404ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.118629ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.126934ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.119706ms) # docker is not available
✔ every javascript file parses (980.469633ms)
✔ the shell scripts parse (4.100187ms)
✔ interpolated values are escaped by default (2.960681ms)
✔ quotes and ampersands are escaped inside attributes (0.470694ms)
✔ nested templates and arrays are kept, raw is passed through (0.511536ms)
✔ null, undefined and false render as nothing (1.230086ms)
✔ attrs omits absent values and renders bare booleans (0.571268ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (574.037234ms)
✔ an anonymous visitor cannot see a private job (322.533258ms)
✔ management pages redirect an anonymous visitor to sign in (206.397715ms)
✔ signing in through the form sets a session and reveals the nav (443.321503ms)
✔ a user creates a project through the form and is shown the secret once (299.427903ms)
✔ a project page shows variables and never their values (291.93086ms)
✔ setting and removing a variable returns the updated table (291.61282ms)
✔ a user cannot open or delete a project they do not own (572.829399ms)
✔ registering a worker shows the token once and lists it (391.731402ms)
✔ an ordinary user cannot create shared capacity from the form (571.021815ms)
✔ the users page is administrator only and warns about what deletion destroys (561.457185ms)
✔ a running job polls, and a finished one stops (413.524216ms)
✔ a task page streams the log and stops polling once it completes (345.52005ms)
✔ log output is escaped, so a task cannot inject markup into the page (367.608531ms)
✔ a mutation without the htmx header is refused (319.728742ms)
✔ the task graph is one table, so columns line up across stages (1.836618ms)
✔ the sign in form is centred rather than stranded at the left edge (192.997058ms)
✔ row actions stay ordinary table cells, so rows keep one height (374.707671ms)
✔ the stylesheet and htmx are served, and nothing else is (223.985658ms)
✔ the project page shows retention, with server defaults as placeholders (370.374556ms)
✔ saving retention through the form stores it, and empty means inherit (345.878236ms)
✔ a negative retention value is refused by the form (363.760018ms)
✔ the project page offers a working directory, defaulting to the server one (367.425758ms)
✔ saving a working directory stores it, and empty clears it (314.270675ms)
✔ an unusable working directory is refused by the form (363.910558ms)
✔ worker config loads from json and reports features (26.582971ms)
✔ worker config reads the token from a file (4.002265ms)
✔ environment overrides the worker config file (3.679411ms)
✔ worker config without a token is rejected (6.235098ms)
✔ a malformed feature is reported with its path (4.136ms)
✔ shell quoting survives quotes and metacharacters (0.735526ms)
✔ a generated script echoes each command and stops on failure (1.10172ms)
✔ container names are valid for docker and stay unique (1.973228ms)
✔ job arguments carry mounts, env, network and privilege (1.345172ms)
✔ a task container is created without sharing anything with the worker (1.127365ms)
✔ a feature still contributes its bind mounts (0.439148ms)
✔ features resolve into mounts, env and privilege (1.796091ms)
✔ an unknown required feature is reported rather than ignored (0.334263ms)
✔ an artifact pattern reduces to the part that can be copied out (0.671922ms)
✔ overlapping artifact paths are copied out once (0.789785ms)
✔ artifact collection globs, and refuses to leave the workspace (42.771406ms)
✔ artifact when controls collection (0.469608ms)
✔ an idle worker keeps running instead of exiting (4016.025966ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1520.870124ms)
✔ log output is batched and offsets advance (3.501281ms)
✔ a conflicting offset resynchronises instead of duplicating (1.045473ms)
✔ secrets are masked before anything leaves the host (1.684519ms)
✔ a secret split across two writes is still masked (0.925349ms)
✔ a failing conductor does not break the task (1.418949ms)
ℹ tests 348
ℹ suites 0
ℹ pass 312
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15107.710084
[conductor] done