conductor

sign in

test

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

log

[conductor] task test on conductor-worker-x86-64
[conductor] commit 37e0eda27aee 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 (238.55705ms)
✔ no file uses CRLF line endings or trailing whitespace (103.249743ms)
✔ a password round trips and a wrong one is refused (45.850047ms)
✔ the same password hashes differently each time (31.320014ms)
✔ parameters are read back from the stored hash (28.303961ms)
✔ a malformed stored hash is refused rather than throwing (0.766902ms)
✔ password length is bounded (2.062944ms)
✔ a session token round trips its claims (1.953576ms)
✔ a token signed with another secret is refused (0.674883ms)
✔ a tampered payload is refused (0.649713ms)
✔ an expired token is refused (1.318648ms)
✔ a malformed token is refused rather than throwing (0.723115ms)
✔ cookies are parsed and issued (4.759863ms)
✔ the oidc login state round trips with its return path (1.701844ms)
✔ a missing return path means the root (0.546982ms)
✔ the oidc login state is refused when forged, stale or off-site (1.261813ms)
✔ oidc roles are collected from the usual claim shapes (1.119419ms)
✔ mask replaces secrets, longest first (0.709955ms)
✔ mask ignores very short values and leaves clean output alone (0.364381ms)
✔ health reports the selected drivers (430.310618ms)
✔ a signed trigger creates a job and expands the pipeline (229.500389ms)
✔ an unsigned or wrongly signed trigger is refused (119.267951ms)
✔ github and gitlab push payloads are understood (308.616067ms)
✔ a branch deletion is ignored rather than failing (91.778262ms)
✔ a broken pipeline is reported as a client error with detail (225.180365ms)
✔ a missing pipeline file is reported clearly (215.833336ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (240.260692ms)
✔ a project pointed at a specific file gets no fallback (223.421718ms)
✔ a repository carrying both spellings is refused rather than guessed at (229.936347ms)
✔ a pipeline still using the jobs key is told what it was renamed to (215.519394ms)
✔ a job can be created directly, without a push payload to imitate (232.466667ms)
✔ creating a job requires the same signature as a trigger (140.713567ms)
✔ creating a job insists on a real commit rather than inferring one (146.248483ms)
✔ a job can be read back, with the state of every task (201.007195ms)
✔ a public job is readable without any credential at all (231.117434ms)
✔ a private job needs the trigger secret, and is otherwise absent (262.224848ms)
✔ a job of another project cannot be read through this one (234.022417ms)
✔ a task can be read back on its own, and by its full name (223.423166ms)
✔ reading a task back carries its dependencies and matrix (209.621435ms)
✔ reading a task back never exposes its environment, services or script (220.315991ms)
✔ a task lists the artifacts it stored, with a usable download url (281.282102ms)
✔ reading a task back needs no worker token (250.726437ms)
✔ a private task is absent without a credential, and needs its project named (227.030577ms)
✔ a private task is readable by an administrator, by either path (456.644592ms)
✔ a task of another project cannot be read through this one (245.539516ms)
✔ an unknown task is 404 by either path (136.443468ms)
✔ the worker api rejects missing and invalid tokens (91.741657ms)
✔ independent tasks dispatch concurrently (204.948398ms)
✔ a task is only offered to a worker that satisfies its requires (231.954232ms)
✔ a worker is not offered work for an architecture it cannot build (271.479647ms)
✔ a claimed task carries everything the worker needs (261.462323ms)
✔ a task that requires a feature reports it to the worker (249.407486ms)
✔ the standard conductor variables are present in the task environment (215.643634ms)
✔ the source tarball is served from the mirror (211.447485ms)
✔ a worker cannot touch a task it does not hold (221.91937ms)
✔ log appends are resumable and deduplicated by offset (260.562709ms)
✔ an oversized log chunk is refused (204.472657ms)
✔ a finished log moves to storage and is still readable (270.515551ms)
✔ artifacts are stored, hashed, and stripped of traversal (263.5288ms)
✔ an artifact shorter than its content-length is rejected (250.345351ms)
✔ success releases dependents, matched on shared dimensions (239.519961ms)
✔ failure skips transitive dependents, not just direct ones (257.035651ms)
✔ a job settles as failed once every task is terminal (250.067806ms)
✔ a job settles as success when everything passes (254.649798ms)
✔ an allowed failure does not fail the job or block dependents (261.322307ms)
✔ a task with retries left is requeued instead of failing the job (247.215537ms)
✔ heartbeats keep a task alive and report cancellation (258.616403ms)
✔ the reaper fails a task whose worker stopped reporting (289.34641ms)
✔ a second push produces an independent, numbered job (385.743637ms)
﹣ jobs can be listed and filtered by project (0.642591ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.263575ms) # the JSON API was removed
✔ a disabled project refuses triggers (131.689089ms)
✔ a trigger for an unknown project is a 404 (139.331206ms)
✔ a commit that is not in the repository is refused (237.414173ms)
✔ a task is told to fetch an archive, and never the repository itself (230.250402ms)
✔ the source archive is the bare tree, with no wrapping directory (242.578395ms)
✔ the working directory is resolved from the pipeline, then the project (725.225586ms)
✔ an unusable working directory is refused rather than sanitised (940.802592ms)
✔ the trigger secret is not stored in the clear (165.456486ms)
✔ worker tokens are stored only as hashes (106.244579ms)
✔ defaults select sqlite, local storage and local auth (6.435265ms)
✔ configuring an s3 bucket switches the storage driver (1.882196ms)
✔ a partial s3 configuration is rejected rather than half applied (2.247169ms)
✔ configuring an oidc discovery url switches the auth mode (1.705671ms)
✔ an oidc discovery url without a client id is rejected (1.427174ms)
✔ a database url selects its dialect (3.104587ms)
✔ an unsupported database scheme is reported clearly (1.806658ms)
✔ a sqlite url collapses into database.path (3.912669ms)
✔ environment variables override the config file (63.760791ms)
✔ relative paths resolve against the config file directory (12.511901ms)
✔ a missing explicit config file is an error, a missing default is not (2.886163ms)
✔ a heartbeat timeout below the reap interval is rejected (13.405459ms)
✔ a non-integer port is rejected with the variable named (1.378633ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.913647ms)
✔ stateDirs omits the storage directory when s3 is in use (6.451159ms)
✔ the loaded config is frozen (1.705716ms)
✔ topological order places dependencies first (4.059131ms)
✔ topological order is deterministic (4.214629ms)
✔ a cycle is detected and named (1.704111ms)
✔ depth reflects the longest path, not insertion order (0.797528ms)
✔ independent tasks are runnable at the same time (0.970842ms)
✔ a task becomes runnable only once every dependency succeeds (0.71076ms)
✔ a running dependency does not release its dependents (0.513946ms)
✔ failure skips transitive dependents, not just direct ones (0.799453ms)
✔ a skipped dependency never releases a dependent (1.295798ms)
✔ allowed failures can satisfy a dependency when asked to (0.921827ms)
✔ transitive dependents of a leaf is empty (0.549828ms)
✔ graph helpers tolerate dependencies outside the set (5.515168ms)
✔ dialect detection covers every supported scheme (4.159254ms)
✔ statement splitter respects literals and comments (1.291513ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.889359ms)
✔ migrations apply once and are idempotent (108.892201ms)
✔ an edited migration is refused rather than silently diverging (47.285716ms)
✔ a migration removed from disk is reported (39.518072ms)
✔ rows come back as ordinary objects (63.385732ms)
✔ a conditional update claims exactly once (55.167262ms)
✔ deleting a job cascades to its tasks (34.180544ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (55.698071ms)
﹣ migrations apply and retention sweeps on postgres (2.774314ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.384218ms) # SKIP
✔ every example pipeline compiles (84.99166ms)
✔ the distribution example fans in per architecture (15.528438ms)
✔ the node example wires services and features (21.223348ms)
✔ git jobs with safe.directory set (3.552135ms)
✔ it appends to configuration already in the environment (0.413913ms)
✔ a count that is not a number does not corrupt the sequence (0.392639ms)
✔ git accepts the environment we build (54.205443ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (100.729362ms)
﹣ the endpoints and key set come from the discovery document (2.183516ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (77.171531ms)
✔ discovery reports an unreachable provider and a bad status (1.568948ms)
﹣ a token carrying the admin role authenticates as an administrator (0.328586ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.336626ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.306118ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.363008ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.505797ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.525088ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.592095ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.406553ms) # the JSON API was removed
﹣ a forged signature is refused (0.61139ms) # the JSON API was removed
﹣ an expired token is refused (0.29639ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.734365ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (1.108134ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.344413ms) # docker is not available
﹣ a callback with a forged state is refused (0.205923ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.180398ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.219511ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.190876ms) # the JSON API was removed
✔ a pattern without a star matches exactly (5.163058ms)
✔ a star matches any job of characters (0.733217ms)
✔ the rest of a pattern is literal, not a regular expression (0.524123ms)
✔ a restricted task is left out of jobs for other refs (48.65482ms)
✔ it is left out rather than recorded as skipped (4.216332ms)
✔ tasks depending on an excluded task are excluded too (7.254507ms)
✔ depth and ordering describe the job that will happen (3.127473ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (9.473972ms)
✔ a restricted task cannot match a job that has no ref (2.93882ms)
✔ a malformed rule is reported rather than ignored (16.079597ms)
✔ the rule is not inherited from defaults (3.891323ms)
✔ a page number is read from the query, and nonsense reads as the first (4.010459ms)
✔ an absurd page number cannot produce an unusable offset (0.655892ms)
✔ a window describes the slice it holds (0.425411ms)
✔ an empty table is one page, and counts from zero (0.302976ms)
✔ windowOfAll slices a list that is already in memory (0.770673ms)
✔ a page link keeps the other query parameters (0.836938ms)
✔ a pager is not rendered when everything fits on one page (1.106608ms)
✔ a pager offers only the steps that exist (1.566479ms)
✔ paginate counts under the same conditions as it selects (450.528194ms)
✔ successive pages do not repeat or skip a row (201.151386ms)
✔ the job list is capped at a page and offers the next one (224.078299ms)
✔ paging past the end is an empty table rather than an error (160.7686ms)
✔ a page link keeps the project filter, and so does the live fragment (215.444234ms)
✔ the polling fragment asks for the page being viewed, not the first (227.234789ms)
✔ the count behind the pager respects who is asking (307.248332ms)
✔ the users and workers tables keep their swap target on the wrapper (333.61169ms)
✔ a minimal pipeline compiles (39.01194ms)
✔ version is required and pinned (6.518391ms)
✔ empty and malformed documents are rejected clearly (6.267845ms)
✔ image and script are required (1.731277ms)
✔ image may come from defaults (2.932366ms)
✔ unknown keys are rejected, with a suggestion when close (5.781791ms)
✔ all problems are reported at once (2.074504ms)
✔ durations accept seconds, units and composites (5.884383ms)
✔ durations accept day and week units (3.244515ms)
✔ a malformed duration is rejected (2.336586ms)
✔ arch expands into one task per architecture (3.073607ms)
✔ a matrix expands to the cartesian product (3.422721ms)
✔ needs match on shared dimensions rather than fanning out (12.108928ms)
✔ a task without the shared dimension depends on every instance (2.565658ms)
✔ match all opts out of dimension matching (8.849814ms)
✔ needs may name one concrete instance (7.361763ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.553175ms)
✔ needs on an unknown task lists what is defined (1.335031ms)
✔ self dependency is rejected (3.753432ms)
✔ a dependency cycle names the cycle (9.099126ms)
✔ interpolation substitutes arch and matrix values (2.285286ms)
✔ interpolating an undefined dimension is an error (3.724481ms)
✔ referring to arch without declaring one is an error (2.404478ms)
✔ matrix values must be safe for use in a task name (1.582013ms)
✔ arch may not also be a matrix dimension (1.573223ms)
✔ services get a derived alias and reject duplicates (10.225274ms)
✔ artifacts accept a bare list and reject absolute paths (2.764241ms)
✔ artifact when is constrained (1.63728ms)
✔ defaults are inherited and overridden per task (2.207714ms)
✔ env values must be scalars with valid names (1.827838ms)
✔ parsePipeline normalizes without expanding (2.765408ms)
✔ a realistic distribution pipeline produces the expected graph (4.30066ms)
✔ compiles markers to the placeholder each dialect expects (11.008678ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.524147ms)
✔ ignores markers inside string literals and comments (0.746864ms)
✔ a json literal in default text survives untouched (0.517913ms)
✔ doubling a brace escapes it (0.939364ms)
✔ block comments are skipped, and nest only for postgres (0.594896ms)
✔ postgres dollar quoted bodies are skipped (0.652247ms)
✔ mysql backtick identifiers and hash comments are skipped (0.671361ms)
✔ a malformed marker is rejected with a useful message (3.132341ms)
✔ binds by name, resolving dotted paths (2.005479ms)
✔ an exact key beats path traversal (1.548183ms)
✔ reports every missing key at once (0.800466ms)
✔ rejects an array of parameters, which would silently bind by position (2.511036ms)
✔ normalizes booleans, dates and null (0.490372ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.867696ms)
✔ an artifact past its own deadline is deleted (397.938866ms)
✔ an explicit deadline overrides the policy in both directions (224.245709ms)
✔ an explicit deadline also beats the last good job (122.159654ms)
✔ the last few jobs keep their artifacts however old they are (121.723687ms)
✔ recent artifacts are kept however many jobs have followed (102.1137ms)
✔ an artifact outside both rules is deleted (105.863531ms)
✔ the most recent successful job is kept whatever the policy says (99.338568ms)
✔ only the latest success is protected, not every success (133.268633ms)
✔ a project may keep artifacts forever despite a server default (99.288061ms)
✔ a project setting overrides the server default (106.23266ms)
✔ an unfinished job is never swept (108.413036ms)
✔ logs older than the limit are removed but the task remains (95.134158ms)
✔ a swept log is distinguishable from one that never existed (107.043061ms)
✔ a log is swept only once (127.80788ms)
✔ zero keeps logs forever (94.718755ms)
✔ a storage failure leaves the row for the next pass (98.705883ms)
✔ a sweep deletes no more than its batch (114.095943ms)
✔ one project policy does not reach into another (98.553871ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (249.985458ms)
﹣ the api reports and accepts project retention (0.391221ms) # the JSON API was removed
✔ seals and opens a value (8.194545ms)
✔ sealing twice produces different ciphertext (3.247151ms)
✔ without a key, values are stored as marked plaintext (2.217562ms)
✔ a keyed box can still read values written before a key existed (0.543722ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.952371ms)
✔ the wrong key fails to open (1.294777ms)
✔ tampering with the ciphertext is detected (1.566268ms)
✔ associated data binds a secret to its location (2.356723ms)
✔ a key of the wrong size is refused at construction (1.688637ms)
✔ task ids are opaque, and say nothing about their job (13.858472ms)
✔ time ordered ids sort by creation time (6.215446ms)
✔ random ids use the expected alphabet (0.504138ms)
✔ slugify produces readable project ids and falls back when empty (0.693059ms)
✔ token hashing and constant time comparison (4.385515ms)
✔ the pipeline this project jobs on itself compiles (50.82056ms)
✔ its tasks declare the features they actually need (22.095769ms)
✔ publishing is restricted to main and release tags (95.12061ms)
✔ get-vanilla matches the reference signature (6.554327ms)
✔ get-vanilla-query-order-key-case matches the reference signature (6.664052ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.509378ms)
✔ amzDate produces both required formats (0.750353ms)
✔ s3 requests carry the content hash header (1.68484ms)
✔ presigned urls carry the signature in the query string (5.671818ms)
✔ an already encoded path is not encoded a second time (1.652377ms)
✔ key validation rejects traversal and absolute paths (5.050768ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.822079ms)
✔ key layout is stable (0.77447ms)
✔ local backend round trips a buffer and reports its digest (36.19931ms)
✔ local backend serves ranges (8.621365ms)
✔ local backend accepts a stream (13.035617ms)
✔ local backend reports a missing object and deletes idempotently (5.805246ms)
✔ local backend has no presigned urls (6.189538ms)
✔ a partial write leaves no object behind (7.127503ms)
✔ part size grows so that a huge object still fits in 10000 parts (2.13427ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (5.427318ms)
✔ inParts handles a chunk far larger than the part size (1.313732ms)
✔ inParts yields nothing for an empty stream (0.684401ms)
﹣ s3 backend round trips awkward keys against a real server (0.104221ms) # docker is not available
﹣ s3 serves byte ranges (0.08511ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.08418ms) # docker is not available
﹣ a presigned url is usable without credentials (0.145232ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.080629ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.102565ms) # docker is not available
﹣ a stream of unknown length is accepted (0.105337ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.068746ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.117153ms) # docker is not available
﹣ a multipart object still serves ranges (0.075893ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.063851ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.08535ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.076752ms) # docker is not available
✔ every javascript file parses (993.233933ms)
✔ the shell scripts parse (3.290376ms)
✔ interpolated values are escaped by default (4.50135ms)
✔ quotes and ampersands are escaped inside attributes (0.646626ms)
✔ nested templates and arrays are kept, raw is passed through (0.590161ms)
✔ null, undefined and false render as nothing (0.435825ms)
✔ attrs omits absent values and renders bare booleans (0.694743ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (523.483089ms)
✔ an anonymous visitor cannot see a private job (289.203336ms)
✔ management pages redirect an anonymous visitor to sign in (191.274876ms)
✔ signing in through the form sets a session and reveals the nav (434.651606ms)
✔ a user creates a project through the form and is shown the secret once (347.92713ms)
✔ a project page shows variables and never their values (343.672213ms)
✔ setting and removing a variable returns the updated table (341.2906ms)
✔ a user cannot open or delete a project they do not own (560.398518ms)
✔ registering a worker shows the token once and lists it (373.861764ms)
✔ an ordinary user cannot create shared capacity from the form (515.025468ms)
✔ the users page is administrator only and warns about what deletion destroys (537.80637ms)
✔ a running job polls, and a finished one stops (361.287025ms)
✔ a task page streams the log and stops polling once it completes (391.285468ms)
✔ log output is escaped, so a task cannot inject markup into the page (360.112248ms)
✔ a mutation without the htmx header is refused (358.456536ms)
✔ the sign in form is centred rather than stranded at the left edge (174.104917ms)
✔ row actions stay ordinary table cells, so rows keep one height (312.058303ms)
✔ the stylesheet and htmx are served, and nothing else is (275.214852ms)
✔ the project page shows retention, with server defaults as placeholders (350.39265ms)
✔ saving retention through the form stores it, and empty means inherit (342.356306ms)
✔ a negative retention value is refused by the form (363.664958ms)
✔ the project page offers a working directory, defaulting to the server one (365.133462ms)
✔ saving a working directory stores it, and empty clears it (289.099708ms)
✔ an unusable working directory is refused by the form (406.477911ms)
✔ worker config loads from json and reports features (35.378408ms)
✔ worker config reads the token from a file (4.417921ms)
✔ environment overrides the worker config file (4.177263ms)
✔ worker config without a token is rejected (5.79288ms)
✔ a malformed feature is reported with its path (5.362329ms)
✔ shell quoting survives quotes and metacharacters (0.713135ms)
✔ a generated script echoes each command and stops on failure (0.780289ms)
✔ container names are valid for docker and stay unique (2.047911ms)
✔ job arguments carry mounts, env, network and privilege (1.361757ms)
✔ a task container is created without sharing anything with the worker (1.076081ms)
✔ a feature still contributes its bind mounts (0.431776ms)
✔ features resolve into mounts, env and privilege (2.561439ms)
✔ an unknown required feature is reported rather than ignored (0.275802ms)
✔ an artifact pattern reduces to the part that can be copied out (0.549358ms)
✔ overlapping artifact paths are copied out once (0.510702ms)
✔ artifact collection globs, and refuses to leave the workspace (34.88748ms)
✔ artifact when controls collection (0.461654ms)
✔ an idle worker keeps running instead of exiting (4011.68378ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1520.610467ms)
✔ log output is batched and offsets advance (3.382185ms)
✔ a conflicting offset resynchronises instead of duplicating (1.426697ms)
✔ secrets are masked before anything leaves the host (1.933268ms)
✔ a secret split across two writes is still masked (1.295032ms)
✔ a failing conductor does not break the task (1.549882ms)
ℹ tests 347
ℹ suites 0
ℹ pass 311
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15442.188285
[conductor] done