conductor

sign in

integration

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

log

[conductor] task integration on conductor-worker-x86-64
[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: 23.3 MiB in 30 packages
$ npm install --no-audit --no-fund

added 78 packages in 5s
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 (201.556921ms)
✔ no file uses CRLF line endings or trailing whitespace (111.566169ms)
✔ a password round trips and a wrong one is refused (32.484851ms)
✔ the same password hashes differently each time (33.210714ms)
✔ parameters are read back from the stored hash (42.530845ms)
✔ a malformed stored hash is refused rather than throwing (0.829855ms)
✔ password length is bounded (1.300331ms)
✔ a session token round trips its claims (2.834862ms)
✔ a token signed with another secret is refused (0.901464ms)
✔ a tampered payload is refused (0.790223ms)
✔ an expired token is refused (2.198475ms)
✔ a malformed token is refused rather than throwing (0.827002ms)
✔ cookies are parsed and issued (12.035277ms)
✔ the oidc login state round trips with its return path (1.875378ms)
✔ a missing return path means the root (0.582538ms)
✔ the oidc login state is refused when forged, stale or off-site (0.85269ms)
✔ oidc roles are collected from the usual claim shapes (0.857714ms)
✔ mask replaces secrets, longest first (0.587351ms)
✔ mask ignores very short values and leaves clean output alone (0.311307ms)
✔ health reports the selected drivers (404.213094ms)
✔ a signed trigger creates a job and expands the pipeline (221.930953ms)
✔ an unsigned or wrongly signed trigger is refused (101.749044ms)
✔ github and gitlab push payloads are understood (319.666637ms)
✔ a branch deletion is ignored rather than failing (146.985754ms)
✔ a broken pipeline is reported as a client error with detail (213.998346ms)
✔ a missing pipeline file is reported clearly (247.00217ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (210.53527ms)
✔ a project pointed at a specific file gets no fallback (260.992584ms)
✔ a repository carrying both spellings is refused rather than guessed at (284.625848ms)
✔ a pipeline still using the jobs key is told what it was renamed to (270.609959ms)
✔ a job can be created directly, without a push payload to imitate (237.171738ms)
✔ creating a job requires the same signature as a trigger (135.948231ms)
✔ creating a job insists on a real commit rather than inferring one (93.349696ms)
✔ a job can be read back, with the state of every task (205.785165ms)
✔ a public job is readable without any credential at all (242.921324ms)
✔ a private job needs the trigger secret, and is otherwise absent (230.358908ms)
✔ a job of another project cannot be read through this one (234.930332ms)
✔ a task can be read back on its own, and by its full name (239.66142ms)
✔ reading a task back carries its dependencies and matrix (213.987326ms)
✔ reading a task back never exposes its environment, services or script (219.097949ms)
✔ a task lists the artifacts it stored, with a usable download url (313.518618ms)
✔ reading a task back needs no worker token (212.017723ms)
✔ a private task is absent without a credential, and needs its project named (214.212765ms)
✔ a private task is readable by an administrator, by either path (444.64089ms)
✔ a task of another project cannot be read through this one (227.028779ms)
✔ an unknown task is 404 by either path (130.104974ms)
✔ the worker api rejects missing and invalid tokens (87.019705ms)
✔ independent tasks dispatch concurrently (227.008618ms)
✔ a task is only offered to a worker that satisfies its requires (280.811864ms)
✔ a worker is not offered work for an architecture it cannot build (249.027356ms)
✔ a claimed task carries everything the worker needs (228.967948ms)
✔ a task that requires a feature reports it to the worker (226.419832ms)
✔ the standard conductor variables are present in the task environment (198.570049ms)
✔ the source tarball is served from the mirror (210.02984ms)
✔ a worker cannot touch a task it does not hold (244.366526ms)
✔ log appends are resumable and deduplicated by offset (211.031204ms)
✔ an oversized log chunk is refused (200.317193ms)
✔ a finished log moves to storage and is still readable (240.992194ms)
✔ artifacts are stored, hashed, and stripped of traversal (252.61729ms)
✔ an artifact shorter than its content-length is rejected (254.51787ms)
✔ success releases dependents, matched on shared dimensions (234.225453ms)
✔ failure skips transitive dependents, not just direct ones (244.556917ms)
✔ a job settles as failed once every task is terminal (279.720333ms)
✔ a job settles as success when everything passes (233.58367ms)
✔ an allowed failure does not fail the job or block dependents (253.998929ms)
✔ a task with retries left is requeued instead of failing the job (224.463588ms)
✔ heartbeats keep a task alive and report cancellation (256.991113ms)
✔ the reaper fails a task whose worker stopped reporting (255.132852ms)
✔ a second push produces an independent, numbered job (385.905899ms)
﹣ jobs can be listed and filtered by project (0.757664ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.238947ms) # the JSON API was removed
✔ a disabled project refuses triggers (133.702784ms)
✔ a trigger for an unknown project is a 404 (133.567917ms)
✔ a commit that is not in the repository is refused (239.874587ms)
✔ a task is told to fetch an archive, and never the repository itself (243.208584ms)
✔ the source archive is the bare tree, with no wrapping directory (246.716992ms)
✔ the working directory is resolved from the pipeline, then the project (726.637603ms)
✔ an unusable working directory is refused rather than sanitised (958.568426ms)
✔ the trigger secret is not stored in the clear (153.914673ms)
✔ worker tokens are stored only as hashes (125.531749ms)
✔ defaults select sqlite, local storage and local auth (8.047912ms)
✔ configuring an s3 bucket switches the storage driver (1.614813ms)
✔ a partial s3 configuration is rejected rather than half applied (4.199623ms)
✔ configuring an oidc discovery url switches the auth mode (1.477734ms)
✔ an oidc discovery url without a client id is rejected (1.246965ms)
✔ a database url selects its dialect (2.528552ms)
✔ an unsupported database scheme is reported clearly (1.192754ms)
✔ a sqlite url collapses into database.path (3.941206ms)
✔ environment variables override the config file (54.417049ms)
✔ relative paths resolve against the config file directory (7.07985ms)
✔ a missing explicit config file is an error, a missing default is not (2.652554ms)
✔ a heartbeat timeout below the reap interval is rejected (6.236773ms)
✔ a non-integer port is rejected with the variable named (1.271784ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.796566ms)
✔ stateDirs omits the storage directory when s3 is in use (2.493183ms)
✔ the loaded config is frozen (1.19936ms)
✔ topological order places dependencies first (3.467676ms)
✔ topological order is deterministic (3.958859ms)
✔ a cycle is detected and named (1.538043ms)
✔ depth reflects the longest path, not insertion order (0.81342ms)
✔ independent tasks are runnable at the same time (0.769319ms)
✔ a task becomes runnable only once every dependency succeeds (0.585563ms)
✔ a running dependency does not release its dependents (0.461073ms)
✔ failure skips transitive dependents, not just direct ones (0.694443ms)
✔ a skipped dependency never releases a dependent (1.236292ms)
✔ allowed failures can satisfy a dependency when asked to (0.888902ms)
✔ transitive dependents of a leaf is empty (0.580123ms)
✔ graph helpers tolerate dependencies outside the set (0.551582ms)
✔ dialect detection covers every supported scheme (7.367203ms)
✔ statement splitter respects literals and comments (4.340553ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.693514ms)
✔ migrations apply once and are idempotent (122.091761ms)
✔ an edited migration is refused rather than silently diverging (42.33395ms)
✔ a migration removed from disk is reported (47.230486ms)
✔ rows come back as ordinary objects (53.26998ms)
✔ a conditional update claims exactly once (33.964724ms)
✔ deleting a job cascades to its tasks (44.115821ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (43.550559ms)
﹣ migrations apply and retention sweeps on postgres (2.488496ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.334703ms) # SKIP
✔ every example pipeline compiles (93.001373ms)
✔ the distribution example fans in per architecture (24.996039ms)
✔ the node example wires services and features (23.876192ms)
✔ git jobs with safe.directory set (3.131028ms)
✔ it appends to configuration already in the environment (0.53814ms)
✔ a count that is not a number does not corrupt the sequence (0.73111ms)
✔ git accepts the environment we build (51.232766ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (94.461792ms)
﹣ the endpoints and key set come from the discovery document (1.985331ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (57.1644ms)
✔ discovery reports an unreachable provider and a bad status (2.110381ms)
﹣ a token carrying the admin role authenticates as an administrator (0.429391ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.38704ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.313719ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (2.34708ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (1.492646ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.56927ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.54926ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.321526ms) # the JSON API was removed
﹣ a forged signature is refused (3.406568ms) # the JSON API was removed
﹣ an expired token is refused (0.389839ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.393346ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.225478ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.150078ms) # docker is not available
﹣ a callback with a forged state is refused (0.14095ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.134014ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.136925ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.148385ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.297529ms)
✔ a star matches any job of characters (1.063598ms)
✔ the rest of a pattern is literal, not a regular expression (0.529807ms)
✔ a restricted task is left out of jobs for other refs (40.706759ms)
✔ it is left out rather than recorded as skipped (5.507692ms)
✔ tasks depending on an excluded task are excluded too (7.660288ms)
✔ depth and ordering describe the job that will happen (4.063939ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (3.936086ms)
✔ a restricted task cannot match a job that has no ref (4.339716ms)
✔ a malformed rule is reported rather than ignored (11.952557ms)
✔ the rule is not inherited from defaults (2.805421ms)
✔ a minimal pipeline compiles (35.90193ms)
✔ version is required and pinned (8.297734ms)
✔ empty and malformed documents are rejected clearly (9.164473ms)
✔ image and script are required (2.214698ms)
✔ image may come from defaults (3.457067ms)
✔ unknown keys are rejected, with a suggestion when close (6.842537ms)
✔ all problems are reported at once (2.878375ms)
✔ durations accept seconds, units and composites (7.621807ms)
✔ durations accept day and week units (3.873502ms)
✔ a malformed duration is rejected (2.81735ms)
✔ arch expands into one task per architecture (4.264297ms)
✔ a matrix expands to the cartesian product (3.952234ms)
✔ needs match on shared dimensions rather than fanning out (9.957556ms)
✔ a task without the shared dimension depends on every instance (6.449845ms)
✔ match all opts out of dimension matching (12.364537ms)
✔ needs may name one concrete instance (5.059528ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.065951ms)
✔ needs on an unknown task lists what is defined (1.30215ms)
✔ self dependency is rejected (3.429773ms)
✔ a dependency cycle names the cycle (4.495085ms)
✔ interpolation substitutes arch and matrix values (2.474469ms)
✔ interpolating an undefined dimension is an error (2.944061ms)
✔ referring to arch without declaring one is an error (2.456407ms)
✔ matrix values must be safe for use in a task name (1.471745ms)
✔ arch may not also be a matrix dimension (1.196538ms)
✔ services get a derived alias and reject duplicates (4.817993ms)
✔ artifacts accept a bare list and reject absolute paths (2.900128ms)
✔ artifact when is constrained (2.611434ms)
✔ defaults are inherited and overridden per task (1.446289ms)
✔ env values must be scalars with valid names (1.609895ms)
✔ parsePipeline normalizes without expanding (0.767113ms)
✔ a realistic distribution pipeline produces the expected graph (2.500126ms)
✔ compiles markers to the placeholder each dialect expects (11.135094ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.547055ms)
✔ ignores markers inside string literals and comments (0.780248ms)
✔ a json literal in default text survives untouched (0.514643ms)
✔ doubling a brace escapes it (0.837654ms)
✔ block comments are skipped, and nest only for postgres (0.549736ms)
✔ postgres dollar quoted bodies are skipped (0.62826ms)
✔ mysql backtick identifiers and hash comments are skipped (1.595113ms)
✔ a malformed marker is rejected with a useful message (2.849152ms)
✔ binds by name, resolving dotted paths (3.122127ms)
✔ an exact key beats path traversal (0.869736ms)
✔ reports every missing key at once (0.792189ms)
✔ rejects an array of parameters, which would silently bind by position (2.483751ms)
✔ normalizes booleans, dates and null (0.504866ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.656046ms)
✔ an artifact past its own deadline is deleted (351.964901ms)
✔ an explicit deadline overrides the policy in both directions (208.750679ms)
✔ an explicit deadline also beats the last good job (104.922072ms)
✔ the last few jobs keep their artifacts however old they are (112.635507ms)
✔ recent artifacts are kept however many jobs have followed (107.402671ms)
✔ an artifact outside both rules is deleted (94.523662ms)
✔ the most recent successful job is kept whatever the policy says (118.403509ms)
✔ only the latest success is protected, not every success (111.43641ms)
✔ a project may keep artifacts forever despite a server default (88.606509ms)
✔ a project setting overrides the server default (106.465566ms)
✔ an unfinished job is never swept (105.505963ms)
✔ logs older than the limit are removed but the task remains (122.213134ms)
✔ a swept log is distinguishable from one that never existed (124.75719ms)
✔ a log is swept only once (112.229124ms)
✔ zero keeps logs forever (94.056775ms)
✔ a storage failure leaves the row for the next pass (87.07498ms)
✔ a sweep deletes no more than its batch (130.617105ms)
✔ one project policy does not reach into another (111.312378ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (284.558708ms)
﹣ the api reports and accepts project retention (0.29917ms) # the JSON API was removed
✔ seals and opens a value (8.05002ms)
✔ sealing twice produces different ciphertext (1.368554ms)
✔ without a key, values are stored as marked plaintext (0.55631ms)
✔ a keyed box can still read values written before a key existed (0.507551ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.280562ms)
✔ the wrong key fails to open (1.158993ms)
✔ tampering with the ciphertext is detected (0.94907ms)
✔ associated data binds a secret to its location (3.395113ms)
✔ a key of the wrong size is refused at construction (1.241931ms)
✔ task ids are opaque, and say nothing about their job (13.937856ms)
✔ time ordered ids sort by creation time (0.536011ms)
✔ random ids use the expected alphabet (1.388876ms)
✔ slugify produces readable project ids and falls back when empty (0.707726ms)
✔ token hashing and constant time comparison (1.913052ms)
✔ the pipeline this project jobs on itself compiles (56.075357ms)
✔ its tasks declare the features they actually need (10.364552ms)
✔ publishing is restricted to main and release tags (69.972623ms)
✔ get-vanilla matches the reference signature (7.737802ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.90189ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.518959ms)
✔ amzDate produces both required formats (0.495727ms)
✔ s3 requests carry the content hash header (2.065886ms)
✔ presigned urls carry the signature in the query string (6.339296ms)
✔ an already encoded path is not encoded a second time (1.92474ms)
✔ key validation rejects traversal and absolute paths (5.625994ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.822443ms)
✔ key layout is stable (0.962196ms)
✔ local backend round trips a buffer and reports its digest (32.229348ms)
✔ local backend serves ranges (4.51059ms)
✔ local backend accepts a stream (10.029748ms)
✔ local backend reports a missing object and deletes idempotently (10.746832ms)
✔ local backend has no presigned urls (3.084501ms)
✔ a partial write leaves no object behind (4.618517ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.954625ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.556049ms)
✔ inParts handles a chunk far larger than the part size (1.332542ms)
✔ inParts yields nothing for an empty stream (2.319948ms)
﹣ s3 backend round trips awkward keys against a real server (0.20655ms) # docker is not available
﹣ s3 serves byte ranges (0.160278ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.125209ms) # docker is not available
﹣ a presigned url is usable without credentials (0.219516ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.118065ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.119367ms) # docker is not available
﹣ a stream of unknown length is accepted (0.111752ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.103768ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.140203ms) # docker is not available
﹣ a multipart object still serves ranges (0.109222ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.105796ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.112562ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.103537ms) # docker is not available
✔ every javascript file parses (958.859691ms)
✔ the shell scripts parse (2.930751ms)
✔ interpolated values are escaped by default (3.943497ms)
✔ quotes and ampersands are escaped inside attributes (0.599038ms)
✔ nested templates and arrays are kept, raw is passed through (0.599864ms)
✔ null, undefined and false render as nothing (0.409843ms)
✔ attrs omits absent values and renders bare booleans (0.651335ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (500.202705ms)
✔ an anonymous visitor cannot see a private job (284.772619ms)
✔ management pages redirect an anonymous visitor to sign in (208.18856ms)
✔ signing in through the form sets a session and reveals the nav (419.599363ms)
✔ a user creates a project through the form and is shown the secret once (337.722931ms)
✔ a project page shows variables and never their values (271.561168ms)
✔ setting and removing a variable returns the updated table (378.438311ms)
✔ a user cannot open or delete a project they do not own (579.521651ms)
✔ registering a worker shows the token once and lists it (368.53648ms)
✔ an ordinary user cannot create shared capacity from the form (586.35183ms)
✔ the users page is administrator only and warns about what deletion destroys (478.743857ms)
✔ a running job polls, and a finished one stops (425.321064ms)
✔ a task page streams the log and stops polling once it completes (404.277604ms)
✔ log output is escaped, so a task cannot inject markup into the page (381.356318ms)
✔ a mutation without the htmx header is refused (367.005632ms)
✔ the sign in form is centred rather than stranded at the left edge (180.388224ms)
✔ row actions stay ordinary table cells, so rows keep one height (400.78964ms)
✔ the stylesheet and htmx are served, and nothing else is (231.470049ms)
✔ the project page shows retention, with server defaults as placeholders (361.008289ms)
✔ saving retention through the form stores it, and empty means inherit (304.510878ms)
✔ a negative retention value is refused by the form (336.413464ms)
✔ the project page offers a working directory, defaulting to the server one (332.100603ms)
✔ saving a working directory stores it, and empty clears it (279.38252ms)
✔ an unusable working directory is refused by the form (381.086699ms)
✔ worker config loads from json and reports features (41.24574ms)
✔ worker config reads the token from a file (4.995392ms)
✔ environment overrides the worker config file (7.702678ms)
✔ worker config without a token is rejected (5.974279ms)
✔ a malformed feature is reported with its path (4.250368ms)
✔ shell quoting survives quotes and metacharacters (0.638669ms)
✔ a generated script echoes each command and stops on failure (0.787918ms)
✔ container names are valid for docker and stay unique (2.189129ms)
✔ job arguments carry mounts, env, network and privilege (1.363191ms)
✔ a task container is created without sharing anything with the worker (1.451662ms)
✔ a feature still contributes its bind mounts (0.573226ms)
✔ features resolve into mounts, env and privilege (0.753478ms)
✔ an unknown required feature is reported rather than ignored (0.260883ms)
✔ an artifact pattern reduces to the part that can be copied out (0.546922ms)
✔ overlapping artifact paths are copied out once (0.759496ms)
✔ artifact collection globs, and refuses to leave the workspace (34.029773ms)
✔ artifact when controls collection (0.523783ms)
✔ an idle worker keeps running instead of exiting (4012.624607ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1519.016392ms)
✔ log output is batched and offsets advance (3.767335ms)
✔ a conflicting offset resynchronises instead of duplicating (0.983449ms)
✔ secrets are masked before anything leaves the host (1.575469ms)
✔ a secret split across two writes is still masked (0.663865ms)
✔ a failing conductor does not break the task (1.107846ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15368.616027
[conductor] done