conductor

sign in

integration

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

log

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

✔ every tracked text file is pure ASCII (241.252008ms)
✔ no file uses CRLF line endings or trailing whitespace (88.62392ms)
✔ a password round trips and a wrong one is refused (53.601596ms)
✔ the same password hashes differently each time (41.969504ms)
✔ parameters are read back from the stored hash (39.678819ms)
✔ a malformed stored hash is refused rather than throwing (0.850094ms)
✔ password length is bounded (3.500622ms)
✔ a session token round trips its claims (2.99571ms)
✔ a token signed with another secret is refused (0.824546ms)
✔ a tampered payload is refused (0.782004ms)
✔ an expired token is refused (1.100575ms)
✔ a malformed token is refused rather than throwing (0.871197ms)
✔ cookies are parsed and issued (3.507875ms)
✔ the oidc login state round trips with its return path (4.572241ms)
✔ a missing return path means the root (0.57526ms)
✔ the oidc login state is refused when forged, stale or off-site (0.780696ms)
✔ oidc roles are collected from the usual claim shapes (1.082409ms)
✔ mask replaces secrets, longest first (0.766495ms)
✔ mask ignores very short values and leaves clean output alone (0.82401ms)
✔ health reports the selected drivers (395.874554ms)
✔ a signed trigger creates a job and expands the pipeline (218.174551ms)
✔ an unsigned or wrongly signed trigger is refused (108.335299ms)
✔ github and gitlab push payloads are understood (313.717298ms)
✔ a branch deletion is ignored rather than failing (102.334655ms)
✔ a broken pipeline is reported as a client error with detail (209.545638ms)
✔ a missing pipeline file is reported clearly (264.000996ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (244.779111ms)
✔ a project pointed at a specific file gets no fallback (210.495662ms)
✔ a repository carrying both spellings is refused rather than guessed at (227.535018ms)
✔ a pipeline still using the jobs key is told what it was renamed to (230.985415ms)
✔ a job can be created directly, without a push payload to imitate (236.627924ms)
✔ creating a job requires the same signature as a trigger (132.382431ms)
✔ creating a job insists on a real commit rather than inferring one (101.377448ms)
✔ a job can be read back, with the state of every task (200.291863ms)
✔ a public job is readable without any credential at all (209.70416ms)
✔ a private job needs the trigger secret, and is otherwise absent (248.820159ms)
✔ a job of another project cannot be read through this one (223.176084ms)
✔ a task can be read back on its own, and by its full name (261.510808ms)
✔ reading a task back carries its dependencies and matrix (243.466792ms)
✔ reading a task back never exposes its environment, services or script (266.366278ms)
✔ a task lists the artifacts it stored, with a usable download url (252.27694ms)
✔ reading a task back needs no worker token (217.828089ms)
✔ a private task is absent without a credential, and needs its project named (203.031017ms)
✔ a private task is readable by an administrator, by either path (459.899316ms)
✔ a task of another project cannot be read through this one (244.384082ms)
✔ an unknown task is 404 by either path (137.276323ms)
✔ the worker api rejects missing and invalid tokens (101.98385ms)
✔ independent tasks dispatch concurrently (229.183622ms)
✔ a task is only offered to a worker that satisfies its requires (265.113917ms)
✔ a worker is not offered work for an architecture it cannot build (242.800649ms)
✔ a claimed task carries everything the worker needs (246.558745ms)
✔ a task that requires a feature reports it to the worker (215.767466ms)
✔ the standard conductor variables are present in the task environment (241.289997ms)
✔ the source tarball is served from the mirror (210.110497ms)
✔ a worker cannot touch a task it does not hold (245.972025ms)
✔ log appends are resumable and deduplicated by offset (265.666725ms)
✔ an oversized log chunk is refused (246.554767ms)
✔ a finished log moves to storage and is still readable (245.298746ms)
✔ artifacts are stored, hashed, and stripped of traversal (249.346777ms)
✔ an artifact shorter than its content-length is rejected (249.520622ms)
✔ success releases dependents, matched on shared dimensions (253.688614ms)
✔ failure skips transitive dependents, not just direct ones (255.91946ms)
✔ a job settles as failed once every task is terminal (274.988203ms)
✔ a job settles as success when everything passes (231.982733ms)
✔ an allowed failure does not fail the job or block dependents (221.55643ms)
✔ a task with retries left is requeued instead of failing the job (238.431404ms)
✔ heartbeats keep a task alive and report cancellation (244.63951ms)
✔ the reaper fails a task whose worker stopped reporting (249.839759ms)
✔ a second push produces an independent, numbered job (394.468418ms)
﹣ jobs can be listed and filtered by project (0.774644ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.277056ms) # the JSON API was removed
✔ a disabled project refuses triggers (131.444702ms)
✔ a trigger for an unknown project is a 404 (130.328606ms)
✔ a commit that is not in the repository is refused (242.107634ms)
✔ a task is told to fetch an archive, and never the repository itself (229.570226ms)
✔ the source archive is the bare tree, with no wrapping directory (218.110438ms)
✔ the working directory is resolved from the pipeline, then the project (719.626661ms)
✔ an unusable working directory is refused rather than sanitised (918.666361ms)
✔ the trigger secret is not stored in the clear (166.4343ms)
✔ worker tokens are stored only as hashes (108.781346ms)
✔ defaults select sqlite, local storage and local auth (8.956913ms)
✔ configuring an s3 bucket switches the storage driver (1.836613ms)
✔ a partial s3 configuration is rejected rather than half applied (2.393784ms)
✔ configuring an oidc discovery url switches the auth mode (1.631787ms)
✔ an oidc discovery url without a client id is rejected (1.444719ms)
✔ a database url selects its dialect (2.915792ms)
✔ an unsupported database scheme is reported clearly (2.0924ms)
✔ a sqlite url collapses into database.path (4.525817ms)
✔ environment variables override the config file (59.960765ms)
✔ relative paths resolve against the config file directory (7.73595ms)
✔ a missing explicit config file is an error, a missing default is not (3.013355ms)
✔ a heartbeat timeout below the reap interval is rejected (9.297219ms)
✔ a non-integer port is rejected with the variable named (1.485035ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.699129ms)
✔ stateDirs omits the storage directory when s3 is in use (2.245945ms)
✔ the loaded config is frozen (1.027654ms)
✔ topological order places dependencies first (3.905405ms)
✔ topological order is deterministic (4.948793ms)
✔ a cycle is detected and named (1.402487ms)
✔ depth reflects the longest path, not insertion order (0.601693ms)
✔ independent tasks are runnable at the same time (0.777358ms)
✔ a task becomes runnable only once every dependency succeeds (0.570591ms)
✔ a running dependency does not release its dependents (1.223808ms)
✔ failure skips transitive dependents, not just direct ones (0.955801ms)
✔ a skipped dependency never releases a dependent (1.674174ms)
✔ allowed failures can satisfy a dependency when asked to (1.497505ms)
✔ transitive dependents of a leaf is empty (0.79307ms)
✔ graph helpers tolerate dependencies outside the set (0.69232ms)
✔ dialect detection covers every supported scheme (4.541547ms)
✔ statement splitter respects literals and comments (1.72775ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.623997ms)
✔ migrations apply once and are idempotent (115.193188ms)
✔ an edited migration is refused rather than silently diverging (48.686983ms)
✔ a migration removed from disk is reported (38.931213ms)
✔ rows come back as ordinary objects (41.29395ms)
✔ a conditional update claims exactly once (33.208971ms)
✔ deleting a job cascades to its tasks (46.07792ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (51.06067ms)
﹣ migrations apply and retention sweeps on postgres (2.734678ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.440366ms) # SKIP
✔ every example pipeline compiles (73.167477ms)
✔ the distribution example fans in per architecture (22.428993ms)
✔ the node example wires services and features (17.74122ms)
✔ git jobs with safe.directory set (3.926207ms)
✔ it appends to configuration already in the environment (0.573076ms)
✔ a count that is not a number does not corrupt the sequence (0.645397ms)
✔ git accepts the environment we build (105.205478ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (88.450495ms)
﹣ the endpoints and key set come from the discovery document (2.456156ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (50.179722ms)
✔ discovery reports an unreachable provider and a bad status (1.642324ms)
﹣ a token carrying the admin role authenticates as an administrator (0.306614ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.250624ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.295882ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.387706ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.674335ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (1.71161ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (1.323228ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.189705ms) # the JSON API was removed
﹣ a forged signature is refused (1.821188ms) # the JSON API was removed
﹣ an expired token is refused (0.163216ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.186058ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.248451ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.122123ms) # docker is not available
﹣ a callback with a forged state is refused (0.107334ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.104212ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.118402ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.081596ms) # the JSON API was removed
✔ a pattern without a star matches exactly (4.880669ms)
✔ a star matches any job of characters (1.064242ms)
✔ the rest of a pattern is literal, not a regular expression (0.756579ms)
✔ a restricted task is left out of jobs for other refs (54.373779ms)
✔ it is left out rather than recorded as skipped (6.762187ms)
✔ tasks depending on an excluded task are excluded too (8.081441ms)
✔ depth and ordering describe the job that will happen (3.364264ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (6.462866ms)
✔ a restricted task cannot match a job that has no ref (7.415549ms)
✔ a malformed rule is reported rather than ignored (15.686404ms)
✔ the rule is not inherited from defaults (3.036857ms)
✔ a minimal pipeline compiles (42.469814ms)
✔ version is required and pinned (7.605007ms)
✔ empty and malformed documents are rejected clearly (5.821082ms)
✔ image and script are required (1.827882ms)
✔ image may come from defaults (4.03223ms)
✔ unknown keys are rejected, with a suggestion when close (5.595964ms)
✔ all problems are reported at once (2.542242ms)
✔ durations accept seconds, units and composites (8.232348ms)
✔ durations accept day and week units (4.768659ms)
✔ a malformed duration is rejected (2.542024ms)
✔ arch expands into one task per architecture (3.700223ms)
✔ a matrix expands to the cartesian product (3.301674ms)
✔ needs match on shared dimensions rather than fanning out (10.393633ms)
✔ a task without the shared dimension depends on every instance (2.127617ms)
✔ match all opts out of dimension matching (7.741651ms)
✔ needs may name one concrete instance (6.655809ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.429596ms)
✔ needs on an unknown task lists what is defined (1.329024ms)
✔ self dependency is rejected (2.957096ms)
✔ a dependency cycle names the cycle (6.751511ms)
✔ interpolation substitutes arch and matrix values (3.484212ms)
✔ interpolating an undefined dimension is an error (2.512295ms)
✔ referring to arch without declaring one is an error (2.201623ms)
✔ matrix values must be safe for use in a task name (1.207231ms)
✔ arch may not also be a matrix dimension (1.194856ms)
✔ services get a derived alias and reject duplicates (7.427337ms)
✔ artifacts accept a bare list and reject absolute paths (2.190751ms)
✔ artifact when is constrained (1.257611ms)
✔ defaults are inherited and overridden per task (2.121674ms)
✔ env values must be scalars with valid names (1.586023ms)
✔ parsePipeline normalizes without expanding (1.204847ms)
✔ a realistic distribution pipeline produces the expected graph (4.042891ms)
✔ compiles markers to the placeholder each dialect expects (9.864791ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.650722ms)
✔ ignores markers inside string literals and comments (0.668377ms)
✔ a json literal in default text survives untouched (0.422963ms)
✔ doubling a brace escapes it (0.472648ms)
✔ block comments are skipped, and nest only for postgres (0.882302ms)
✔ postgres dollar quoted bodies are skipped (0.512884ms)
✔ mysql backtick identifiers and hash comments are skipped (0.793923ms)
✔ a malformed marker is rejected with a useful message (2.6639ms)
✔ binds by name, resolving dotted paths (2.16355ms)
✔ an exact key beats path traversal (0.72651ms)
✔ reports every missing key at once (0.664819ms)
✔ rejects an array of parameters, which would silently bind by position (0.524094ms)
✔ normalizes booleans, dates and null (0.444955ms)
✔ rejects an object value, which is nearly always a forgotten stringify (2.223336ms)
✔ an artifact past its own deadline is deleted (364.668213ms)
✔ an explicit deadline overrides the policy in both directions (222.795632ms)
✔ an explicit deadline also beats the last good job (113.267222ms)
✔ the last few jobs keep their artifacts however old they are (116.929674ms)
✔ recent artifacts are kept however many jobs have followed (108.154997ms)
✔ an artifact outside both rules is deleted (105.39694ms)
✔ the most recent successful job is kept whatever the policy says (99.978678ms)
✔ only the latest success is protected, not every success (119.291504ms)
✔ a project may keep artifacts forever despite a server default (123.199173ms)
✔ a project setting overrides the server default (148.900901ms)
✔ an unfinished job is never swept (141.224198ms)
✔ logs older than the limit are removed but the task remains (115.865987ms)
✔ a swept log is distinguishable from one that never existed (98.575446ms)
✔ a log is swept only once (86.030995ms)
✔ zero keeps logs forever (118.29139ms)
✔ a storage failure leaves the row for the next pass (96.946148ms)
✔ a sweep deletes no more than its batch (129.594567ms)
✔ one project policy does not reach into another (104.06824ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (277.224135ms)
﹣ the api reports and accepts project retention (0.474873ms) # the JSON API was removed
✔ seals and opens a value (8.18844ms)
✔ sealing twice produces different ciphertext (1.46799ms)
✔ without a key, values are stored as marked plaintext (0.614352ms)
✔ a keyed box can still read values written before a key existed (0.531481ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.270493ms)
✔ the wrong key fails to open (1.196968ms)
✔ tampering with the ciphertext is detected (1.144491ms)
✔ associated data binds a secret to its location (1.813526ms)
✔ a key of the wrong size is refused at construction (1.265869ms)
✔ task ids are opaque, and say nothing about their job (15.858658ms)
✔ time ordered ids sort by creation time (0.947313ms)
✔ random ids use the expected alphabet (0.510325ms)
✔ slugify produces readable project ids and falls back when empty (0.753006ms)
✔ token hashing and constant time comparison (2.179674ms)
✔ the pipeline this project jobs on itself compiles (54.712393ms)
✔ its tasks declare the features they actually need (14.480866ms)
✔ publishing is restricted to main and release tags (79.922273ms)
✔ get-vanilla matches the reference signature (6.436187ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.788142ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.586419ms)
✔ amzDate produces both required formats (0.509094ms)
✔ s3 requests carry the content hash header (1.496394ms)
✔ presigned urls carry the signature in the query string (5.687986ms)
✔ an already encoded path is not encoded a second time (1.764729ms)
✔ key validation rejects traversal and absolute paths (3.526184ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.578856ms)
✔ key layout is stable (0.663694ms)
✔ local backend round trips a buffer and reports its digest (48.080688ms)
✔ local backend serves ranges (11.192764ms)
✔ local backend accepts a stream (16.716512ms)
✔ local backend reports a missing object and deletes idempotently (10.374896ms)
✔ local backend has no presigned urls (8.089398ms)
✔ a partial write leaves no object behind (6.538429ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.481451ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.744451ms)
✔ inParts handles a chunk far larger than the part size (0.907195ms)
✔ inParts yields nothing for an empty stream (1.331782ms)
﹣ s3 backend round trips awkward keys against a real server (0.150971ms) # docker is not available
﹣ s3 serves byte ranges (0.138662ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.100293ms) # docker is not available
﹣ a presigned url is usable without credentials (0.177086ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.083063ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.067501ms) # docker is not available
﹣ a stream of unknown length is accepted (0.108122ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.064953ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.062515ms) # docker is not available
﹣ a multipart object still serves ranges (0.10059ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.104098ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.088305ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.08878ms) # docker is not available
✔ every javascript file parses (947.133718ms)
✔ the shell scripts parse (2.866529ms)
✔ interpolated values are escaped by default (4.629672ms)
✔ quotes and ampersands are escaped inside attributes (0.739755ms)
✔ nested templates and arrays are kept, raw is passed through (0.679134ms)
✔ null, undefined and false render as nothing (0.469258ms)
✔ attrs omits absent values and renders bare booleans (0.649064ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (520.618439ms)
✔ an anonymous visitor cannot see a private job (272.862158ms)
✔ management pages redirect an anonymous visitor to sign in (237.588381ms)
✔ signing in through the form sets a session and reveals the nav (515.804427ms)
✔ a user creates a project through the form and is shown the secret once (282.616485ms)
✔ a project page shows variables and never their values (375.164128ms)
✔ setting and removing a variable returns the updated table (312.951942ms)
✔ a user cannot open or delete a project they do not own (512.108002ms)
✔ registering a worker shows the token once and lists it (401.56429ms)
✔ an ordinary user cannot create shared capacity from the form (476.928287ms)
✔ the users page is administrator only and warns about what deletion destroys (561.950255ms)
✔ a running job polls, and a finished one stops (397.471614ms)
✔ a task page streams the log and stops polling once it completes (393.275745ms)
✔ log output is escaped, so a task cannot inject markup into the page (356.56852ms)
✔ a mutation without the htmx header is refused (311.268587ms)
✔ the sign in form is centred rather than stranded at the left edge (229.181253ms)
✔ row actions stay ordinary table cells, so rows keep one height (329.533524ms)
✔ the stylesheet and htmx are served, and nothing else is (218.334549ms)
✔ the project page shows retention, with server defaults as placeholders (330.957676ms)
✔ saving retention through the form stores it, and empty means inherit (351.961718ms)
✔ a negative retention value is refused by the form (295.650777ms)
✔ the project page offers a working directory, defaulting to the server one (347.294128ms)
✔ saving a working directory stores it, and empty clears it (303.548932ms)
✔ an unusable working directory is refused by the form (400.936947ms)
✔ worker config loads from json and reports features (30.115229ms)
✔ worker config reads the token from a file (5.497862ms)
✔ environment overrides the worker config file (5.62228ms)
✔ worker config without a token is rejected (6.424574ms)
✔ a malformed feature is reported with its path (5.36293ms)
✔ shell quoting survives quotes and metacharacters (0.786088ms)
✔ a generated script echoes each command and stops on failure (1.026317ms)
✔ container names are valid for docker and stay unique (2.397419ms)
✔ job arguments carry mounts, env, network and privilege (1.362306ms)
✔ a task container is created without sharing anything with the worker (1.381141ms)
✔ a feature still contributes its bind mounts (0.635454ms)
✔ features resolve into mounts, env and privilege (1.079086ms)
✔ an unknown required feature is reported rather than ignored (0.507858ms)
✔ an artifact pattern reduces to the part that can be copied out (1.006848ms)
✔ overlapping artifact paths are copied out once (1.387984ms)
✔ artifact collection globs, and refuses to leave the workspace (36.955677ms)
✔ artifact when controls collection (0.530103ms)
✔ an idle worker keeps running instead of exiting (4012.700849ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1519.182833ms)
✔ log output is batched and offsets advance (5.231266ms)
✔ a conflicting offset resynchronises instead of duplicating (1.459802ms)
✔ secrets are masked before anything leaves the host (2.477113ms)
✔ a secret split across two writes is still masked (1.0405ms)
✔ a failing conductor does not break the task (1.752684ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15255.044898
[conductor] done