conductor

sign in

test

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

log

[conductor] task test on conductor-worker-x86-64
[conductor] commit 1d5ad8757706 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.2 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (210.096916ms)
✔ no file uses CRLF line endings or trailing whitespace (98.517219ms)
✔ a password round trips and a wrong one is refused (53.042093ms)
✔ the same password hashes differently each time (49.053233ms)
✔ parameters are read back from the stored hash (78.55554ms)
✔ a malformed stored hash is refused rather than throwing (0.834353ms)
✔ password length is bounded (4.097451ms)
✔ a session token round trips its claims (3.934453ms)
✔ a token signed with another secret is refused (1.350269ms)
✔ a tampered payload is refused (0.802163ms)
✔ an expired token is refused (2.337739ms)
✔ a malformed token is refused rather than throwing (0.776415ms)
✔ cookies are parsed and issued (5.265029ms)
✔ the oidc login state round trips with its return path (1.744116ms)
✔ a missing return path means the root (0.563825ms)
✔ the oidc login state is refused when forged, stale or off-site (0.834017ms)
✔ oidc roles are collected from the usual claim shapes (0.933955ms)
✔ mask replaces secrets, longest first (0.779725ms)
✔ mask ignores very short values and leaves clean output alone (0.402599ms)
✔ health reports the selected drivers (373.626847ms)
✔ a signed trigger creates a job and expands the pipeline (218.657317ms)
✔ an unsigned or wrongly signed trigger is refused (101.87767ms)
✔ github and gitlab push payloads are understood (298.790804ms)
✔ a branch deletion is ignored rather than failing (85.125091ms)
✔ a broken pipeline is reported as a client error with detail (221.172945ms)
✔ a missing pipeline file is reported clearly (259.392675ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (217.988121ms)
✔ a project pointed at a specific file gets no fallback (226.119428ms)
✔ a repository carrying both spellings is refused rather than guessed at (271.789357ms)
✔ a pipeline still using the jobs key is told what it was renamed to (264.271725ms)
✔ a job can be created directly, without a push payload to imitate (243.252266ms)
✔ creating a job requires the same signature as a trigger (146.930031ms)
✔ creating a job insists on a real commit rather than inferring one (83.588842ms)
✔ a job can be read back, with the state of every task (206.7289ms)
✔ a public job is readable without any credential at all (235.896084ms)
✔ a private job needs the trigger secret, and is otherwise absent (249.905394ms)
✔ a job of another project cannot be read through this one (242.01295ms)
✔ a task can be read back on its own, and by its full name (224.037599ms)
✔ reading a task back carries its dependencies and matrix (212.997539ms)
✔ reading a task back never exposes its environment, services or script (208.476525ms)
✔ a task lists the artifacts it stored, with a usable download url (289.09436ms)
✔ reading a task back needs no worker token (244.745002ms)
✔ a private task is absent without a credential, and needs its project named (204.417483ms)
✔ a private task is readable by an administrator, by either path (450.532493ms)
✔ a task of another project cannot be read through this one (226.094204ms)
✔ an unknown task is 404 by either path (124.354179ms)
✔ the worker api rejects missing and invalid tokens (81.209225ms)
✔ independent tasks dispatch concurrently (228.947676ms)
✔ a task is only offered to a worker that satisfies its requires (238.04199ms)
✔ a worker is not offered work for an architecture it cannot build (241.655623ms)
✔ a claimed task carries everything the worker needs (251.647898ms)
✔ a task that requires a feature reports it to the worker (210.100936ms)
✔ the standard conductor variables are present in the task environment (247.677335ms)
✔ the source tarball is served from the mirror (214.727266ms)
✔ a worker cannot touch a task it does not hold (210.536965ms)
✔ log appends are resumable and deduplicated by offset (212.037592ms)
✔ an oversized log chunk is refused (219.11526ms)
✔ a finished log moves to storage and is still readable (268.248148ms)
✔ artifacts are stored, hashed, and stripped of traversal (251.404411ms)
✔ an artifact shorter than its content-length is rejected (247.040285ms)
✔ success releases dependents, matched on shared dimensions (241.641133ms)
✔ failure skips transitive dependents, not just direct ones (256.729588ms)
✔ a job settles as failed once every task is terminal (278.372925ms)
✔ a job settles as success when everything passes (249.651997ms)
✔ an allowed failure does not fail the job or block dependents (259.918149ms)
✔ a task with retries left is requeued instead of failing the job (230.849049ms)
✔ heartbeats keep a task alive and report cancellation (267.11943ms)
✔ the reaper fails a task whose worker stopped reporting (249.249141ms)
✔ a second push produces an independent, numbered job (419.808926ms)
﹣ jobs can be listed and filtered by project (0.789794ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.284247ms) # the JSON API was removed
✔ a disabled project refuses triggers (132.709143ms)
✔ a trigger for an unknown project is a 404 (132.581142ms)
✔ a commit that is not in the repository is refused (244.109025ms)
✔ a task is told to fetch an archive, and never the repository itself (252.025269ms)
✔ the source archive is the bare tree, with no wrapping directory (239.653064ms)
✔ the working directory is resolved from the pipeline, then the project (745.715031ms)
✔ an unusable working directory is refused rather than sanitised (993.024078ms)
✔ the trigger secret is not stored in the clear (163.961084ms)
✔ worker tokens are stored only as hashes (110.703076ms)
✔ defaults select sqlite, local storage and local auth (7.499813ms)
✔ configuring an s3 bucket switches the storage driver (1.638654ms)
✔ a partial s3 configuration is rejected rather than half applied (2.034431ms)
✔ configuring an oidc discovery url switches the auth mode (1.252249ms)
✔ an oidc discovery url without a client id is rejected (1.18337ms)
✔ a database url selects its dialect (2.510568ms)
✔ an unsupported database scheme is reported clearly (1.287626ms)
✔ a sqlite url collapses into database.path (3.161787ms)
✔ environment variables override the config file (70.720619ms)
✔ relative paths resolve against the config file directory (9.557521ms)
✔ a missing explicit config file is an error, a missing default is not (4.215673ms)
✔ a heartbeat timeout below the reap interval is rejected (17.63185ms)
✔ a non-integer port is rejected with the variable named (1.248819ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (1.974059ms)
✔ stateDirs omits the storage directory when s3 is in use (2.193015ms)
✔ the loaded config is frozen (1.20468ms)
✔ topological order places dependencies first (5.037956ms)
✔ topological order is deterministic (5.106294ms)
✔ a cycle is detected and named (2.67932ms)
✔ depth reflects the longest path, not insertion order (0.905701ms)
✔ independent tasks are runnable at the same time (1.228168ms)
✔ a task becomes runnable only once every dependency succeeds (0.981342ms)
✔ a running dependency does not release its dependents (0.659858ms)
✔ failure skips transitive dependents, not just direct ones (1.133051ms)
✔ a skipped dependency never releases a dependent (2.418425ms)
✔ allowed failures can satisfy a dependency when asked to (1.052456ms)
✔ transitive dependents of a leaf is empty (0.560391ms)
✔ graph helpers tolerate dependencies outside the set (0.68954ms)
✔ dialect detection covers every supported scheme (3.638568ms)
✔ statement splitter respects literals and comments (1.180623ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.516977ms)
✔ migrations apply once and are idempotent (105.125312ms)
✔ an edited migration is refused rather than silently diverging (60.293065ms)
✔ a migration removed from disk is reported (35.487165ms)
✔ rows come back as ordinary objects (51.357129ms)
✔ a conditional update claims exactly once (36.495859ms)
✔ deleting a job cascades to its tasks (33.728216ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (38.949701ms)
﹣ migrations apply and retention sweeps on postgres (3.258984ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.374152ms) # SKIP
✔ every example pipeline compiles (97.578201ms)
✔ the distribution example fans in per architecture (25.669312ms)
✔ the node example wires services and features (25.274047ms)
✔ git jobs with safe.directory set (3.714473ms)
✔ it appends to configuration already in the environment (0.570846ms)
✔ a count that is not a number does not corrupt the sequence (0.615193ms)
✔ git accepts the environment we build (98.537689ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (94.17867ms)
﹣ the endpoints and key set come from the discovery document (2.47906ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (58.814767ms)
✔ discovery reports an unreachable provider and a bad status (1.758559ms)
﹣ a token carrying the admin role authenticates as an administrator (0.35565ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.327733ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.291879ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.376611ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.497614ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.470834ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.410994ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.30455ms) # the JSON API was removed
﹣ a forged signature is refused (0.412475ms) # the JSON API was removed
﹣ an expired token is refused (2.186049ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.315308ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.189219ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.130559ms) # docker is not available
﹣ a callback with a forged state is refused (0.127931ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.128184ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.140142ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.128971ms) # the JSON API was removed
✔ a pattern without a star matches exactly (5.079734ms)
✔ a star matches any job of characters (1.146332ms)
✔ the rest of a pattern is literal, not a regular expression (0.745621ms)
✔ a restricted task is left out of jobs for other refs (55.370969ms)
✔ it is left out rather than recorded as skipped (6.299952ms)
✔ tasks depending on an excluded task are excluded too (5.740439ms)
✔ depth and ordering describe the job that will happen (3.418786ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (6.665373ms)
✔ a restricted task cannot match a job that has no ref (8.197918ms)
✔ a malformed rule is reported rather than ignored (18.48141ms)
✔ the rule is not inherited from defaults (4.389232ms)
✔ a minimal pipeline compiles (41.351533ms)
✔ version is required and pinned (8.527846ms)
✔ empty and malformed documents are rejected clearly (6.46326ms)
✔ image and script are required (1.709294ms)
✔ image may come from defaults (3.501438ms)
✔ unknown keys are rejected, with a suggestion when close (22.581296ms)
✔ all problems are reported at once (1.830104ms)
✔ durations accept seconds, units and composites (3.957017ms)
✔ durations accept day and week units (2.257353ms)
✔ a malformed duration is rejected (1.935668ms)
✔ arch expands into one task per architecture (2.582004ms)
✔ a matrix expands to the cartesian product (2.903263ms)
✔ needs match on shared dimensions rather than fanning out (7.145697ms)
✔ a task without the shared dimension depends on every instance (2.213676ms)
✔ match all opts out of dimension matching (6.023654ms)
✔ needs may name one concrete instance (3.53044ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (3.046367ms)
✔ needs on an unknown task lists what is defined (1.928264ms)
✔ self dependency is rejected (1.57247ms)
✔ a dependency cycle names the cycle (3.330025ms)
✔ interpolation substitutes arch and matrix values (2.818177ms)
✔ interpolating an undefined dimension is an error (2.863518ms)
✔ referring to arch without declaring one is an error (1.946344ms)
✔ matrix values must be safe for use in a task name (1.172326ms)
✔ arch may not also be a matrix dimension (1.79668ms)
✔ services get a derived alias and reject duplicates (5.735401ms)
✔ artifacts accept a bare list and reject absolute paths (2.010114ms)
✔ artifact when is constrained (0.804324ms)
✔ defaults are inherited and overridden per task (1.276022ms)
✔ env values must be scalars with valid names (1.126821ms)
✔ parsePipeline normalizes without expanding (1.001522ms)
✔ a realistic distribution pipeline produces the expected graph (3.248737ms)
✔ compiles markers to the placeholder each dialect expects (9.332005ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.324806ms)
✔ ignores markers inside string literals and comments (0.575442ms)
✔ a json literal in default text survives untouched (0.327127ms)
✔ doubling a brace escapes it (0.351826ms)
✔ block comments are skipped, and nest only for postgres (0.331023ms)
✔ postgres dollar quoted bodies are skipped (0.337932ms)
✔ mysql backtick identifiers and hash comments are skipped (0.481538ms)
✔ a malformed marker is rejected with a useful message (1.316039ms)
✔ binds by name, resolving dotted paths (1.192922ms)
✔ an exact key beats path traversal (0.559116ms)
✔ reports every missing key at once (0.353547ms)
✔ rejects an array of parameters, which would silently bind by position (0.355249ms)
✔ normalizes booleans, dates and null (0.446145ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.528224ms)
✔ an artifact past its own deadline is deleted (351.348881ms)
✔ an explicit deadline overrides the policy in both directions (214.074584ms)
✔ an explicit deadline also beats the last good job (116.507069ms)
✔ the last few jobs keep their artifacts however old they are (111.257338ms)
✔ recent artifacts are kept however many jobs have followed (109.03539ms)
✔ an artifact outside both rules is deleted (90.958549ms)
✔ the most recent successful job is kept whatever the policy says (111.364193ms)
✔ only the latest success is protected, not every success (119.939509ms)
✔ a project may keep artifacts forever despite a server default (130.262441ms)
✔ a project setting overrides the server default (130.603823ms)
✔ an unfinished job is never swept (125.671363ms)
✔ logs older than the limit are removed but the task remains (105.212959ms)
✔ a swept log is distinguishable from one that never existed (101.713516ms)
✔ a log is swept only once (95.324546ms)
✔ zero keeps logs forever (90.299516ms)
✔ a storage failure leaves the row for the next pass (95.61578ms)
✔ a sweep deletes no more than its batch (108.598391ms)
✔ one project policy does not reach into another (113.827831ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (256.798213ms)
﹣ the api reports and accepts project retention (0.336213ms) # the JSON API was removed
✔ seals and opens a value (19.980914ms)
✔ sealing twice produces different ciphertext (1.516799ms)
✔ without a key, values are stored as marked plaintext (3.884601ms)
✔ a keyed box can still read values written before a key existed (0.530066ms)
✔ an unkeyed box refuses encrypted values with an actionable message (4.180607ms)
✔ the wrong key fails to open (0.977155ms)
✔ tampering with the ciphertext is detected (0.985316ms)
✔ associated data binds a secret to its location (1.529962ms)
✔ a key of the wrong size is refused at construction (0.882308ms)
✔ task ids are opaque, and say nothing about their job (7.643213ms)
✔ time ordered ids sort by creation time (0.625925ms)
✔ random ids use the expected alphabet (0.397014ms)
✔ slugify produces readable project ids and falls back when empty (1.130863ms)
✔ token hashing and constant time comparison (5.435217ms)
✔ the pipeline this project jobs on itself compiles (61.72622ms)
✔ its tasks declare the features they actually need (12.631385ms)
✔ publishing is restricted to main and release tags (46.37332ms)
✔ get-vanilla matches the reference signature (7.306775ms)
✔ get-vanilla-query-order-key-case matches the reference signature (2.382132ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.589275ms)
✔ amzDate produces both required formats (0.870699ms)
✔ s3 requests carry the content hash header (1.582135ms)
✔ presigned urls carry the signature in the query string (5.097571ms)
✔ an already encoded path is not encoded a second time (1.566714ms)
✔ key validation rejects traversal and absolute paths (4.808424ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.864027ms)
✔ key layout is stable (0.785472ms)
✔ local backend round trips a buffer and reports its digest (32.396994ms)
✔ local backend serves ranges (5.512379ms)
✔ local backend accepts a stream (12.657945ms)
✔ local backend reports a missing object and deletes idempotently (4.277238ms)
✔ local backend has no presigned urls (8.109635ms)
✔ a partial write leaves no object behind (4.899877ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.981792ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (5.6198ms)
✔ inParts handles a chunk far larger than the part size (1.0855ms)
✔ inParts yields nothing for an empty stream (0.972399ms)
﹣ s3 backend round trips awkward keys against a real server (0.141892ms) # docker is not available
﹣ s3 serves byte ranges (0.126252ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.120868ms) # docker is not available
﹣ a presigned url is usable without credentials (0.529767ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.129985ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.161373ms) # docker is not available
﹣ a stream of unknown length is accepted (0.113034ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.099032ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.107706ms) # docker is not available
﹣ a multipart object still serves ranges (0.118985ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.112177ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.112541ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.112165ms) # docker is not available
✔ every javascript file parses (986.525678ms)
✔ the shell scripts parse (3.160218ms)
✔ interpolated values are escaped by default (3.543251ms)
✔ quotes and ampersands are escaped inside attributes (0.585799ms)
✔ nested templates and arrays are kept, raw is passed through (0.600114ms)
✔ null, undefined and false render as nothing (0.407424ms)
✔ attrs omits absent values and renders bare booleans (0.627806ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (518.835239ms)
✔ an anonymous visitor cannot see a private job (288.734263ms)
✔ management pages redirect an anonymous visitor to sign in (238.586325ms)
✔ signing in through the form sets a session and reveals the nav (473.985484ms)
✔ a user creates a project through the form and is shown the secret once (313.428145ms)
✔ a project page shows variables and never their values (330.048167ms)
✔ setting and removing a variable returns the updated table (363.039708ms)
✔ a user cannot open or delete a project they do not own (600.442218ms)
✔ registering a worker shows the token once and lists it (377.595322ms)
✔ an ordinary user cannot create shared capacity from the form (512.373873ms)
✔ the users page is administrator only and warns about what deletion destroys (522.923822ms)
✔ a running job polls, and a finished one stops (409.283752ms)
✔ a task page streams the log and stops polling once it completes (388.419223ms)
✔ log output is escaped, so a task cannot inject markup into the page (377.63709ms)
✔ a mutation without the htmx header is refused (278.856314ms)
✔ the sign in form is centred rather than stranded at the left edge (233.055096ms)
✔ row actions stay ordinary table cells, so rows keep one height (308.580463ms)
✔ the stylesheet and htmx are served, and nothing else is (249.956549ms)
✔ the project page shows retention, with server defaults as placeholders (292.60427ms)
✔ saving retention through the form stores it, and empty means inherit (333.136931ms)
✔ a negative retention value is refused by the form (343.387218ms)
✔ the project page offers a working directory, defaulting to the server one (333.563529ms)
✔ saving a working directory stores it, and empty clears it (307.396933ms)
✔ an unusable working directory is refused by the form (353.694083ms)
✔ worker config loads from json and reports features (44.860292ms)
✔ worker config reads the token from a file (4.320722ms)
✔ environment overrides the worker config file (3.585133ms)
✔ worker config without a token is rejected (5.323499ms)
✔ a malformed feature is reported with its path (4.480685ms)
✔ shell quoting survives quotes and metacharacters (0.722711ms)
✔ a generated script echoes each command and stops on failure (1.140887ms)
✔ container names are valid for docker and stay unique (3.012175ms)
✔ job arguments carry mounts, env, network and privilege (1.492551ms)
✔ a task container is created without sharing anything with the worker (1.343595ms)
✔ a feature still contributes its bind mounts (1.443069ms)
✔ features resolve into mounts, env and privilege (0.88901ms)
✔ an unknown required feature is reported rather than ignored (0.363251ms)
✔ an artifact pattern reduces to the part that can be copied out (0.760763ms)
✔ overlapping artifact paths are copied out once (0.904598ms)
✔ artifact collection globs, and refuses to leave the workspace (27.980896ms)
✔ artifact when controls collection (0.59831ms)
✔ an idle worker keeps running instead of exiting (4012.143636ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1522.040627ms)
✔ log output is batched and offsets advance (1.742904ms)
✔ a conflicting offset resynchronises instead of duplicating (0.582591ms)
✔ secrets are masked before anything leaves the host (0.889248ms)
✔ a secret split across two writes is still masked (0.424554ms)
✔ a failing conductor does not break the task (0.616557ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15351.264117
[conductor] done