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 78dfb472ec4b 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 (261.497202ms)
✔ no file uses CRLF line endings or trailing whitespace (88.996204ms)
✔ a password round trips and a wrong one is refused (43.357162ms)
✔ the same password hashes differently each time (32.094829ms)
✔ parameters are read back from the stored hash (31.395003ms)
✔ a malformed stored hash is refused rather than throwing (0.661614ms)
✔ password length is bounded (0.827356ms)
✔ a session token round trips its claims (2.046137ms)
✔ a token signed with another secret is refused (0.71487ms)
✔ a tampered payload is refused (0.794993ms)
✔ an expired token is refused (0.99663ms)
✔ a malformed token is refused rather than throwing (4.299439ms)
✔ cookies are parsed and issued (2.933848ms)
✔ the oidc login state round trips with its return path (2.025975ms)
✔ a missing return path means the root (0.506681ms)
✔ the oidc login state is refused when forged, stale or off-site (0.621415ms)
✔ oidc roles are collected from the usual claim shapes (1.519459ms)
✔ mask replaces secrets, longest first (0.734831ms)
✔ mask ignores very short values and leaves clean output alone (0.347593ms)
✔ health reports the selected drivers (385.723287ms)
✔ a signed trigger creates a job and expands the pipeline (217.354758ms)
✔ an unsigned or wrongly signed trigger is refused (107.796189ms)
✔ github and gitlab push payloads are understood (331.942298ms)
✔ a branch deletion is ignored rather than failing (114.872563ms)
✔ a broken pipeline is reported as a client error with detail (214.894737ms)
✔ a missing pipeline file is reported clearly (263.292905ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (252.130358ms)
✔ a project pointed at a specific file gets no fallback (264.495471ms)
✔ a repository carrying both spellings is refused rather than guessed at (277.984968ms)
✔ a pipeline still using the jobs key is told what it was renamed to (265.251288ms)
✔ a job can be created directly, without a push payload to imitate (235.516365ms)
✔ creating a job requires the same signature as a trigger (113.650578ms)
✔ creating a job insists on a real commit rather than inferring one (88.437022ms)
✔ a job can be read back, with the state of every task (207.580796ms)
✔ a public job is readable without any credential at all (237.732745ms)
✔ a private job needs the trigger secret, and is otherwise absent (253.61206ms)
✔ a job of another project cannot be read through this one (230.186649ms)
✔ a task can be read back on its own, and by its full name (236.355739ms)
✔ reading a task back carries its dependencies and matrix (217.106385ms)
✔ reading a task back never exposes its environment, services or script (269.722312ms)
✔ a task lists the artifacts it stored, with a usable download url (323.231598ms)
✔ reading a task back needs no worker token (235.228196ms)
✔ a private task is absent without a credential, and needs its project named (223.900861ms)
✔ a private task is readable by an administrator, by either path (381.966782ms)
✔ a task of another project cannot be read through this one (225.572272ms)
✔ an unknown task is 404 by either path (104.656215ms)
✔ the worker api rejects missing and invalid tokens (96.260836ms)
✔ independent tasks dispatch concurrently (208.855397ms)
✔ a task is only offered to a worker that satisfies its requires (213.311046ms)
✔ a worker is not offered work for an architecture it cannot build (213.332399ms)
✔ a claimed task carries everything the worker needs (250.730192ms)
✔ a task that requires a feature reports it to the worker (248.191102ms)
✔ the standard conductor variables are present in the task environment (220.79544ms)
✔ the source tarball is served from the mirror (233.162211ms)
✔ a worker cannot touch a task it does not hold (237.848697ms)
✔ log appends are resumable and deduplicated by offset (245.796661ms)
✔ an oversized log chunk is refused (197.610111ms)
✔ a finished log moves to storage and is still readable (238.827452ms)
✔ artifacts are stored, hashed, and stripped of traversal (256.563126ms)
✔ an artifact shorter than its content-length is rejected (254.460331ms)
✔ success releases dependents, matched on shared dimensions (237.006908ms)
✔ failure skips transitive dependents, not just direct ones (259.572486ms)
✔ a job settles as failed once every task is terminal (273.909848ms)
✔ a job settles as success when everything passes (249.033388ms)
✔ an allowed failure does not fail the job or block dependents (246.721817ms)
✔ a task with retries left is requeued instead of failing the job (248.415996ms)
✔ heartbeats keep a task alive and report cancellation (256.331295ms)
✔ the reaper fails a task whose worker stopped reporting (271.760045ms)
✔ a second push produces an independent, numbered job (380.041942ms)
﹣ jobs can be listed and filtered by project (0.704344ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.261501ms) # the JSON API was removed
✔ a disabled project refuses triggers (131.352154ms)
✔ a trigger for an unknown project is a 404 (116.804327ms)
✔ a commit that is not in the repository is refused (233.887508ms)
✔ a task is told to fetch an archive, and never the repository itself (255.456591ms)
✔ the source archive is the bare tree, with no wrapping directory (255.719802ms)
✔ the working directory is resolved from the pipeline, then the project (710.637132ms)
✔ an unusable working directory is refused rather than sanitised (942.102907ms)
✔ the trigger secret is not stored in the clear (154.852228ms)
✔ worker tokens are stored only as hashes (126.074702ms)
✔ defaults select sqlite, local storage and local auth (9.157595ms)
✔ configuring an s3 bucket switches the storage driver (1.605581ms)
✔ a partial s3 configuration is rejected rather than half applied (2.363033ms)
✔ configuring an oidc discovery url switches the auth mode (1.659323ms)
✔ an oidc discovery url without a client id is rejected (1.40438ms)
✔ a database url selects its dialect (2.867195ms)
✔ an unsupported database scheme is reported clearly (1.77338ms)
✔ a sqlite url collapses into database.path (1.845758ms)
✔ environment variables override the config file (78.354667ms)
✔ relative paths resolve against the config file directory (9.054567ms)
✔ a missing explicit config file is an error, a missing default is not (3.539983ms)
✔ a heartbeat timeout below the reap interval is rejected (10.381264ms)
✔ a non-integer port is rejected with the variable named (1.179828ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.685506ms)
✔ stateDirs omits the storage directory when s3 is in use (6.224696ms)
✔ the loaded config is frozen (1.050963ms)
✔ topological order places dependencies first (5.417404ms)
✔ topological order is deterministic (6.024464ms)
✔ a cycle is detected and named (1.621762ms)
✔ depth reflects the longest path, not insertion order (0.711778ms)
✔ independent tasks are runnable at the same time (0.769561ms)
✔ a task becomes runnable only once every dependency succeeds (0.599415ms)
✔ a running dependency does not release its dependents (0.453955ms)
✔ failure skips transitive dependents, not just direct ones (0.745375ms)
✔ a skipped dependency never releases a dependent (1.677584ms)
✔ allowed failures can satisfy a dependency when asked to (0.802274ms)
✔ transitive dependents of a leaf is empty (0.479367ms)
✔ graph helpers tolerate dependencies outside the set (0.582333ms)
✔ dialect detection covers every supported scheme (4.276587ms)
✔ statement splitter respects literals and comments (1.39277ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.607523ms)
✔ migrations apply once and are idempotent (105.854754ms)
✔ an edited migration is refused rather than silently diverging (50.408893ms)
✔ a migration removed from disk is reported (35.901122ms)
✔ rows come back as ordinary objects (37.488883ms)
✔ a conditional update claims exactly once (35.947763ms)
✔ deleting a job cascades to its tasks (33.330734ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (49.030675ms)
﹣ migrations apply and retention sweeps on postgres (2.304108ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.271125ms) # SKIP
✔ every example pipeline compiles (96.371962ms)
✔ the distribution example fans in per architecture (22.268878ms)
✔ the node example wires services and features (9.689454ms)
✔ git jobs with safe.directory set (3.609373ms)
✔ it appends to configuration already in the environment (0.572961ms)
✔ a count that is not a number does not corrupt the sequence (0.61903ms)
✔ git accepts the environment we build (59.319649ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (78.848525ms)
﹣ the endpoints and key set come from the discovery document (2.728722ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (46.259982ms)
✔ discovery reports an unreachable provider and a bad status (1.99289ms)
﹣ a token carrying the admin role authenticates as an administrator (0.424249ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.35407ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.32904ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (1.891645ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.458362ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.475057ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.835092ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.274172ms) # the JSON API was removed
﹣ a forged signature is refused (0.582672ms) # the JSON API was removed
﹣ an expired token is refused (0.320418ms) # the JSON API was removed
﹣ a token from a different issuer is refused (2.364328ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.132334ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.097715ms) # docker is not available
﹣ a callback with a forged state is refused (0.073291ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.069389ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.068167ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.067619ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.720767ms)
✔ a star matches any job of characters (0.858278ms)
✔ the rest of a pattern is literal, not a regular expression (0.355801ms)
✔ a restricted task is left out of jobs for other refs (40.409826ms)
✔ it is left out rather than recorded as skipped (3.761605ms)
✔ tasks depending on an excluded task are excluded too (6.484886ms)
✔ depth and ordering describe the job that will happen (2.045226ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (2.862916ms)
✔ a restricted task cannot match a job that has no ref (3.572574ms)
✔ a malformed rule is reported rather than ignored (19.813095ms)
✔ the rule is not inherited from defaults (2.922526ms)
✔ a minimal pipeline compiles (39.083771ms)
✔ version is required and pinned (14.237024ms)
✔ empty and malformed documents are rejected clearly (11.017219ms)
✔ image and script are required (3.865525ms)
✔ image may come from defaults (4.55894ms)
✔ unknown keys are rejected, with a suggestion when close (12.801011ms)
✔ all problems are reported at once (7.019637ms)
✔ durations accept seconds, units and composites (12.912325ms)
✔ durations accept day and week units (17.422305ms)
✔ a malformed duration is rejected (8.054089ms)
✔ arch expands into one task per architecture (3.275445ms)
✔ a matrix expands to the cartesian product (2.684978ms)
✔ needs match on shared dimensions rather than fanning out (6.001223ms)
✔ a task without the shared dimension depends on every instance (2.332685ms)
✔ match all opts out of dimension matching (3.954085ms)
✔ needs may name one concrete instance (2.947356ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.575007ms)
✔ needs on an unknown task lists what is defined (1.219142ms)
✔ self dependency is rejected (1.20964ms)
✔ a dependency cycle names the cycle (2.961942ms)
✔ interpolation substitutes arch and matrix values (2.704158ms)
✔ interpolating an undefined dimension is an error (2.146505ms)
✔ referring to arch without declaring one is an error (2.168205ms)
✔ matrix values must be safe for use in a task name (1.263878ms)
✔ arch may not also be a matrix dimension (1.286229ms)
✔ services get a derived alias and reject duplicates (4.631726ms)
✔ artifacts accept a bare list and reject absolute paths (2.070061ms)
✔ artifact when is constrained (1.344369ms)
✔ defaults are inherited and overridden per task (2.173733ms)
✔ env values must be scalars with valid names (1.76152ms)
✔ parsePipeline normalizes without expanding (1.410674ms)
✔ a realistic distribution pipeline produces the expected graph (3.912467ms)
✔ compiles markers to the placeholder each dialect expects (10.72237ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.565658ms)
✔ ignores markers inside string literals and comments (0.829033ms)
✔ a json literal in default text survives untouched (0.512887ms)
✔ doubling a brace escapes it (0.882487ms)
✔ block comments are skipped, and nest only for postgres (0.779084ms)
✔ postgres dollar quoted bodies are skipped (0.607273ms)
✔ mysql backtick identifiers and hash comments are skipped (1.271228ms)
✔ a malformed marker is rejected with a useful message (3.102263ms)
✔ binds by name, resolving dotted paths (2.546777ms)
✔ an exact key beats path traversal (0.847846ms)
✔ reports every missing key at once (0.757503ms)
✔ rejects an array of parameters, which would silently bind by position (1.455497ms)
✔ normalizes booleans, dates and null (0.546563ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.625797ms)
✔ an artifact past its own deadline is deleted (335.206452ms)
✔ an explicit deadline overrides the policy in both directions (208.219485ms)
✔ an explicit deadline also beats the last good job (103.966686ms)
✔ the last few jobs keep their artifacts however old they are (127.529031ms)
✔ recent artifacts are kept however many jobs have followed (103.210074ms)
✔ an artifact outside both rules is deleted (93.140099ms)
✔ the most recent successful job is kept whatever the policy says (110.996953ms)
✔ only the latest success is protected, not every success (123.078394ms)
✔ a project may keep artifacts forever despite a server default (121.884138ms)
✔ a project setting overrides the server default (112.974195ms)
✔ an unfinished job is never swept (124.741941ms)
✔ logs older than the limit are removed but the task remains (127.928431ms)
✔ a swept log is distinguishable from one that never existed (93.365425ms)
✔ a log is swept only once (97.587161ms)
✔ zero keeps logs forever (87.478536ms)
✔ a storage failure leaves the row for the next pass (104.602603ms)
✔ a sweep deletes no more than its batch (138.261953ms)
✔ one project policy does not reach into another (89.1551ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (267.615078ms)
﹣ the api reports and accepts project retention (0.399309ms) # the JSON API was removed
✔ seals and opens a value (8.059408ms)
✔ sealing twice produces different ciphertext (1.167137ms)
✔ without a key, values are stored as marked plaintext (0.965909ms)
✔ a keyed box can still read values written before a key existed (0.55378ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.353457ms)
✔ the wrong key fails to open (1.172033ms)
✔ tampering with the ciphertext is detected (2.146265ms)
✔ associated data binds a secret to its location (2.323865ms)
✔ a key of the wrong size is refused at construction (0.838484ms)
✔ task ids are opaque, and say nothing about their job (11.093905ms)
✔ time ordered ids sort by creation time (0.548413ms)
✔ random ids use the expected alphabet (0.517023ms)
✔ slugify produces readable project ids and falls back when empty (0.800549ms)
✔ token hashing and constant time comparison (2.355516ms)
✔ the pipeline this project jobs on itself compiles (54.792826ms)
✔ its tasks declare the features they actually need (21.03315ms)
✔ publishing is restricted to main and release tags (58.416193ms)
✔ get-vanilla matches the reference signature (7.284819ms)
✔ get-vanilla-query-order-key-case matches the reference signature (2.278896ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.533185ms)
✔ amzDate produces both required formats (0.586004ms)
✔ s3 requests carry the content hash header (1.583916ms)
✔ presigned urls carry the signature in the query string (4.731963ms)
✔ an already encoded path is not encoded a second time (1.666973ms)
✔ key validation rejects traversal and absolute paths (3.325165ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.543486ms)
✔ key layout is stable (0.56103ms)
✔ local backend round trips a buffer and reports its digest (36.339995ms)
✔ local backend serves ranges (8.710038ms)
✔ local backend accepts a stream (10.865807ms)
✔ local backend reports a missing object and deletes idempotently (5.141622ms)
✔ local backend has no presigned urls (2.343789ms)
✔ a partial write leaves no object behind (9.870249ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.98618ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.625747ms)
✔ inParts handles a chunk far larger than the part size (1.141117ms)
✔ inParts yields nothing for an empty stream (1.057781ms)
﹣ s3 backend round trips awkward keys against a real server (0.158979ms) # docker is not available
﹣ s3 serves byte ranges (0.150205ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.133615ms) # docker is not available
﹣ a presigned url is usable without credentials (0.225824ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.166349ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.148531ms) # docker is not available
﹣ a stream of unknown length is accepted (0.126788ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.13595ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.125009ms) # docker is not available
﹣ a multipart object still serves ranges (0.12322ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.140848ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.129085ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.123013ms) # docker is not available
✔ every javascript file parses (931.055135ms)
✔ the shell scripts parse (3.544288ms)
✔ interpolated values are escaped by default (3.656116ms)
✔ quotes and ampersands are escaped inside attributes (0.584709ms)
✔ nested templates and arrays are kept, raw is passed through (0.544146ms)
✔ null, undefined and false render as nothing (0.368839ms)
✔ attrs omits absent values and renders bare booleans (0.628905ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (512.485011ms)
✔ an anonymous visitor cannot see a private job (305.809522ms)
✔ management pages redirect an anonymous visitor to sign in (243.46783ms)
✔ signing in through the form sets a session and reveals the nav (450.596763ms)
✔ a user creates a project through the form and is shown the secret once (317.530501ms)
✔ a project page shows variables and never their values (296.353603ms)
✔ setting and removing a variable returns the updated table (297.104269ms)
✔ a user cannot open or delete a project they do not own (511.938461ms)
✔ registering a worker shows the token once and lists it (397.320071ms)
✔ an ordinary user cannot create shared capacity from the form (556.182763ms)
✔ the users page is administrator only and warns about what deletion destroys (535.58639ms)
✔ a running job polls, and a finished one stops (449.296463ms)
✔ a task page streams the log and stops polling once it completes (305.22489ms)
✔ log output is escaped, so a task cannot inject markup into the page (358.077114ms)
✔ a mutation without the htmx header is refused (296.658005ms)
✔ the sign in form is centred rather than stranded at the left edge (222.030437ms)
✔ row actions stay ordinary table cells, so rows keep one height (283.136759ms)
✔ the stylesheet and htmx are served, and nothing else is (203.428539ms)
✔ the project page shows retention, with server defaults as placeholders (335.255151ms)
✔ saving retention through the form stores it, and empty means inherit (311.638362ms)
✔ a negative retention value is refused by the form (359.327252ms)
✔ the project page offers a working directory, defaulting to the server one (307.525105ms)
✔ saving a working directory stores it, and empty clears it (331.860333ms)
✔ an unusable working directory is refused by the form (309.759388ms)
✔ worker config loads from json and reports features (36.857785ms)
✔ worker config reads the token from a file (5.300802ms)
✔ environment overrides the worker config file (3.648449ms)
✔ worker config without a token is rejected (5.552725ms)
✔ a malformed feature is reported with its path (3.667488ms)
✔ shell quoting survives quotes and metacharacters (0.589857ms)
✔ a generated script echoes each command and stops on failure (0.793403ms)
✔ container names are valid for docker and stay unique (1.928984ms)
✔ job arguments carry mounts, env, network and privilege (0.853424ms)
✔ a task container is created without sharing anything with the worker (1.013457ms)
✔ a feature still contributes its bind mounts (0.430001ms)
✔ features resolve into mounts, env and privilege (0.517435ms)
✔ an unknown required feature is reported rather than ignored (0.262427ms)
✔ an artifact pattern reduces to the part that can be copied out (0.443366ms)
✔ overlapping artifact paths are copied out once (0.582054ms)
✔ artifact collection globs, and refuses to leave the workspace (34.170183ms)
✔ artifact when controls collection (0.69052ms)
✔ an idle worker keeps running instead of exiting (4015.54166ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1521.011055ms)
✔ log output is batched and offsets advance (2.1043ms)
✔ a conflicting offset resynchronises instead of duplicating (0.63509ms)
✔ secrets are masked before anything leaves the host (1.014245ms)
✔ a secret split across two writes is still masked (0.409596ms)
✔ a failing conductor does not break the task (0.675777ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15336.672628
[conductor] done