conductor

sign in

test

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

log

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

✔ every tracked text file is pure ASCII (227.294126ms)
✔ no file uses CRLF line endings or trailing whitespace (115.999729ms)
✔ a password round trips and a wrong one is refused (46.504525ms)
✔ the same password hashes differently each time (37.22002ms)
✔ parameters are read back from the stored hash (28.227274ms)
✔ a malformed stored hash is refused rather than throwing (0.777313ms)
✔ password length is bounded (1.022869ms)
✔ a session token round trips its claims (2.602492ms)
✔ a token signed with another secret is refused (1.198877ms)
✔ a tampered payload is refused (1.232843ms)
✔ an expired token is refused (0.94201ms)
✔ a malformed token is refused rather than throwing (0.733716ms)
✔ cookies are parsed and issued (5.568764ms)
✔ the oidc login state round trips with its return path (2.210895ms)
✔ a missing return path means the root (0.578551ms)
✔ the oidc login state is refused when forged, stale or off-site (0.793537ms)
✔ oidc roles are collected from the usual claim shapes (1.785164ms)
✔ mask replaces secrets, longest first (0.726827ms)
✔ mask ignores very short values and leaves clean output alone (0.365887ms)
✔ health reports the selected drivers (408.789915ms)
✔ a signed trigger creates a job and expands the pipeline (222.297591ms)
✔ an unsigned or wrongly signed trigger is refused (104.131994ms)
✔ github and gitlab push payloads are understood (299.477837ms)
✔ a branch deletion is ignored rather than failing (86.771814ms)
✔ a broken pipeline is reported as a client error with detail (199.908612ms)
✔ a missing pipeline file is reported clearly (207.132401ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (209.842994ms)
✔ a project pointed at a specific file gets no fallback (240.619971ms)
✔ a repository carrying both spellings is refused rather than guessed at (212.916643ms)
✔ a pipeline still using the jobs key is told what it was renamed to (264.862066ms)
✔ a job can be created directly, without a push payload to imitate (214.867542ms)
✔ creating a job requires the same signature as a trigger (140.131446ms)
✔ creating a job insists on a real commit rather than inferring one (202.948223ms)
✔ a job can be read back, with the state of every task (243.675798ms)
✔ a public job is readable without any credential at all (228.98246ms)
✔ a private job needs the trigger secret, and is otherwise absent (221.126559ms)
✔ a job of another project cannot be read through this one (235.323297ms)
✔ a task can be read back on its own, and by its full name (245.562233ms)
✔ reading a task back carries its dependencies and matrix (232.345892ms)
✔ reading a task back never exposes its environment, services or script (277.990914ms)
✔ a task lists the artifacts it stored, with a usable download url (237.796471ms)
✔ reading a task back needs no worker token (214.503465ms)
✔ a private task is absent without a credential, and needs its project named (223.097259ms)
✔ a private task is readable by an administrator, by either path (437.975403ms)
✔ a task of another project cannot be read through this one (241.567495ms)
✔ an unknown task is 404 by either path (127.697529ms)
✔ the worker api rejects missing and invalid tokens (126.869985ms)
✔ independent tasks dispatch concurrently (227.699397ms)
✔ a task is only offered to a worker that satisfies its requires (241.479037ms)
✔ a worker is not offered work for an architecture it cannot build (220.240518ms)
✔ a claimed task carries everything the worker needs (257.418165ms)
✔ a task that requires a feature reports it to the worker (294.413585ms)
✔ the standard conductor variables are present in the task environment (236.295584ms)
✔ the source tarball is served from the mirror (222.435211ms)
✔ a worker cannot touch a task it does not hold (232.517025ms)
✔ log appends are resumable and deduplicated by offset (226.006267ms)
✔ an oversized log chunk is refused (277.279005ms)
✔ a finished log moves to storage and is still readable (260.355664ms)
✔ artifacts are stored, hashed, and stripped of traversal (223.254224ms)
✔ an artifact shorter than its content-length is rejected (256.994863ms)
✔ success releases dependents, matched on shared dimensions (222.365523ms)
✔ failure skips transitive dependents, not just direct ones (262.864249ms)
✔ a job settles as failed once every task is terminal (258.643632ms)
✔ a job settles as success when everything passes (259.876083ms)
✔ an allowed failure does not fail the job or block dependents (262.339081ms)
✔ a task with retries left is requeued instead of failing the job (256.755971ms)
✔ heartbeats keep a task alive and report cancellation (253.636895ms)
✔ the reaper fails a task whose worker stopped reporting (305.75539ms)
✔ a second push produces an independent, numbered job (387.924474ms)
﹣ jobs can be listed and filtered by project (0.684994ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.322472ms) # the JSON API was removed
✔ a disabled project refuses triggers (139.202563ms)
✔ a trigger for an unknown project is a 404 (106.58692ms)
✔ a commit that is not in the repository is refused (191.240618ms)
✔ a task is told to fetch an archive, and never the repository itself (241.908999ms)
✔ the source archive is the bare tree, with no wrapping directory (268.018776ms)
✔ the working directory is resolved from the pipeline, then the project (769.060819ms)
✔ an unusable working directory is refused rather than sanitised (985.693191ms)
✔ the trigger secret is not stored in the clear (135.583895ms)
✔ worker tokens are stored only as hashes (102.960892ms)
✔ defaults select sqlite, local storage and local auth (8.368354ms)
✔ configuring an s3 bucket switches the storage driver (1.924356ms)
✔ a partial s3 configuration is rejected rather than half applied (2.505862ms)
✔ configuring an oidc discovery url switches the auth mode (1.66106ms)
✔ an oidc discovery url without a client id is rejected (1.424636ms)
✔ a database url selects its dialect (1.89797ms)
✔ an unsupported database scheme is reported clearly (1.568184ms)
✔ a sqlite url collapses into database.path (3.125575ms)
✔ environment variables override the config file (55.598028ms)
✔ relative paths resolve against the config file directory (13.249778ms)
✔ a missing explicit config file is an error, a missing default is not (5.842194ms)
✔ a heartbeat timeout below the reap interval is rejected (15.616278ms)
✔ a non-integer port is rejected with the variable named (1.235947ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.694375ms)
✔ stateDirs omits the storage directory when s3 is in use (2.874113ms)
✔ the loaded config is frozen (1.107555ms)
✔ topological order places dependencies first (4.915155ms)
✔ topological order is deterministic (5.908986ms)
✔ a cycle is detected and named (2.007784ms)
✔ depth reflects the longest path, not insertion order (0.884475ms)
✔ independent tasks are runnable at the same time (1.018958ms)
✔ a task becomes runnable only once every dependency succeeds (0.778242ms)
✔ a running dependency does not release its dependents (0.844431ms)
✔ failure skips transitive dependents, not just direct ones (1.11849ms)
✔ a skipped dependency never releases a dependent (1.838768ms)
✔ allowed failures can satisfy a dependency when asked to (0.951697ms)
✔ transitive dependents of a leaf is empty (2.203989ms)
✔ graph helpers tolerate dependencies outside the set (0.898039ms)
✔ dialect detection covers every supported scheme (4.275693ms)
✔ statement splitter respects literals and comments (1.411628ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.583439ms)
✔ migrations apply once and are idempotent (125.496117ms)
✔ an edited migration is refused rather than silently diverging (62.633004ms)
✔ a migration removed from disk is reported (36.521491ms)
✔ rows come back as ordinary objects (49.265815ms)
✔ a conditional update claims exactly once (47.391876ms)
✔ deleting a job cascades to its tasks (39.540328ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (49.473364ms)
﹣ migrations apply and retention sweeps on postgres (2.693309ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.380078ms) # SKIP
✔ every example pipeline compiles (111.142734ms)
✔ the distribution example fans in per architecture (34.308582ms)
✔ the node example wires services and features (11.69117ms)
✔ git jobs with safe.directory set (2.914431ms)
✔ it appends to configuration already in the environment (0.44117ms)
✔ a count that is not a number does not corrupt the sequence (0.441722ms)
✔ git accepts the environment we build (44.00102ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (114.499623ms)
﹣ the endpoints and key set come from the discovery document (3.003287ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (56.279473ms)
✔ discovery reports an unreachable provider and a bad status (1.755159ms)
﹣ a token carrying the admin role authenticates as an administrator (0.240627ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.207494ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.175316ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.236579ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.225122ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.282123ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.310675ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.161273ms) # the JSON API was removed
﹣ a forged signature is refused (1.246909ms) # the JSON API was removed
﹣ an expired token is refused (0.143781ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.168829ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.415586ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.124312ms) # docker is not available
﹣ a callback with a forged state is refused (0.389145ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.089459ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (3.73914ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.092015ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.92126ms)
✔ a star matches any job of characters (1.067099ms)
✔ the rest of a pattern is literal, not a regular expression (0.738231ms)
✔ a restricted task is left out of jobs for other refs (58.276949ms)
✔ it is left out rather than recorded as skipped (6.062059ms)
✔ tasks depending on an excluded task are excluded too (7.182668ms)
✔ depth and ordering describe the job that will happen (7.3851ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (5.807155ms)
✔ a restricted task cannot match a job that has no ref (3.616897ms)
✔ a malformed rule is reported rather than ignored (24.969298ms)
✔ the rule is not inherited from defaults (4.700362ms)
✔ a minimal pipeline compiles (35.859306ms)
✔ version is required and pinned (6.013191ms)
✔ empty and malformed documents are rejected clearly (5.845665ms)
✔ image and script are required (5.268718ms)
✔ image may come from defaults (6.081989ms)
✔ unknown keys are rejected, with a suggestion when close (9.260926ms)
✔ all problems are reported at once (5.736081ms)
✔ durations accept seconds, units and composites (16.014658ms)
✔ durations accept day and week units (12.786957ms)
✔ a malformed duration is rejected (7.309682ms)
✔ arch expands into one task per architecture (9.918469ms)
✔ a matrix expands to the cartesian product (7.254553ms)
✔ needs match on shared dimensions rather than fanning out (14.672686ms)
✔ a task without the shared dimension depends on every instance (3.403949ms)
✔ match all opts out of dimension matching (3.219107ms)
✔ needs may name one concrete instance (7.295688ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.606826ms)
✔ needs on an unknown task lists what is defined (1.502541ms)
✔ self dependency is rejected (3.695917ms)
✔ a dependency cycle names the cycle (7.161057ms)
✔ interpolation substitutes arch and matrix values (5.176501ms)
✔ interpolating an undefined dimension is an error (1.662569ms)
✔ referring to arch without declaring one is an error (1.141841ms)
✔ matrix values must be safe for use in a task name (1.722217ms)
✔ arch may not also be a matrix dimension (1.565749ms)
✔ services get a derived alias and reject duplicates (10.344832ms)
✔ artifacts accept a bare list and reject absolute paths (3.156968ms)
✔ artifact when is constrained (1.397002ms)
✔ defaults are inherited and overridden per task (2.530675ms)
✔ env values must be scalars with valid names (2.010551ms)
✔ parsePipeline normalizes without expanding (1.602243ms)
✔ a realistic distribution pipeline produces the expected graph (3.398849ms)
✔ compiles markers to the placeholder each dialect expects (14.318188ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.488703ms)
✔ ignores markers inside string literals and comments (4.88022ms)
✔ a json literal in default text survives untouched (0.59229ms)
✔ doubling a brace escapes it (0.562132ms)
✔ block comments are skipped, and nest only for postgres (0.528527ms)
✔ postgres dollar quoted bodies are skipped (0.684365ms)
✔ mysql backtick identifiers and hash comments are skipped (1.466233ms)
✔ a malformed marker is rejected with a useful message (3.355591ms)
✔ binds by name, resolving dotted paths (1.932942ms)
✔ an exact key beats path traversal (2.30321ms)
✔ reports every missing key at once (0.828724ms)
✔ rejects an array of parameters, which would silently bind by position (2.902652ms)
✔ normalizes booleans, dates and null (0.523992ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.589597ms)
✔ an artifact past its own deadline is deleted (390.527905ms)
✔ an explicit deadline overrides the policy in both directions (210.328875ms)
✔ an explicit deadline also beats the last good job (97.610166ms)
✔ the last few jobs keep their artifacts however old they are (102.442478ms)
✔ recent artifacts are kept however many jobs have followed (100.869523ms)
✔ an artifact outside both rules is deleted (92.037131ms)
✔ the most recent successful job is kept whatever the policy says (94.955385ms)
✔ only the latest success is protected, not every success (105.333663ms)
✔ a project may keep artifacts forever despite a server default (100.924079ms)
✔ a project setting overrides the server default (83.582756ms)
✔ an unfinished job is never swept (84.092794ms)
✔ logs older than the limit are removed but the task remains (101.731494ms)
✔ a swept log is distinguishable from one that never existed (95.095235ms)
✔ a log is swept only once (107.824824ms)
✔ zero keeps logs forever (91.853871ms)
✔ a storage failure leaves the row for the next pass (103.674158ms)
✔ a sweep deletes no more than its batch (123.510052ms)
✔ one project policy does not reach into another (132.135437ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (270.196089ms)
﹣ the api reports and accepts project retention (0.42328ms) # the JSON API was removed
✔ seals and opens a value (8.373131ms)
✔ sealing twice produces different ciphertext (1.477311ms)
✔ without a key, values are stored as marked plaintext (0.675695ms)
✔ a keyed box can still read values written before a key existed (0.564382ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.420527ms)
✔ the wrong key fails to open (1.073057ms)
✔ tampering with the ciphertext is detected (1.20937ms)
✔ associated data binds a secret to its location (1.921618ms)
✔ a key of the wrong size is refused at construction (1.09608ms)
✔ task ids are opaque, and say nothing about their job (10.643484ms)
✔ time ordered ids sort by creation time (0.585081ms)
✔ random ids use the expected alphabet (0.516604ms)
✔ slugify produces readable project ids and falls back when empty (0.851665ms)
✔ token hashing and constant time comparison (2.869196ms)
✔ the pipeline this project jobs on itself compiles (58.850172ms)
✔ its tasks declare the features they actually need (21.345468ms)
✔ publishing is restricted to main and release tags (50.151507ms)
✔ get-vanilla matches the reference signature (6.103894ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.842423ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.444611ms)
✔ amzDate produces both required formats (0.660951ms)
✔ s3 requests carry the content hash header (1.500513ms)
✔ presigned urls carry the signature in the query string (5.842506ms)
✔ an already encoded path is not encoded a second time (2.225297ms)
✔ key validation rejects traversal and absolute paths (5.003158ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.792565ms)
✔ key layout is stable (1.027393ms)
✔ local backend round trips a buffer and reports its digest (36.84358ms)
✔ local backend serves ranges (8.777849ms)
✔ local backend accepts a stream (10.461299ms)
✔ local backend reports a missing object and deletes idempotently (4.525377ms)
✔ local backend has no presigned urls (6.607825ms)
✔ a partial write leaves no object behind (6.344362ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.344289ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.35171ms)
✔ inParts handles a chunk far larger than the part size (1.658408ms)
✔ inParts yields nothing for an empty stream (0.858689ms)
﹣ s3 backend round trips awkward keys against a real server (0.174598ms) # docker is not available
﹣ s3 serves byte ranges (0.186923ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.146962ms) # docker is not available
﹣ a presigned url is usable without credentials (0.211781ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.128229ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.122171ms) # docker is not available
﹣ a stream of unknown length is accepted (0.120251ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.116063ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.519729ms) # docker is not available
﹣ a multipart object still serves ranges (0.128809ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.17834ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.12716ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.123578ms) # docker is not available
✔ every javascript file parses (959.641653ms)
✔ the shell scripts parse (4.37956ms)
✔ interpolated values are escaped by default (2.574797ms)
✔ quotes and ampersands are escaped inside attributes (0.419069ms)
✔ nested templates and arrays are kept, raw is passed through (0.383119ms)
✔ null, undefined and false render as nothing (0.322081ms)
✔ attrs omits absent values and renders bare booleans (0.532657ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (527.920239ms)
✔ an anonymous visitor cannot see a private job (299.88515ms)
✔ management pages redirect an anonymous visitor to sign in (235.095615ms)
✔ signing in through the form sets a session and reveals the nav (378.838797ms)
✔ a user creates a project through the form and is shown the secret once (343.534774ms)
✔ a project page shows variables and never their values (336.442423ms)
✔ setting and removing a variable returns the updated table (336.040728ms)
✔ a user cannot open or delete a project they do not own (623.970552ms)
✔ registering a worker shows the token once and lists it (320.512022ms)
✔ an ordinary user cannot create shared capacity from the form (589.046845ms)
✔ the users page is administrator only and warns about what deletion destroys (558.772167ms)
✔ a running job polls, and a finished one stops (404.112341ms)
✔ a task page streams the log and stops polling once it completes (449.433833ms)
✔ log output is escaped, so a task cannot inject markup into the page (310.58105ms)
✔ a mutation without the htmx header is refused (324.051861ms)
✔ the sign in form is centred rather than stranded at the left edge (245.188136ms)
✔ row actions stay ordinary table cells, so rows keep one height (307.67917ms)
✔ the stylesheet and htmx are served, and nothing else is (277.641857ms)
✔ the project page shows retention, with server defaults as placeholders (345.910002ms)
✔ saving retention through the form stores it, and empty means inherit (332.782955ms)
✔ a negative retention value is refused by the form (307.117419ms)
✔ the project page offers a working directory, defaulting to the server one (339.990949ms)
✔ saving a working directory stores it, and empty clears it (400.236183ms)
✔ an unusable working directory is refused by the form (263.535905ms)
✔ worker config loads from json and reports features (27.679789ms)
✔ worker config reads the token from a file (5.042997ms)
✔ environment overrides the worker config file (3.817032ms)
✔ worker config without a token is rejected (4.91472ms)
✔ a malformed feature is reported with its path (4.032348ms)
✔ shell quoting survives quotes and metacharacters (0.469194ms)
✔ a generated script echoes each command and stops on failure (0.746615ms)
✔ container names are valid for docker and stay unique (1.557397ms)
✔ job arguments carry mounts, env, network and privilege (0.980514ms)
✔ a task container is created without sharing anything with the worker (0.812413ms)
✔ a feature still contributes its bind mounts (0.356686ms)
✔ features resolve into mounts, env and privilege (0.835275ms)
✔ an unknown required feature is reported rather than ignored (0.384359ms)
✔ an artifact pattern reduces to the part that can be copied out (0.64885ms)
✔ overlapping artifact paths are copied out once (0.560506ms)
✔ artifact collection globs, and refuses to leave the workspace (31.939541ms)
✔ artifact when controls collection (0.581317ms)
✔ an idle worker keeps running instead of exiting (4010.092895ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1524.798041ms)
✔ log output is batched and offsets advance (4.523025ms)
✔ a conflicting offset resynchronises instead of duplicating (1.475599ms)
✔ secrets are masked before anything leaves the host (1.987491ms)
✔ a secret split across two writes is still masked (1.176789ms)
✔ a failing conductor does not break the task (1.682245ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15491.846833
[conductor] done