conductor

sign in

test

statesuccess
jobback to job
imagenode:24-alpine
arch-
attempt1 of 1
workerconductor-worker-aarch64
duration27s

log

[conductor] task test on conductor-worker-aarch64
[conductor] commit dc8b1e4df215 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: 24.0 MiB in 30 packages
$ npm install --no-audit --no-fund

added 78 packages in 3s
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 (260.97199ms)
✔ no file uses CRLF line endings or trailing whitespace (109.79529ms)
✔ a password round trips and a wrong one is refused (81.81465ms)
✔ the same password hashes differently each time (12.34446ms)
✔ parameters are read back from the stored hash (13.9286ms)
✔ a malformed stored hash is refused rather than throwing (0.58338ms)
✔ password length is bounded (0.66114ms)
✔ a session token round trips its claims (2.18977ms)
✔ a token signed with another secret is refused (0.77142ms)
✔ a tampered payload is refused (0.39148ms)
✔ an expired token is refused (0.70946ms)
✔ a malformed token is refused rather than throwing (0.50087ms)
✔ cookies are parsed and issued (2.06516ms)
✔ the oidc login state round trips with its return path (1.04768ms)
✔ a missing return path means the root (0.2832ms)
✔ the oidc login state is refused when forged, stale or off-site (0.41085ms)
✔ oidc roles are collected from the usual claim shapes (0.60613ms)
✔ mask replaces secrets, longest first (0.3247ms)
✔ mask ignores very short values and leaves clean output alone (0.20642ms)
✔ health reports the selected drivers (310.88607ms)
✔ a signed trigger creates a job and expands the pipeline (221.72465ms)
✔ an unsigned or wrongly signed trigger is refused (136.14078ms)
✔ github and gitlab push payloads are understood (277.83374ms)
✔ a branch deletion is ignored rather than failing (132.05343ms)
✔ a broken pipeline is reported as a client error with detail (186.76529ms)
✔ a missing pipeline file is reported clearly (240.27547ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (213.02907ms)
✔ a project pointed at a specific file gets no fallback (224.37386ms)
✔ a repository carrying both spellings is refused rather than guessed at (287.99025ms)
✔ a pipeline still using the jobs key is told what it was renamed to (283.78628ms)
✔ a job can be created directly, without a push payload to imitate (250.08917ms)
✔ creating a job requires the same signature as a trigger (133.52833ms)
✔ creating a job insists on a real commit rather than inferring one (168.2978ms)
✔ a job can be read back, with the state of every task (237.86091ms)
✔ a public job is readable without any credential at all (278.48299ms)
✔ a private job needs the trigger secret, and is otherwise absent (287.64232ms)
✔ a job of another project cannot be read through this one (235.66348ms)
✔ a task can be read back on its own, and by its full name (289.19022ms)
✔ reading a task back carries its dependencies and matrix (230.46445ms)
✔ reading a task back never exposes its environment, services or script (287.71261ms)
✔ a task lists the artifacts it stored, with a usable download url (242.17935ms)
✔ reading a task back needs no worker token (223.97427ms)
✔ a private task is absent without a credential, and needs its project named (268.48632ms)
✔ a private task is readable by an administrator, by either path (533.44478ms)
✔ a task of another project cannot be read through this one (476.09183ms)
✔ an unknown task is 404 by either path (134.03239ms)
✔ the worker api rejects missing and invalid tokens (164.2445ms)
✔ independent tasks dispatch concurrently (371.00533ms)
✔ a task is only offered to a worker that satisfies its requires (303.27499ms)
✔ a worker is not offered work for an architecture it cannot build (395.32618ms)
✔ a claimed task carries everything the worker needs (408.98295ms)
✔ a task that requires a feature reports it to the worker (448.40276ms)
✔ the standard conductor variables are present in the task environment (268.22696ms)
✔ the source tarball is served from the mirror (331.85924ms)
✔ a worker cannot touch a task it does not hold (269.57432ms)
✔ log appends are resumable and deduplicated by offset (386.57502ms)
✔ an oversized log chunk is refused (284.95414ms)
✔ a finished log moves to storage and is still readable (314.82447ms)
✔ artifacts are stored, hashed, and stripped of traversal (257.02368ms)
✔ an artifact shorter than its content-length is rejected (311.71235ms)
✔ success releases dependents, matched on shared dimensions (317.32983ms)
✔ failure skips transitive dependents, not just direct ones (264.17997ms)
✔ a job settles as failed once every task is terminal (302.00368ms)
✔ a job settles as success when everything passes (316.42364ms)
✔ an allowed failure does not fail the job or block dependents (282.11857ms)
✔ a task with retries left is requeued instead of failing the job (386.15429ms)
✔ heartbeats keep a task alive and report cancellation (305.99262ms)
✔ the reaper fails a task whose worker stopped reporting (394.75897ms)
✔ a second push produces an independent, numbered job (555.52072ms)
﹣ jobs can be listed and filtered by project (1.10851ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.42061ms) # the JSON API was removed
✔ a disabled project refuses triggers (129.00413ms)
✔ a trigger for an unknown project is a 404 (162.4748ms)
✔ a commit that is not in the repository is refused (266.13293ms)
✔ a task is told to fetch an archive, and never the repository itself (284.71955ms)
✔ the source archive is the bare tree, with no wrapping directory (338.5466ms)
✔ the working directory is resolved from the pipeline, then the project (1234.42807ms)
✔ an unusable working directory is refused rather than sanitised (1211.56109ms)
✔ the trigger secret is not stored in the clear (154.69527ms)
✔ worker tokens are stored only as hashes (121.94257ms)
✔ defaults select sqlite, local storage and local auth (21.32016ms)
✔ configuring an s3 bucket switches the storage driver (4.3558ms)
✔ a partial s3 configuration is rejected rather than half applied (5.60778ms)
✔ configuring an oidc discovery url switches the auth mode (3.61411ms)
✔ an oidc discovery url without a client id is rejected (4.77826ms)
✔ a database url selects its dialect (9.09601ms)
✔ an unsupported database scheme is reported clearly (3.53521ms)
✔ a sqlite url collapses into database.path (6.50588ms)
✔ environment variables override the config file (162.3475ms)
✔ relative paths resolve against the config file directory (12.08464ms)
✔ a missing explicit config file is an error, a missing default is not (2.63749ms)
✔ a heartbeat timeout below the reap interval is rejected (10.52198ms)
✔ a non-integer port is rejected with the variable named (4.60184ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (14.29493ms)
✔ stateDirs omits the storage directory when s3 is in use (19.4408ms)
✔ the loaded config is frozen (9.04596ms)
✔ topological order places dependencies first (3.64408ms)
✔ topological order is deterministic (3.02403ms)
✔ a cycle is detected and named (1.33711ms)
✔ depth reflects the longest path, not insertion order (0.63295ms)
✔ independent tasks are runnable at the same time (0.70076ms)
✔ a task becomes runnable only once every dependency succeeds (0.56132ms)
✔ a running dependency does not release its dependents (0.41853ms)
✔ failure skips transitive dependents, not just direct ones (0.60955ms)
✔ a skipped dependency never releases a dependent (0.62627ms)
✔ allowed failures can satisfy a dependency when asked to (0.58584ms)
✔ transitive dependents of a leaf is empty (0.37123ms)
✔ graph helpers tolerate dependencies outside the set (0.45021ms)
✔ dialect detection covers every supported scheme (3.05821ms)
✔ statement splitter respects literals and comments (0.86658ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.36169ms)
✔ migrations apply once and are idempotent (70.24905ms)
✔ an edited migration is refused rather than silently diverging (30.51366ms)
✔ a migration removed from disk is reported (16.61896ms)
✔ rows come back as ordinary objects (19.25692ms)
✔ a conditional update claims exactly once (20.60176ms)
✔ deleting a job cascades to its tasks (33.18495ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (22.3455ms)
﹣ migrations apply and retention sweeps on postgres (2.04168ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.16596ms) # SKIP
✔ every example pipeline compiles (49.55749ms)
✔ the distribution example fans in per architecture (11.06885ms)
✔ the node example wires services and features (5.25446ms)
✔ git jobs with safe.directory set (3.19304ms)
✔ it appends to configuration already in the environment (0.43629ms)
✔ a count that is not a number does not corrupt the sequence (0.3858ms)
✔ git accepts the environment we build (60.28398ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (70.80635ms)
﹣ the endpoints and key set come from the discovery document (2.24724ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (33.05171ms)
✔ discovery reports an unreachable provider and a bad status (1.4738ms)
﹣ a token carrying the admin role authenticates as an administrator (0.31455ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.25615ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.22507ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.30732ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.2847ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.34713ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.36739ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.20508ms) # the JSON API was removed
﹣ a forged signature is refused (0.88571ms) # the JSON API was removed
﹣ an expired token is refused (0.52652ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.7222ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.27215ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.25237ms) # docker is not available
﹣ a callback with a forged state is refused (3.23916ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.1694ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.14379ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.12099ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.36805ms)
✔ a star matches any job of characters (0.59938ms)
✔ the rest of a pattern is literal, not a regular expression (0.27196ms)
✔ a restricted task is left out of jobs for other refs (25.12342ms)
✔ it is left out rather than recorded as skipped (2.65229ms)
✔ tasks depending on an excluded task are excluded too (2.398ms)
✔ depth and ordering describe the job that will happen (2.29444ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (3.24778ms)
✔ a restricted task cannot match a job that has no ref (3.99314ms)
✔ a malformed rule is reported rather than ignored (9.78795ms)
✔ the rule is not inherited from defaults (1.86239ms)
✔ a minimal pipeline compiles (18.54389ms)
✔ version is required and pinned (4.36784ms)
✔ empty and malformed documents are rejected clearly (3.54614ms)
✔ image and script are required (0.72138ms)
✔ image may come from defaults (1.0873ms)
✔ unknown keys are rejected, with a suggestion when close (3.56695ms)
✔ all problems are reported at once (1.50165ms)
✔ durations accept seconds, units and composites (2.60333ms)
✔ durations accept day and week units (1.98534ms)
✔ a malformed duration is rejected (1.12429ms)
✔ arch expands into one task per architecture (1.56754ms)
✔ a matrix expands to the cartesian product (1.70674ms)
✔ needs match on shared dimensions rather than fanning out (7.62818ms)
✔ a task without the shared dimension depends on every instance (0.96058ms)
✔ match all opts out of dimension matching (1.18691ms)
✔ needs may name one concrete instance (5.94885ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.05695ms)
✔ needs on an unknown task lists what is defined (0.73137ms)
✔ self dependency is rejected (1.41002ms)
✔ a dependency cycle names the cycle (1.86082ms)
✔ interpolation substitutes arch and matrix values (2.80279ms)
✔ interpolating an undefined dimension is an error (1.03279ms)
✔ referring to arch without declaring one is an error (1.48849ms)
✔ matrix values must be safe for use in a task name (0.63352ms)
✔ arch may not also be a matrix dimension (0.58686ms)
✔ services get a derived alias and reject duplicates (5.52232ms)
✔ artifacts accept a bare list and reject absolute paths (2.29656ms)
✔ artifact when is constrained (0.56334ms)
✔ defaults are inherited and overridden per task (0.91496ms)
✔ env values must be scalars with valid names (0.81024ms)
✔ parsePipeline normalizes without expanding (0.65803ms)
✔ a realistic distribution pipeline produces the expected graph (2.44484ms)
✔ compiles markers to the placeholder each dialect expects (6.57474ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.2955ms)
✔ ignores markers inside string literals and comments (0.47996ms)
✔ a json literal in default text survives untouched (0.27279ms)
✔ doubling a brace escapes it (0.81487ms)
✔ block comments are skipped, and nest only for postgres (0.33586ms)
✔ postgres dollar quoted bodies are skipped (0.32824ms)
✔ mysql backtick identifiers and hash comments are skipped (0.71981ms)
✔ a malformed marker is rejected with a useful message (0.94285ms)
✔ binds by name, resolving dotted paths (0.87534ms)
✔ an exact key beats path traversal (0.35896ms)
✔ reports every missing key at once (0.55017ms)
✔ rejects an array of parameters, which would silently bind by position (0.61109ms)
✔ normalizes booleans, dates and null (0.38076ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.65933ms)
✔ an artifact past its own deadline is deleted (281.48027ms)
✔ an explicit deadline overrides the policy in both directions (212.24029ms)
✔ an explicit deadline also beats the last good job (137.09728ms)
✔ the last few jobs keep their artifacts however old they are (137.70002ms)
✔ recent artifacts are kept however many jobs have followed (148.50691ms)
✔ an artifact outside both rules is deleted (125.28355ms)
✔ the most recent successful job is kept whatever the policy says (101.24812ms)
✔ only the latest success is protected, not every success (128.51865ms)
✔ a project may keep artifacts forever despite a server default (142.68852ms)
✔ a project setting overrides the server default (130.26192ms)
✔ an unfinished job is never swept (110.22577ms)
✔ logs older than the limit are removed but the task remains (127.4907ms)
✔ a swept log is distinguishable from one that never existed (168.69738ms)
✔ a log is swept only once (136.94559ms)
✔ zero keeps logs forever (132.62437ms)
✔ a storage failure leaves the row for the next pass (140.90919ms)
✔ a sweep deletes no more than its batch (113.57449ms)
✔ one project policy does not reach into another (87.51796ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (282.67071ms)
﹣ the api reports and accepts project retention (0.28899ms) # the JSON API was removed
✔ seals and opens a value (4.95545ms)
✔ sealing twice produces different ciphertext (0.88927ms)
✔ without a key, values are stored as marked plaintext (0.43862ms)
✔ a keyed box can still read values written before a key existed (0.32572ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.21549ms)
✔ the wrong key fails to open (0.67366ms)
✔ tampering with the ciphertext is detected (0.61261ms)
✔ associated data binds a secret to its location (0.93827ms)
✔ a key of the wrong size is refused at construction (0.56576ms)
✔ task ids are opaque, and say nothing about their job (7.47673ms)
✔ time ordered ids sort by creation time (0.39059ms)
✔ random ids use the expected alphabet (0.29001ms)
✔ slugify produces readable project ids and falls back when empty (0.43874ms)
✔ token hashing and constant time comparison (1.24399ms)
✔ the pipeline this project jobs on itself compiles (79.37832ms)
✔ its tasks declare the features they actually need (8.8996ms)
✔ publishing is restricted to main and release tags (72.54914ms)
✔ get-vanilla matches the reference signature (4.70158ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.67208ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.36756ms)
✔ amzDate produces both required formats (0.38311ms)
✔ s3 requests carry the content hash header (1.21986ms)
✔ presigned urls carry the signature in the query string (3.29286ms)
✔ an already encoded path is not encoded a second time (1.05769ms)
✔ key validation rejects traversal and absolute paths (2.64155ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.5215ms)
✔ key layout is stable (0.65357ms)
✔ local backend round trips a buffer and reports its digest (49.49968ms)
✔ local backend serves ranges (11.71944ms)
✔ local backend accepts a stream (13.83663ms)
✔ local backend reports a missing object and deletes idempotently (5.27314ms)
✔ local backend has no presigned urls (17.10352ms)
✔ a partial write leaves no object behind (17.73141ms)
✔ part size grows so that a huge object still fits in 10000 parts (2.40058ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (9.94849ms)
✔ inParts handles a chunk far larger than the part size (3.74072ms)
✔ inParts yields nothing for an empty stream (2.84955ms)
﹣ s3 backend round trips awkward keys against a real server (0.61381ms) # docker is not available
﹣ s3 serves byte ranges (0.45442ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.4416ms) # docker is not available
﹣ a presigned url is usable without credentials (0.66508ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.43774ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (1.40664ms) # docker is not available
﹣ a stream of unknown length is accepted (0.4331ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.42003ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.42457ms) # docker is not available
﹣ a multipart object still serves ranges (0.41857ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.40919ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.40976ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.41104ms) # docker is not available
✔ every javascript file parses (933.79256ms)
✔ the shell scripts parse (5.84517ms)
✔ interpolated values are escaped by default (3.5896ms)
✔ quotes and ampersands are escaped inside attributes (1.59266ms)
✔ nested templates and arrays are kept, raw is passed through (0.34408ms)
✔ null, undefined and false render as nothing (0.26818ms)
✔ attrs omits absent values and renders bare booleans (0.57655ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (461.32722ms)
✔ an anonymous visitor cannot see a private job (305.60207ms)
✔ management pages redirect an anonymous visitor to sign in (131.46459ms)
✔ signing in through the form sets a session and reveals the nav (260.51194ms)
✔ a user creates a project through the form and is shown the secret once (170.55635ms)
✔ a project page shows variables and never their values (259.73374ms)
✔ setting and removing a variable returns the updated table (238.65755ms)
✔ a user cannot open or delete a project they do not own (271.34253ms)
✔ registering a worker shows the token once and lists it (201.67914ms)
✔ an ordinary user cannot create shared capacity from the form (332.84943ms)
✔ the users page is administrator only and warns about what deletion destroys (306.68793ms)
✔ a running job polls, and a finished one stops (276.5472ms)
✔ a task page streams the log and stops polling once it completes (557.89018ms)
✔ log output is escaped, so a task cannot inject markup into the page (441.51077ms)
✔ a mutation without the htmx header is refused (356.57975ms)
✔ the sign in form is centred rather than stranded at the left edge (249.77019ms)
✔ row actions stay ordinary table cells, so rows keep one height (227.24861ms)
✔ the stylesheet and htmx are served, and nothing else is (205.71967ms)
✔ the project page shows retention, with server defaults as placeholders (237.01551ms)
✔ saving retention through the form stores it, and empty means inherit (314.00091ms)
✔ a negative retention value is refused by the form (202.90468ms)
✔ the project page offers a working directory, defaulting to the server one (225.65127ms)
✔ saving a working directory stores it, and empty clears it (338.15583ms)
✔ an unusable working directory is refused by the form (236.53556ms)
✔ worker config loads from json and reports features (116.32873ms)
✔ worker config reads the token from a file (4.63814ms)
✔ environment overrides the worker config file (3.00997ms)
✔ worker config without a token is rejected (4.87841ms)
✔ a malformed feature is reported with its path (4.04647ms)
✔ shell quoting survives quotes and metacharacters (0.49975ms)
✔ a generated script echoes each command and stops on failure (0.64775ms)
✔ container names are valid for docker and stay unique (1.82831ms)
✔ job arguments carry mounts, env, network and privilege (0.82973ms)
✔ a task container is created without sharing anything with the worker (0.70168ms)
✔ a feature still contributes its bind mounts (0.33509ms)
✔ features resolve into mounts, env and privilege (0.57832ms)
✔ an unknown required feature is reported rather than ignored (0.24338ms)
✔ an artifact pattern reduces to the part that can be copied out (2.04831ms)
✔ overlapping artifact paths are copied out once (0.52731ms)
✔ artifact collection globs, and refuses to leave the workspace (47.4401ms)
✔ artifact when controls collection (0.42062ms)
✔ an idle worker keeps running instead of exiting (4012.63874ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1521.62017ms)
✔ log output is batched and offsets advance (2.4833ms)
✔ a conflicting offset resynchronises instead of duplicating (0.76525ms)
✔ secrets are masked before anything leaves the host (1.15903ms)
✔ a secret split across two writes is still masked (0.51789ms)
✔ a failing conductor does not break the task (0.91332ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 18718.60989
[conductor] done