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 16e4ff6c128f attempt 1
[conductor] image node:24-alpine
$ apk add --no-cache git
( 1/12) Installing brotli-libs (1.2.0-r1)
( 2/12) Installing c-ares (1.34.8-r0)
( 3/12) Installing libunistring (1.4.2-r0)
( 4/12) Installing libidn2 (2.3.8-r0)
( 5/12) Installing nghttp2-libs (1.69.0-r0)
( 6/12) Installing libpsl (0.21.5-r3)
( 7/12) Installing zstd-libs (1.5.7-r2)
( 8/12) Installing libcurl (8.22.0-r0)
( 9/12) Installing libexpat (2.8.4-r0)
(10/12) Installing pcre2 (10.48-r0)
(11/12) Installing git (2.54.0-r0)
(12/12) Installing git-init-template (2.54.0-r0)
Executing busybox-1.37.0-r31.trigger
OK: 23.3 MiB in 30 packages
$ npm install --no-audit --no-fund

added 78 packages in 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.4 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (189.644486ms)
✔ no file uses CRLF line endings or trailing whitespace (105.118669ms)
✔ a password round trips and a wrong one is refused (57.017074ms)
✔ the same password hashes differently each time (35.622486ms)
✔ parameters are read back from the stored hash (30.805263ms)
✔ a malformed stored hash is refused rather than throwing (1.05871ms)
✔ password length is bounded (1.071958ms)
✔ a session token round trips its claims (2.933412ms)
✔ a token signed with another secret is refused (0.804385ms)
✔ a tampered payload is refused (0.694579ms)
✔ an expired token is refused (1.423499ms)
✔ a malformed token is refused rather than throwing (0.836997ms)
✔ cookies are parsed and issued (4.683603ms)
✔ the oidc login state round trips with its return path (2.025513ms)
✔ a missing return path means the root (0.542769ms)
✔ the oidc login state is refused when forged, stale or off-site (0.760917ms)
✔ oidc roles are collected from the usual claim shapes (1.164936ms)
✔ mask replaces secrets, longest first (0.643087ms)
✔ mask ignores very short values and leaves clean output alone (0.31584ms)
✔ health reports the selected drivers (450.190366ms)
✔ a signed trigger creates a job and expands the pipeline (225.773998ms)
✔ an unsigned or wrongly signed trigger is refused (105.392618ms)
✔ github and gitlab push payloads are understood (305.457944ms)
✔ a branch deletion is ignored rather than failing (83.14355ms)
✔ a broken pipeline is reported as a client error with detail (216.898692ms)
✔ a missing pipeline file is reported clearly (210.565433ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (228.019738ms)
✔ a project pointed at a specific file gets no fallback (206.253238ms)
✔ a repository carrying both spellings is refused rather than guessed at (266.406621ms)
✔ a pipeline still using the jobs key is told what it was renamed to (214.1182ms)
✔ a job can be created directly, without a push payload to imitate (236.726444ms)
✔ creating a job requires the same signature as a trigger (102.246396ms)
✔ creating a job insists on a real commit rather than inferring one (129.735756ms)
✔ a job can be read back, with the state of every task (214.470353ms)
✔ a public job is readable without any credential at all (194.247683ms)
✔ a private job needs the trigger secret, and is otherwise absent (200.195558ms)
✔ a job of another project cannot be read through this one (226.160538ms)
✔ a task can be read back on its own, and by its full name (263.092322ms)
✔ reading a task back carries its dependencies and matrix (243.501606ms)
✔ reading a task back never exposes its environment, services or script (249.384847ms)
✔ a task lists the artifacts it stored, with a usable download url (287.792348ms)
✔ reading a task back needs no worker token (204.632757ms)
✔ a private task is absent without a credential, and needs its project named (229.842561ms)
✔ a private task is readable by an administrator, by either path (409.208138ms)
✔ a task of another project cannot be read through this one (233.158562ms)
✔ an unknown task is 404 by either path (144.356883ms)
✔ the worker api rejects missing and invalid tokens (124.273432ms)
✔ independent tasks dispatch concurrently (229.545557ms)
✔ a task is only offered to a worker that satisfies its requires (260.825588ms)
✔ a worker is not offered work for an architecture it cannot build (235.751261ms)
✔ a claimed task carries everything the worker needs (272.733727ms)
✔ a task that requires a feature reports it to the worker (271.512364ms)
✔ the standard conductor variables are present in the task environment (228.441015ms)
✔ the source tarball is served from the mirror (231.400013ms)
✔ a worker cannot touch a task it does not hold (257.992376ms)
✔ log appends are resumable and deduplicated by offset (266.930888ms)
✔ an oversized log chunk is refused (234.800532ms)
✔ a finished log moves to storage and is still readable (219.15801ms)
✔ artifacts are stored, hashed, and stripped of traversal (256.96786ms)
✔ an artifact shorter than its content-length is rejected (255.970695ms)
✔ success releases dependents, matched on shared dimensions (259.073256ms)
✔ failure skips transitive dependents, not just direct ones (252.282376ms)
✔ a job settles as failed once every task is terminal (277.087531ms)
✔ a job settles as success when everything passes (226.866158ms)
✔ an allowed failure does not fail the job or block dependents (252.014088ms)
✔ a task with retries left is requeued instead of failing the job (236.54462ms)
✔ heartbeats keep a task alive and report cancellation (225.631448ms)
✔ the reaper fails a task whose worker stopped reporting (248.840493ms)
✔ a second push produces an independent, numbered job (422.265194ms)
﹣ jobs can be listed and filtered by project (0.803315ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.250841ms) # the JSON API was removed
✔ a disabled project refuses triggers (126.023445ms)
✔ a trigger for an unknown project is a 404 (108.79745ms)
✔ a commit that is not in the repository is refused (222.363262ms)
✔ a task is told to fetch an archive, and never the repository itself (244.006027ms)
✔ the source archive is the bare tree, with no wrapping directory (266.369745ms)
✔ the working directory is resolved from the pipeline, then the project (748.440598ms)
✔ an unusable working directory is refused rather than sanitised (953.113318ms)
✔ the trigger secret is not stored in the clear (155.037855ms)
✔ worker tokens are stored only as hashes (124.958562ms)
✔ defaults select sqlite, local storage and local auth (8.277389ms)
✔ configuring an s3 bucket switches the storage driver (1.723767ms)
✔ a partial s3 configuration is rejected rather than half applied (2.304499ms)
✔ configuring an oidc discovery url switches the auth mode (1.673754ms)
✔ an oidc discovery url without a client id is rejected (1.349161ms)
✔ a database url selects its dialect (2.756116ms)
✔ an unsupported database scheme is reported clearly (1.69539ms)
✔ a sqlite url collapses into database.path (3.393798ms)
✔ environment variables override the config file (59.062122ms)
✔ relative paths resolve against the config file directory (9.527503ms)
✔ a missing explicit config file is an error, a missing default is not (3.638543ms)
✔ a heartbeat timeout below the reap interval is rejected (9.668561ms)
✔ a non-integer port is rejected with the variable named (1.413242ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.735052ms)
✔ stateDirs omits the storage directory when s3 is in use (2.599282ms)
✔ the loaded config is frozen (1.231444ms)
✔ topological order places dependencies first (4.66691ms)
✔ topological order is deterministic (5.967011ms)
✔ a cycle is detected and named (2.019531ms)
✔ depth reflects the longest path, not insertion order (0.866645ms)
✔ independent tasks are runnable at the same time (1.025705ms)
✔ a task becomes runnable only once every dependency succeeds (0.796978ms)
✔ a running dependency does not release its dependents (0.807673ms)
✔ failure skips transitive dependents, not just direct ones (1.126555ms)
✔ a skipped dependency never releases a dependent (1.766893ms)
✔ allowed failures can satisfy a dependency when asked to (0.954992ms)
✔ transitive dependents of a leaf is empty (0.598504ms)
✔ graph helpers tolerate dependencies outside the set (0.979864ms)
✔ dialect detection covers every supported scheme (4.954245ms)
✔ statement splitter respects literals and comments (1.455432ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.619024ms)
✔ migrations apply once and are idempotent (114.274435ms)
✔ an edited migration is refused rather than silently diverging (50.260868ms)
✔ a migration removed from disk is reported (33.82919ms)
✔ rows come back as ordinary objects (47.113452ms)
✔ a conditional update claims exactly once (32.446021ms)
✔ deleting a job cascades to its tasks (37.824926ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (39.729707ms)
﹣ migrations apply and retention sweeps on postgres (6.005997ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.391884ms) # SKIP
✔ every example pipeline compiles (105.343151ms)
✔ the distribution example fans in per architecture (14.973103ms)
✔ the node example wires services and features (15.502802ms)
✔ git jobs with safe.directory set (4.794467ms)
✔ it appends to configuration already in the environment (0.500763ms)
✔ a count that is not a number does not corrupt the sequence (0.568201ms)
✔ git accepts the environment we build (68.927856ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (65.314711ms)
﹣ the endpoints and key set come from the discovery document (1.792933ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (36.041111ms)
✔ discovery reports an unreachable provider and a bad status (1.24443ms)
﹣ a token carrying the admin role authenticates as an administrator (0.298854ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.23118ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.213069ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.290325ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.79531ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (1.207451ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (1.010002ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.185507ms) # the JSON API was removed
﹣ a forged signature is refused (1.69496ms) # the JSON API was removed
﹣ an expired token is refused (0.256914ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.297191ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.641108ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.197834ms) # docker is not available
﹣ a callback with a forged state is refused (0.159991ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.230673ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.144198ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.137811ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.493126ms)
✔ a star matches any job of characters (1.044431ms)
✔ the rest of a pattern is literal, not a regular expression (0.732736ms)
✔ a restricted task is left out of jobs for other refs (54.104419ms)
✔ it is left out rather than recorded as skipped (6.726546ms)
✔ tasks depending on an excluded task are excluded too (10.848054ms)
✔ depth and ordering describe the job that will happen (7.923669ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (6.674892ms)
✔ a restricted task cannot match a job that has no ref (7.135153ms)
✔ a malformed rule is reported rather than ignored (18.478881ms)
✔ the rule is not inherited from defaults (6.186498ms)
✔ a minimal pipeline compiles (40.385173ms)
✔ version is required and pinned (10.982931ms)
✔ empty and malformed documents are rejected clearly (5.264028ms)
✔ image and script are required (1.557175ms)
✔ image may come from defaults (2.516983ms)
✔ unknown keys are rejected, with a suggestion when close (5.888531ms)
✔ all problems are reported at once (2.935365ms)
✔ durations accept seconds, units and composites (5.333737ms)
✔ durations accept day and week units (3.602948ms)
✔ a malformed duration is rejected (3.758261ms)
✔ arch expands into one task per architecture (3.866739ms)
✔ a matrix expands to the cartesian product (3.432156ms)
✔ needs match on shared dimensions rather than fanning out (11.671343ms)
✔ a task without the shared dimension depends on every instance (3.886746ms)
✔ match all opts out of dimension matching (5.550949ms)
✔ needs may name one concrete instance (3.371899ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (4.129149ms)
✔ needs on an unknown task lists what is defined (1.41071ms)
✔ self dependency is rejected (3.419712ms)
✔ a dependency cycle names the cycle (5.159867ms)
✔ interpolation substitutes arch and matrix values (2.452937ms)
✔ interpolating an undefined dimension is an error (4.55237ms)
✔ referring to arch without declaring one is an error (1.156551ms)
✔ matrix values must be safe for use in a task name (1.319857ms)
✔ arch may not also be a matrix dimension (1.270402ms)
✔ services get a derived alias and reject duplicates (7.094155ms)
✔ artifacts accept a bare list and reject absolute paths (2.184014ms)
✔ artifact when is constrained (0.819361ms)
✔ defaults are inherited and overridden per task (1.328762ms)
✔ env values must be scalars with valid names (1.497884ms)
✔ parsePipeline normalizes without expanding (1.09626ms)
✔ a realistic distribution pipeline produces the expected graph (3.140659ms)
✔ compiles markers to the placeholder each dialect expects (9.670613ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.480575ms)
✔ ignores markers inside string literals and comments (0.716314ms)
✔ a json literal in default text survives untouched (0.450258ms)
✔ doubling a brace escapes it (0.481727ms)
✔ block comments are skipped, and nest only for postgres (0.76012ms)
✔ postgres dollar quoted bodies are skipped (0.576089ms)
✔ mysql backtick identifiers and hash comments are skipped (1.454476ms)
✔ a malformed marker is rejected with a useful message (1.797936ms)
✔ binds by name, resolving dotted paths (3.087769ms)
✔ an exact key beats path traversal (0.873766ms)
✔ reports every missing key at once (0.537704ms)
✔ rejects an array of parameters, which would silently bind by position (2.467027ms)
✔ normalizes booleans, dates and null (0.413449ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.477837ms)
✔ an artifact past its own deadline is deleted (390.904062ms)
✔ an explicit deadline overrides the policy in both directions (202.490841ms)
✔ an explicit deadline also beats the last good job (111.802314ms)
✔ the last few jobs keep their artifacts however old they are (104.080373ms)
✔ recent artifacts are kept however many jobs have followed (93.985674ms)
✔ an artifact outside both rules is deleted (91.150649ms)
✔ the most recent successful job is kept whatever the policy says (87.113772ms)
✔ only the latest success is protected, not every success (94.994401ms)
✔ a project may keep artifacts forever despite a server default (70.348968ms)
✔ a project setting overrides the server default (97.043141ms)
✔ an unfinished job is never swept (115.074124ms)
✔ logs older than the limit are removed but the task remains (127.310609ms)
✔ a swept log is distinguishable from one that never existed (95.054494ms)
✔ a log is swept only once (93.01675ms)
✔ zero keeps logs forever (85.952559ms)
✔ a storage failure leaves the row for the next pass (99.487786ms)
✔ a sweep deletes no more than its batch (135.565332ms)
✔ one project policy does not reach into another (96.08048ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (250.643322ms)
﹣ the api reports and accepts project retention (0.411276ms) # the JSON API was removed
✔ seals and opens a value (5.763796ms)
✔ sealing twice produces different ciphertext (1.46651ms)
✔ without a key, values are stored as marked plaintext (0.673098ms)
✔ a keyed box can still read values written before a key existed (0.527837ms)
✔ an unkeyed box refuses encrypted values with an actionable message (6.384956ms)
✔ the wrong key fails to open (1.23167ms)
✔ tampering with the ciphertext is detected (1.747514ms)
✔ associated data binds a secret to its location (2.445148ms)
✔ a key of the wrong size is refused at construction (1.698715ms)
✔ task ids are opaque, and say nothing about their job (10.750147ms)
✔ time ordered ids sort by creation time (0.48013ms)
✔ random ids use the expected alphabet (0.401808ms)
✔ slugify produces readable project ids and falls back when empty (0.706316ms)
✔ token hashing and constant time comparison (2.825886ms)
✔ the pipeline this project jobs on itself compiles (59.283009ms)
✔ its tasks declare the features they actually need (16.987638ms)
✔ publishing is restricted to main and release tags (56.198794ms)
✔ get-vanilla matches the reference signature (6.381936ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.824797ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.503985ms)
✔ amzDate produces both required formats (0.76231ms)
✔ s3 requests carry the content hash header (1.349494ms)
✔ presigned urls carry the signature in the query string (5.233416ms)
✔ an already encoded path is not encoded a second time (1.591617ms)
✔ key validation rejects traversal and absolute paths (3.420545ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.559799ms)
✔ key layout is stable (0.668571ms)
✔ local backend round trips a buffer and reports its digest (29.417901ms)
✔ local backend serves ranges (7.17461ms)
✔ local backend accepts a stream (12.006239ms)
✔ local backend reports a missing object and deletes idempotently (4.613854ms)
✔ local backend has no presigned urls (9.657702ms)
✔ a partial write leaves no object behind (5.925323ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.976568ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.350082ms)
✔ inParts handles a chunk far larger than the part size (1.268908ms)
✔ inParts yields nothing for an empty stream (0.818995ms)
﹣ s3 backend round trips awkward keys against a real server (0.210859ms) # docker is not available
﹣ s3 serves byte ranges (0.145914ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.130368ms) # docker is not available
﹣ a presigned url is usable without credentials (0.219714ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.131725ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.131042ms) # docker is not available
﹣ a stream of unknown length is accepted (0.109393ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.114622ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.111209ms) # docker is not available
﹣ a multipart object still serves ranges (0.111155ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.107606ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.105625ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.099858ms) # docker is not available
✔ every javascript file parses (951.198401ms)
✔ the shell scripts parse (3.138884ms)
✔ interpolated values are escaped by default (2.636275ms)
✔ quotes and ampersands are escaped inside attributes (0.401537ms)
✔ nested templates and arrays are kept, raw is passed through (0.422721ms)
✔ null, undefined and false render as nothing (0.294659ms)
✔ attrs omits absent values and renders bare booleans (0.532646ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (505.940538ms)
✔ an anonymous visitor cannot see a private job (274.886823ms)
✔ management pages redirect an anonymous visitor to sign in (174.44291ms)
✔ signing in through the form sets a session and reveals the nav (435.469468ms)
✔ a user creates a project through the form and is shown the secret once (340.470384ms)
✔ a project page shows variables and never their values (328.229152ms)
✔ setting and removing a variable returns the updated table (277.505932ms)
✔ a user cannot open or delete a project they do not own (582.296205ms)
✔ registering a worker shows the token once and lists it (284.485145ms)
✔ an ordinary user cannot create shared capacity from the form (493.217394ms)
✔ the users page is administrator only and warns about what deletion destroys (546.946828ms)
✔ a running job polls, and a finished one stops (420.222325ms)
✔ a task page streams the log and stops polling once it completes (385.907584ms)
✔ log output is escaped, so a task cannot inject markup into the page (345.746249ms)
✔ a mutation without the htmx header is refused (342.27323ms)
✔ the sign in form is centred rather than stranded at the left edge (229.834448ms)
✔ row actions stay ordinary table cells, so rows keep one height (386.805494ms)
✔ the stylesheet and htmx are served, and nothing else is (236.66668ms)
✔ the project page shows retention, with server defaults as placeholders (333.542052ms)
✔ saving retention through the form stores it, and empty means inherit (381.340887ms)
✔ a negative retention value is refused by the form (245.70972ms)
✔ the project page offers a working directory, defaulting to the server one (353.54976ms)
✔ saving a working directory stores it, and empty clears it (316.596034ms)
✔ an unusable working directory is refused by the form (342.439804ms)
✔ worker config loads from json and reports features (28.870026ms)
✔ worker config reads the token from a file (5.578943ms)
✔ environment overrides the worker config file (6.667899ms)
✔ worker config without a token is rejected (6.905086ms)
✔ a malformed feature is reported with its path (4.156646ms)
✔ shell quoting survives quotes and metacharacters (0.715504ms)
✔ a generated script echoes each command and stops on failure (0.952895ms)
✔ container names are valid for docker and stay unique (2.484334ms)
✔ job arguments carry mounts, env, network and privilege (1.408391ms)
✔ a task container is created without sharing anything with the worker (1.310442ms)
✔ a feature still contributes its bind mounts (0.595597ms)
✔ features resolve into mounts, env and privilege (0.781794ms)
✔ an unknown required feature is reported rather than ignored (0.322416ms)
✔ an artifact pattern reduces to the part that can be copied out (0.716577ms)
✔ overlapping artifact paths are copied out once (0.88432ms)
✔ artifact collection globs, and refuses to leave the workspace (31.063294ms)
✔ artifact when controls collection (0.620756ms)
✔ an idle worker keeps running instead of exiting (4016.190405ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1518.986048ms)
✔ log output is batched and offsets advance (2.876589ms)
✔ a conflicting offset resynchronises instead of duplicating (0.78004ms)
✔ secrets are masked before anything leaves the host (1.253801ms)
✔ a secret split across two writes is still masked (0.533709ms)
✔ a failing conductor does not break the task (0.90766ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15389.882611
[conductor] done