conductor

sign in

integration

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

log

[conductor] task integration on conductor-worker-aarch64
[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: 24.0 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 (209.30548ms)
✔ no file uses CRLF line endings or trailing whitespace (223.76258ms)
✔ a password round trips and a wrong one is refused (19.68844ms)
✔ the same password hashes differently each time (13.20969ms)
✔ parameters are read back from the stored hash (11.60569ms)
✔ a malformed stored hash is refused rather than throwing (0.71364ms)
✔ password length is bounded (0.84851ms)
✔ a session token round trips its claims (2.07509ms)
✔ a token signed with another secret is refused (0.71341ms)
✔ a tampered payload is refused (0.4777ms)
✔ an expired token is refused (0.71784ms)
✔ a malformed token is refused rather than throwing (0.58347ms)
✔ cookies are parsed and issued (2.0926ms)
✔ the oidc login state round trips with its return path (1.53093ms)
✔ a missing return path means the root (0.33123ms)
✔ the oidc login state is refused when forged, stale or off-site (0.95248ms)
✔ oidc roles are collected from the usual claim shapes (1.05984ms)
✔ mask replaces secrets, longest first (0.90654ms)
✔ mask ignores very short values and leaves clean output alone (0.2722ms)
✔ health reports the selected drivers (319.87397ms)
✔ a signed trigger creates a job and expands the pipeline (280.96925ms)
✔ an unsigned or wrongly signed trigger is refused (115.16264ms)
✔ github and gitlab push payloads are understood (313.9955ms)
✔ a branch deletion is ignored rather than failing (89.50279ms)
✔ a broken pipeline is reported as a client error with detail (189.54813ms)
✔ a missing pipeline file is reported clearly (329.47385ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (227.16129ms)
✔ a project pointed at a specific file gets no fallback (254.43362ms)
✔ a repository carrying both spellings is refused rather than guessed at (273.98412ms)
✔ a pipeline still using the jobs key is told what it was renamed to (307.19531ms)
✔ a job can be created directly, without a push payload to imitate (358.89189ms)
✔ creating a job requires the same signature as a trigger (108.31657ms)
✔ creating a job insists on a real commit rather than inferring one (107.43855ms)
✔ a job can be read back, with the state of every task (302.71541ms)
✔ a public job is readable without any credential at all (296.93697ms)
✔ a private job needs the trigger secret, and is otherwise absent (238.42944ms)
✔ a job of another project cannot be read through this one (288.29729ms)
✔ a task can be read back on its own, and by its full name (465.11164ms)
✔ reading a task back carries its dependencies and matrix (315.44909ms)
✔ reading a task back never exposes its environment, services or script (431.55615ms)
✔ a task lists the artifacts it stored, with a usable download url (487.61517ms)
✔ reading a task back needs no worker token (393.10438ms)
✔ a private task is absent without a credential, and needs its project named (304.20549ms)
✔ a private task is readable by an administrator, by either path (520.19348ms)
✔ a task of another project cannot be read through this one (392.92593ms)
✔ an unknown task is 404 by either path (208.83293ms)
✔ the worker api rejects missing and invalid tokens (113.99122ms)
✔ independent tasks dispatch concurrently (232.00277ms)
✔ a task is only offered to a worker that satisfies its requires (300.76844ms)
✔ a worker is not offered work for an architecture it cannot build (374.93982ms)
✔ a claimed task carries everything the worker needs (433.79186ms)
✔ a task that requires a feature reports it to the worker (356.96847ms)
✔ the standard conductor variables are present in the task environment (309.46978ms)
✔ the source tarball is served from the mirror (284.05534ms)
✔ a worker cannot touch a task it does not hold (410.31387ms)
✔ log appends are resumable and deduplicated by offset (316.55456ms)
✔ an oversized log chunk is refused (314.19537ms)
✔ a finished log moves to storage and is still readable (435.6727ms)
✔ artifacts are stored, hashed, and stripped of traversal (356.76518ms)
✔ an artifact shorter than its content-length is rejected (289.32938ms)
✔ success releases dependents, matched on shared dimensions (255.66198ms)
✔ failure skips transitive dependents, not just direct ones (418.7191ms)
✔ a job settles as failed once every task is terminal (467.82546ms)
✔ a job settles as success when everything passes (298.16594ms)
✔ an allowed failure does not fail the job or block dependents (280.59854ms)
✔ a task with retries left is requeued instead of failing the job (280.06043ms)
✔ heartbeats keep a task alive and report cancellation (248.38847ms)
✔ the reaper fails a task whose worker stopped reporting (294.76655ms)
✔ a second push produces an independent, numbered job (555.12641ms)
﹣ jobs can be listed and filtered by project (1.30281ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.34734ms) # the JSON API was removed
✔ a disabled project refuses triggers (181.09904ms)
✔ a trigger for an unknown project is a 404 (131.5538ms)
✔ a commit that is not in the repository is refused (291.18128ms)
✔ a task is told to fetch an archive, and never the repository itself (256.56195ms)
✔ the source archive is the bare tree, with no wrapping directory (306.21018ms)
✔ the working directory is resolved from the pipeline, then the project (1105.67132ms)
✔ an unusable working directory is refused rather than sanitised (1176.86786ms)
✔ the trigger secret is not stored in the clear (193.58297ms)
✔ worker tokens are stored only as hashes (135.54513ms)
✔ defaults select sqlite, local storage and local auth (5.45673ms)
✔ configuring an s3 bucket switches the storage driver (0.76631ms)
✔ a partial s3 configuration is rejected rather than half applied (1.03349ms)
✔ configuring an oidc discovery url switches the auth mode (1.16344ms)
✔ an oidc discovery url without a client id is rejected (0.61344ms)
✔ a database url selects its dialect (1.2247ms)
✔ an unsupported database scheme is reported clearly (0.63321ms)
✔ a sqlite url collapses into database.path (1.74433ms)
✔ environment variables override the config file (32.33529ms)
✔ relative paths resolve against the config file directory (5.39776ms)
✔ a missing explicit config file is an error, a missing default is not (2.0442ms)
✔ a heartbeat timeout below the reap interval is rejected (5.92755ms)
✔ a non-integer port is rejected with the variable named (1.90065ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.52977ms)
✔ stateDirs omits the storage directory when s3 is in use (1.49062ms)
✔ the loaded config is frozen (0.65895ms)
✔ topological order places dependencies first (3.37351ms)
✔ topological order is deterministic (3.26341ms)
✔ a cycle is detected and named (1.23723ms)
✔ depth reflects the longest path, not insertion order (0.79338ms)
✔ independent tasks are runnable at the same time (0.78012ms)
✔ a task becomes runnable only once every dependency succeeds (0.53091ms)
✔ a running dependency does not release its dependents (0.44886ms)
✔ failure skips transitive dependents, not just direct ones (0.72074ms)
✔ a skipped dependency never releases a dependent (1.48667ms)
✔ allowed failures can satisfy a dependency when asked to (0.64851ms)
✔ transitive dependents of a leaf is empty (0.39438ms)
✔ graph helpers tolerate dependencies outside the set (0.50164ms)
✔ dialect detection covers every supported scheme (2.81487ms)
✔ statement splitter respects literals and comments (0.82935ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.34338ms)
✔ migrations apply once and are idempotent (64.20472ms)
✔ an edited migration is refused rather than silently diverging (31.83115ms)
✔ a migration removed from disk is reported (29.89851ms)
✔ rows come back as ordinary objects (27.39913ms)
✔ a conditional update claims exactly once (24.12862ms)
✔ deleting a job cascades to its tasks (24.13925ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (27.8678ms)
﹣ migrations apply and retention sweeps on postgres (1.41797ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.15711ms) # SKIP
✔ every example pipeline compiles (72.05594ms)
✔ the distribution example fans in per architecture (19.04952ms)
✔ the node example wires services and features (9.74471ms)
✔ git jobs with safe.directory set (2.99319ms)
✔ it appends to configuration already in the environment (0.35958ms)
✔ a count that is not a number does not corrupt the sequence (0.35947ms)
✔ git accepts the environment we build (39.96917ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (49.83365ms)
﹣ the endpoints and key set come from the discovery document (1.3746ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (27.23455ms)
✔ discovery reports an unreachable provider and a bad status (1.02792ms)
﹣ a token carrying the admin role authenticates as an administrator (0.19295ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.17178ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.14049ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.27108ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.43448ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.45919ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.6582ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.17987ms) # the JSON API was removed
﹣ a forged signature is refused (2.14679ms) # the JSON API was removed
﹣ an expired token is refused (0.11373ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.17972ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.17928ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.24631ms) # docker is not available
﹣ a callback with a forged state is refused (0.1008ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.06538ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.06662ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.10115ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.37677ms)
✔ a star matches any job of characters (0.84261ms)
✔ the rest of a pattern is literal, not a regular expression (0.54107ms)
✔ a restricted task is left out of jobs for other refs (25.47092ms)
✔ it is left out rather than recorded as skipped (4.31192ms)
✔ tasks depending on an excluded task are excluded too (3.09356ms)
✔ depth and ordering describe the job that will happen (1.53665ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (1.67895ms)
✔ a restricted task cannot match a job that has no ref (1.82676ms)
✔ a malformed rule is reported rather than ignored (7.79402ms)
✔ the rule is not inherited from defaults (1.74575ms)
✔ a minimal pipeline compiles (23.09798ms)
✔ version is required and pinned (3.6268ms)
✔ empty and malformed documents are rejected clearly (3.81717ms)
✔ image and script are required (1.00235ms)
✔ image may come from defaults (2.60913ms)
✔ unknown keys are rejected, with a suggestion when close (5.8183ms)
✔ all problems are reported at once (1.9447ms)
✔ durations accept seconds, units and composites (3.15615ms)
✔ durations accept day and week units (1.57308ms)
✔ a malformed duration is rejected (0.93878ms)
✔ arch expands into one task per architecture (2.21817ms)
✔ a matrix expands to the cartesian product (2.46716ms)
✔ needs match on shared dimensions rather than fanning out (6.66184ms)
✔ a task without the shared dimension depends on every instance (1.0726ms)
✔ match all opts out of dimension matching (1.28144ms)
✔ needs may name one concrete instance (6.34339ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.15489ms)
✔ needs on an unknown task lists what is defined (0.78056ms)
✔ self dependency is rejected (0.79244ms)
✔ a dependency cycle names the cycle (2.09774ms)
✔ interpolation substitutes arch and matrix values (1.92854ms)
✔ interpolating an undefined dimension is an error (1.75863ms)
✔ referring to arch without declaring one is an error (1.46641ms)
✔ matrix values must be safe for use in a task name (0.89571ms)
✔ arch may not also be a matrix dimension (1.18736ms)
✔ services get a derived alias and reject duplicates (4.71393ms)
✔ artifacts accept a bare list and reject absolute paths (2.16615ms)
✔ artifact when is constrained (0.63519ms)
✔ defaults are inherited and overridden per task (1.01023ms)
✔ env values must be scalars with valid names (1.03817ms)
✔ parsePipeline normalizes without expanding (0.63354ms)
✔ a realistic distribution pipeline produces the expected graph (3.35998ms)
✔ compiles markers to the placeholder each dialect expects (6.01507ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.3777ms)
✔ ignores markers inside string literals and comments (0.49731ms)
✔ a json literal in default text survives untouched (0.32198ms)
✔ doubling a brace escapes it (0.39887ms)
✔ block comments are skipped, and nest only for postgres (0.39455ms)
✔ postgres dollar quoted bodies are skipped (0.36473ms)
✔ mysql backtick identifiers and hash comments are skipped (0.41058ms)
✔ a malformed marker is rejected with a useful message (1.13082ms)
✔ binds by name, resolving dotted paths (1.19619ms)
✔ an exact key beats path traversal (0.42198ms)
✔ reports every missing key at once (0.54568ms)
✔ rejects an array of parameters, which would silently bind by position (0.46323ms)
✔ normalizes booleans, dates and null (1.7514ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.40362ms)
✔ an artifact past its own deadline is deleted (242.23404ms)
✔ an explicit deadline overrides the policy in both directions (225.47798ms)
✔ an explicit deadline also beats the last good job (118.53104ms)
✔ the last few jobs keep their artifacts however old they are (131.69636ms)
✔ recent artifacts are kept however many jobs have followed (142.98965ms)
✔ an artifact outside both rules is deleted (81.62147ms)
✔ the most recent successful job is kept whatever the policy says (106.4456ms)
✔ only the latest success is protected, not every success (126.36479ms)
✔ a project may keep artifacts forever despite a server default (163.77883ms)
✔ a project setting overrides the server default (96.35804ms)
✔ an unfinished job is never swept (92.49921ms)
✔ logs older than the limit are removed but the task remains (73.51909ms)
✔ a swept log is distinguishable from one that never existed (119.85561ms)
✔ a log is swept only once (118.38956ms)
✔ zero keeps logs forever (125.67845ms)
✔ a storage failure leaves the row for the next pass (84.45534ms)
✔ a sweep deletes no more than its batch (137.17205ms)
✔ one project policy does not reach into another (118.60246ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (311.42087ms)
﹣ the api reports and accepts project retention (0.43047ms) # the JSON API was removed
✔ seals and opens a value (4.18449ms)
✔ sealing twice produces different ciphertext (0.70991ms)
✔ without a key, values are stored as marked plaintext (0.38009ms)
✔ a keyed box can still read values written before a key existed (0.40544ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.02225ms)
✔ the wrong key fails to open (0.56001ms)
✔ tampering with the ciphertext is detected (0.55773ms)
✔ associated data binds a secret to its location (1.44725ms)
✔ a key of the wrong size is refused at construction (0.73643ms)
✔ task ids are opaque, and say nothing about their job (6.94043ms)
✔ time ordered ids sort by creation time (0.35798ms)
✔ random ids use the expected alphabet (0.30614ms)
✔ slugify produces readable project ids and falls back when empty (0.65404ms)
✔ token hashing and constant time comparison (7.38778ms)
✔ the pipeline this project jobs on itself compiles (68.66193ms)
✔ its tasks declare the features they actually need (20.85777ms)
✔ publishing is restricted to main and release tags (87.6702ms)
✔ get-vanilla matches the reference signature (21.76219ms)
✔ get-vanilla-query-order-key-case matches the reference signature (5.7271ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (1.71731ms)
✔ amzDate produces both required formats (2.64121ms)
✔ s3 requests carry the content hash header (4.81135ms)
✔ presigned urls carry the signature in the query string (15.12357ms)
✔ an already encoded path is not encoded a second time (5.87354ms)
✔ key validation rejects traversal and absolute paths (2.66395ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.42411ms)
✔ key layout is stable (0.56732ms)
✔ local backend round trips a buffer and reports its digest (26.53025ms)
✔ local backend serves ranges (10.0919ms)
✔ local backend accepts a stream (24.34471ms)
✔ local backend reports a missing object and deletes idempotently (7.16539ms)
✔ local backend has no presigned urls (5.29323ms)
✔ a partial write leaves no object behind (8.47707ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.60884ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.88696ms)
✔ inParts handles a chunk far larger than the part size (0.68195ms)
✔ inParts yields nothing for an empty stream (0.64509ms)
﹣ s3 backend round trips awkward keys against a real server (0.08855ms) # docker is not available
﹣ s3 serves byte ranges (0.07978ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.06742ms) # docker is not available
﹣ a presigned url is usable without credentials (0.14526ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.10801ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.15514ms) # docker is not available
﹣ a stream of unknown length is accepted (0.06283ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.05286ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.05871ms) # docker is not available
﹣ a multipart object still serves ranges (0.07659ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.04874ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.04606ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.05744ms) # docker is not available
✔ every javascript file parses (992.85805ms)
✔ the shell scripts parse (8.42921ms)
✔ interpolated values are escaped by default (2.54543ms)
✔ quotes and ampersands are escaped inside attributes (0.33914ms)
✔ nested templates and arrays are kept, raw is passed through (0.37078ms)
✔ null, undefined and false render as nothing (0.22953ms)
✔ attrs omits absent values and renders bare booleans (0.78094ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (416.64377ms)
✔ an anonymous visitor cannot see a private job (244.22054ms)
✔ management pages redirect an anonymous visitor to sign in (179.07576ms)
✔ signing in through the form sets a session and reveals the nav (282.0579ms)
✔ a user creates a project through the form and is shown the secret once (348.64397ms)
✔ a project page shows variables and never their values (247.66918ms)
✔ setting and removing a variable returns the updated table (222.87044ms)
✔ a user cannot open or delete a project they do not own (428.26027ms)
✔ registering a worker shows the token once and lists it (174.80196ms)
✔ an ordinary user cannot create shared capacity from the form (452.39274ms)
✔ the users page is administrator only and warns about what deletion destroys (364.2876ms)
✔ a running job polls, and a finished one stops (405.94645ms)
✔ a task page streams the log and stops polling once it completes (298.78698ms)
✔ log output is escaped, so a task cannot inject markup into the page (294.76535ms)
✔ a mutation without the htmx header is refused (285.38717ms)
✔ the sign in form is centred rather than stranded at the left edge (205.57076ms)
✔ row actions stay ordinary table cells, so rows keep one height (332.65633ms)
✔ the stylesheet and htmx are served, and nothing else is (157.38622ms)
✔ the project page shows retention, with server defaults as placeholders (306.13807ms)
✔ saving retention through the form stores it, and empty means inherit (206.08058ms)
✔ a negative retention value is refused by the form (320.60559ms)
✔ the project page offers a working directory, defaulting to the server one (224.96184ms)
✔ saving a working directory stores it, and empty clears it (317.15938ms)
✔ an unusable working directory is refused by the form (295.0445ms)
✔ worker config loads from json and reports features (24.61046ms)
✔ worker config reads the token from a file (6.66105ms)
✔ environment overrides the worker config file (6.26338ms)
✔ worker config without a token is rejected (8.58169ms)
✔ a malformed feature is reported with its path (5.11604ms)
✔ shell quoting survives quotes and metacharacters (0.44933ms)
✔ a generated script echoes each command and stops on failure (0.55011ms)
✔ container names are valid for docker and stay unique (2.25858ms)
✔ job arguments carry mounts, env, network and privilege (1.05776ms)
✔ a task container is created without sharing anything with the worker (0.87979ms)
✔ a feature still contributes its bind mounts (0.29252ms)
✔ features resolve into mounts, env and privilege (0.61395ms)
✔ an unknown required feature is reported rather than ignored (0.25402ms)
✔ an artifact pattern reduces to the part that can be copied out (0.70981ms)
✔ overlapping artifact paths are copied out once (0.84587ms)
✔ artifact collection globs, and refuses to leave the workspace (21.23616ms)
✔ artifact when controls collection (0.332ms)
✔ an idle worker keeps running instead of exiting (4008.70101ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1520.67762ms)
✔ log output is batched and offsets advance (1.45302ms)
✔ a conflicting offset resynchronises instead of duplicating (0.58762ms)
✔ secrets are masked before anything leaves the host (0.83432ms)
✔ a secret split across two writes is still masked (0.39192ms)
✔ a failing conductor does not break the task (0.57442ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 19717.49834
[conductor] done