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

✔ every tracked text file is pure ASCII (182.02372ms)
✔ no file uses CRLF line endings or trailing whitespace (166.76961ms)
✔ a password round trips and a wrong one is refused (26.10952ms)
✔ the same password hashes differently each time (22.04158ms)
✔ parameters are read back from the stored hash (15.98926ms)
✔ a malformed stored hash is refused rather than throwing (0.58655ms)
✔ password length is bounded (0.69737ms)
✔ a session token round trips its claims (1.46256ms)
✔ a token signed with another secret is refused (0.60005ms)
✔ a tampered payload is refused (0.36363ms)
✔ an expired token is refused (1.2186ms)
✔ a malformed token is refused rather than throwing (0.4366ms)
✔ cookies are parsed and issued (2.13687ms)
✔ the oidc login state round trips with its return path (1.03137ms)
✔ a missing return path means the root (0.29153ms)
✔ the oidc login state is refused when forged, stale or off-site (0.37203ms)
✔ oidc roles are collected from the usual claim shapes (0.59941ms)
✔ mask replaces secrets, longest first (0.4338ms)
✔ mask ignores very short values and leaves clean output alone (0.22639ms)
✔ health reports the selected drivers (373.48624ms)
✔ a signed trigger creates a job and expands the pipeline (273.02092ms)
✔ an unsigned or wrongly signed trigger is refused (131.76181ms)
✔ github and gitlab push payloads are understood (301.88658ms)
✔ a branch deletion is ignored rather than failing (81.30959ms)
✔ a broken pipeline is reported as a client error with detail (225.70702ms)
✔ a missing pipeline file is reported clearly (298.22206ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (264.5701ms)
✔ a project pointed at a specific file gets no fallback (178.58676ms)
✔ a repository carrying both spellings is refused rather than guessed at (265.74035ms)
✔ a pipeline still using the jobs key is told what it was renamed to (328.52958ms)
✔ a job can be created directly, without a push payload to imitate (341.76119ms)
✔ creating a job requires the same signature as a trigger (105.20627ms)
✔ creating a job insists on a real commit rather than inferring one (124.57383ms)
✔ a job can be read back, with the state of every task (416.20052ms)
✔ a public job is readable without any credential at all (285.14756ms)
✔ a private job needs the trigger secret, and is otherwise absent (252.08631ms)
✔ a job of another project cannot be read through this one (272.66828ms)
✔ a task can be read back on its own, and by its full name (260.57413ms)
✔ reading a task back carries its dependencies and matrix (275.5233ms)
✔ reading a task back never exposes its environment, services or script (399.48854ms)
✔ a task lists the artifacts it stored, with a usable download url (332.53608ms)
✔ reading a task back needs no worker token (275.11399ms)
✔ a private task is absent without a credential, and needs its project named (255.5421ms)
✔ a private task is readable by an administrator, by either path (482.76755ms)
✔ a task of another project cannot be read through this one (307.32443ms)
✔ an unknown task is 404 by either path (115.80781ms)
✔ the worker api rejects missing and invalid tokens (117.03833ms)
✔ independent tasks dispatch concurrently (373.84799ms)
✔ a task is only offered to a worker that satisfies its requires (453.73278ms)
✔ a worker is not offered work for an architecture it cannot build (423.03784ms)
✔ a claimed task carries everything the worker needs (423.85419ms)
✔ a task that requires a feature reports it to the worker (316.67616ms)
✔ the standard conductor variables are present in the task environment (297.06345ms)
✔ the source tarball is served from the mirror (290.17724ms)
✔ a worker cannot touch a task it does not hold (321.33465ms)
✔ log appends are resumable and deduplicated by offset (327.12137ms)
✔ an oversized log chunk is refused (402.08706ms)
✔ a finished log moves to storage and is still readable (448.39301ms)
✔ artifacts are stored, hashed, and stripped of traversal (378.41447ms)
✔ an artifact shorter than its content-length is rejected (280.33213ms)
✔ success releases dependents, matched on shared dimensions (390.70535ms)
✔ failure skips transitive dependents, not just direct ones (433.94866ms)
✔ a job settles as failed once every task is terminal (270.87392ms)
✔ a job settles as success when everything passes (309.72363ms)
✔ an allowed failure does not fail the job or block dependents (331.41961ms)
✔ a task with retries left is requeued instead of failing the job (276.29299ms)
✔ heartbeats keep a task alive and report cancellation (253.25185ms)
✔ the reaper fails a task whose worker stopped reporting (388.19773ms)
✔ a second push produces an independent, numbered job (634.7072ms)
﹣ jobs can be listed and filtered by project (0.95304ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.38112ms) # the JSON API was removed
✔ a disabled project refuses triggers (172.65155ms)
✔ a trigger for an unknown project is a 404 (134.67797ms)
✔ a commit that is not in the repository is refused (290.35511ms)
✔ a task is told to fetch an archive, and never the repository itself (401.60004ms)
✔ the source archive is the bare tree, with no wrapping directory (456.65943ms)
✔ the working directory is resolved from the pipeline, then the project (1270.16635ms)
✔ an unusable working directory is refused rather than sanitised (1228.59905ms)
✔ the trigger secret is not stored in the clear (188.90521ms)
✔ worker tokens are stored only as hashes (117.13874ms)
✔ defaults select sqlite, local storage and local auth (4.59382ms)
✔ configuring an s3 bucket switches the storage driver (1.49893ms)
✔ a partial s3 configuration is rejected rather than half applied (1.19362ms)
✔ configuring an oidc discovery url switches the auth mode (0.73749ms)
✔ an oidc discovery url without a client id is rejected (0.62628ms)
✔ a database url selects its dialect (1.1886ms)
✔ an unsupported database scheme is reported clearly (0.67337ms)
✔ a sqlite url collapses into database.path (2.62382ms)
✔ environment variables override the config file (30.69027ms)
✔ relative paths resolve against the config file directory (8.47799ms)
✔ a missing explicit config file is an error, a missing default is not (1.80412ms)
✔ a heartbeat timeout below the reap interval is rejected (8.84981ms)
✔ a non-integer port is rejected with the variable named (0.97141ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.61638ms)
✔ stateDirs omits the storage directory when s3 is in use (1.6855ms)
✔ the loaded config is frozen (1.24166ms)
✔ topological order places dependencies first (2.97794ms)
✔ topological order is deterministic (2.60369ms)
✔ a cycle is detected and named (1.06403ms)
✔ depth reflects the longest path, not insertion order (0.47761ms)
✔ independent tasks are runnable at the same time (0.52819ms)
✔ a task becomes runnable only once every dependency succeeds (0.41009ms)
✔ a running dependency does not release its dependents (0.33592ms)
✔ failure skips transitive dependents, not just direct ones (0.49442ms)
✔ a skipped dependency never releases a dependent (0.5819ms)
✔ allowed failures can satisfy a dependency when asked to (0.58892ms)
✔ transitive dependents of a leaf is empty (0.35804ms)
✔ graph helpers tolerate dependencies outside the set (0.38817ms)
✔ dialect detection covers every supported scheme (12.04381ms)
✔ statement splitter respects literals and comments (4.03694ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (1.78269ms)
✔ migrations apply once and are idempotent (258.26423ms)
✔ an edited migration is refused rather than silently diverging (61.16194ms)
✔ a migration removed from disk is reported (13.12803ms)
✔ rows come back as ordinary objects (17.9843ms)
✔ a conditional update claims exactly once (27.6527ms)
✔ deleting a job cascades to its tasks (29.15968ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (23.84584ms)
﹣ migrations apply and retention sweeps on postgres (1.83499ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.20426ms) # SKIP
✔ every example pipeline compiles (56.14987ms)
✔ the distribution example fans in per architecture (106.48702ms)
✔ the node example wires services and features (111.79991ms)
✔ git jobs with safe.directory set (2.49898ms)
✔ it appends to configuration already in the environment (0.30142ms)
✔ a count that is not a number does not corrupt the sequence (0.29955ms)
✔ git accepts the environment we build (40.89062ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (101.60389ms)
﹣ the endpoints and key set come from the discovery document (4.60609ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (38.77536ms)
✔ discovery reports an unreachable provider and a bad status (1.60985ms)
﹣ a token carrying the admin role authenticates as an administrator (0.47106ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.21651ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.18565ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (1.04663ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.37421ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.33387ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.47999ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.15856ms) # the JSON API was removed
﹣ a forged signature is refused (2.05294ms) # the JSON API was removed
﹣ an expired token is refused (1.23296ms) # the JSON API was removed
﹣ a token from a different issuer is refused (1.52104ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.66268ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.49842ms) # docker is not available
﹣ a callback with a forged state is refused (0.4971ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.4841ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.49636ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.48831ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.21492ms)
✔ a star matches any job of characters (0.58086ms)
✔ the rest of a pattern is literal, not a regular expression (0.53579ms)
✔ a restricted task is left out of jobs for other refs (25.18198ms)
✔ it is left out rather than recorded as skipped (2.80065ms)
✔ tasks depending on an excluded task are excluded too (2.58216ms)
✔ depth and ordering describe the job that will happen (1.46483ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (2.34977ms)
✔ a restricted task cannot match a job that has no ref (4.55298ms)
✔ a malformed rule is reported rather than ignored (7.94339ms)
✔ the rule is not inherited from defaults (1.70684ms)
✔ a minimal pipeline compiles (24.79217ms)
✔ version is required and pinned (3.35786ms)
✔ empty and malformed documents are rejected clearly (2.95772ms)
✔ image and script are required (0.82289ms)
✔ image may come from defaults (1.39763ms)
✔ unknown keys are rejected, with a suggestion when close (3.95658ms)
✔ all problems are reported at once (2.79917ms)
✔ durations accept seconds, units and composites (2.97048ms)
✔ durations accept day and week units (1.64928ms)
✔ a malformed duration is rejected (1.15304ms)
✔ arch expands into one task per architecture (1.91586ms)
✔ a matrix expands to the cartesian product (2.22099ms)
✔ needs match on shared dimensions rather than fanning out (5.09525ms)
✔ a task without the shared dimension depends on every instance (1.08923ms)
✔ match all opts out of dimension matching (1.33086ms)
✔ needs may name one concrete instance (1.63454ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.44514ms)
✔ needs on an unknown task lists what is defined (0.61976ms)
✔ self dependency is rejected (0.6304ms)
✔ a dependency cycle names the cycle (1.50324ms)
✔ interpolation substitutes arch and matrix values (1.48839ms)
✔ interpolating an undefined dimension is an error (1.12906ms)
✔ referring to arch without declaring one is an error (1.53815ms)
✔ matrix values must be safe for use in a task name (0.76842ms)
✔ arch may not also be a matrix dimension (0.62642ms)
✔ services get a derived alias and reject duplicates (6.55816ms)
✔ artifacts accept a bare list and reject absolute paths (1.0459ms)
✔ artifact when is constrained (0.56156ms)
✔ defaults are inherited and overridden per task (0.93204ms)
✔ env values must be scalars with valid names (0.79638ms)
✔ parsePipeline normalizes without expanding (0.70842ms)
✔ a realistic distribution pipeline produces the expected graph (1.96632ms)
✔ compiles markers to the placeholder each dialect expects (5.4157ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.31726ms)
✔ ignores markers inside string literals and comments (0.40347ms)
✔ a json literal in default text survives untouched (0.25126ms)
✔ doubling a brace escapes it (0.2738ms)
✔ block comments are skipped, and nest only for postgres (0.66392ms)
✔ postgres dollar quoted bodies are skipped (0.34413ms)
✔ mysql backtick identifiers and hash comments are skipped (0.49666ms)
✔ a malformed marker is rejected with a useful message (1.05196ms)
✔ binds by name, resolving dotted paths (1.08649ms)
✔ an exact key beats path traversal (0.3103ms)
✔ reports every missing key at once (0.49381ms)
✔ rejects an array of parameters, which would silently bind by position (0.39985ms)
✔ normalizes booleans, dates and null (0.35065ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.38243ms)
✔ an artifact past its own deadline is deleted (306.05776ms)
✔ an explicit deadline overrides the policy in both directions (237.7883ms)
✔ an explicit deadline also beats the last good job (123.37189ms)
✔ the last few jobs keep their artifacts however old they are (106.35566ms)
✔ recent artifacts are kept however many jobs have followed (107.56903ms)
✔ an artifact outside both rules is deleted (114.77831ms)
✔ the most recent successful job is kept whatever the policy says (106.42392ms)
✔ only the latest success is protected, not every success (94.47823ms)
✔ a project may keep artifacts forever despite a server default (97.68793ms)
✔ a project setting overrides the server default (74.86175ms)
✔ an unfinished job is never swept (82.37203ms)
✔ logs older than the limit are removed but the task remains (105.98624ms)
✔ a swept log is distinguishable from one that never existed (79.87215ms)
✔ a log is swept only once (158.45605ms)
✔ zero keeps logs forever (79.75218ms)
✔ a storage failure leaves the row for the next pass (70.79128ms)
✔ a sweep deletes no more than its batch (125.315ms)
✔ one project policy does not reach into another (70.6165ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (253.06529ms)
﹣ the api reports and accepts project retention (0.27804ms) # the JSON API was removed
✔ seals and opens a value (4.62708ms)
✔ sealing twice produces different ciphertext (0.69656ms)
✔ without a key, values are stored as marked plaintext (0.34055ms)
✔ a keyed box can still read values written before a key existed (0.25715ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.49926ms)
✔ the wrong key fails to open (0.70444ms)
✔ tampering with the ciphertext is detected (0.74762ms)
✔ associated data binds a secret to its location (1.06036ms)
✔ a key of the wrong size is refused at construction (0.47117ms)
✔ task ids are opaque, and say nothing about their job (7.63296ms)
✔ time ordered ids sort by creation time (0.34426ms)
✔ random ids use the expected alphabet (0.28764ms)
✔ slugify produces readable project ids and falls back when empty (0.49672ms)
✔ token hashing and constant time comparison (2.16491ms)
✔ the pipeline this project jobs on itself compiles (45.71821ms)
✔ its tasks declare the features they actually need (11.54467ms)
✔ publishing is restricted to main and release tags (62.04941ms)
✔ get-vanilla matches the reference signature (4.07196ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.1767ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.28181ms)
✔ amzDate produces both required formats (0.32801ms)
✔ s3 requests carry the content hash header (0.79168ms)
✔ presigned urls carry the signature in the query string (2.48358ms)
✔ an already encoded path is not encoded a second time (0.76957ms)
✔ key validation rejects traversal and absolute paths (2.77596ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.5361ms)
✔ key layout is stable (0.57827ms)
✔ local backend round trips a buffer and reports its digest (57.29129ms)
✔ local backend serves ranges (8.14601ms)
✔ local backend accepts a stream (10.18603ms)
✔ local backend reports a missing object and deletes idempotently (6.75127ms)
✔ local backend has no presigned urls (1.97365ms)
✔ a partial write leaves no object behind (4.00553ms)
✔ part size grows so that a huge object still fits in 10000 parts (0.80922ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (2.15046ms)
✔ inParts handles a chunk far larger than the part size (0.7694ms)
✔ inParts yields nothing for an empty stream (0.81605ms)
﹣ s3 backend round trips awkward keys against a real server (0.10715ms) # docker is not available
﹣ s3 serves byte ranges (0.09445ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.09067ms) # docker is not available
﹣ a presigned url is usable without credentials (0.20347ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.1126ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.08791ms) # docker is not available
﹣ a stream of unknown length is accepted (0.08548ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.08272ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.08156ms) # docker is not available
﹣ a multipart object still serves ranges (0.08647ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.08462ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.08284ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.07904ms) # docker is not available
✔ every javascript file parses (988.3983ms)
✔ the shell scripts parse (3.29154ms)
✔ interpolated values are escaped by default (2.02995ms)
✔ quotes and ampersands are escaped inside attributes (0.37874ms)
✔ nested templates and arrays are kept, raw is passed through (0.39481ms)
✔ null, undefined and false render as nothing (0.25335ms)
✔ attrs omits absent values and renders bare booleans (0.3448ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (448.20558ms)
✔ an anonymous visitor cannot see a private job (267.00191ms)
✔ management pages redirect an anonymous visitor to sign in (204.69503ms)
✔ signing in through the form sets a session and reveals the nav (237.5967ms)
✔ a user creates a project through the form and is shown the secret once (298.9295ms)
✔ a project page shows variables and never their values (216.34073ms)
✔ setting and removing a variable returns the updated table (273.72101ms)
✔ a user cannot open or delete a project they do not own (310.77126ms)
✔ registering a worker shows the token once and lists it (264.26641ms)
✔ an ordinary user cannot create shared capacity from the form (442.38978ms)
✔ the users page is administrator only and warns about what deletion destroys (322.06382ms)
✔ a running job polls, and a finished one stops (428.32086ms)
✔ a task page streams the log and stops polling once it completes (445.00802ms)
✔ log output is escaped, so a task cannot inject markup into the page (383.80389ms)
✔ a mutation without the htmx header is refused (285.39092ms)
✔ the sign in form is centred rather than stranded at the left edge (189.11914ms)
✔ row actions stay ordinary table cells, so rows keep one height (327.07799ms)
✔ the stylesheet and htmx are served, and nothing else is (160.10421ms)
✔ the project page shows retention, with server defaults as placeholders (262.62646ms)
✔ saving retention through the form stores it, and empty means inherit (273.40981ms)
✔ a negative retention value is refused by the form (296.22725ms)
✔ the project page offers a working directory, defaulting to the server one (282.89151ms)
✔ saving a working directory stores it, and empty clears it (217.76985ms)
✔ an unusable working directory is refused by the form (254.39338ms)
✔ worker config loads from json and reports features (20.09165ms)
✔ worker config reads the token from a file (3.60047ms)
✔ environment overrides the worker config file (2.7622ms)
✔ worker config without a token is rejected (3.50213ms)
✔ a malformed feature is reported with its path (3.03308ms)
✔ shell quoting survives quotes and metacharacters (0.38598ms)
✔ a generated script echoes each command and stops on failure (0.47609ms)
✔ container names are valid for docker and stay unique (1.57026ms)
✔ job arguments carry mounts, env, network and privilege (0.85149ms)
✔ a task container is created without sharing anything with the worker (0.70294ms)
✔ a feature still contributes its bind mounts (0.2892ms)
✔ features resolve into mounts, env and privilege (0.47124ms)
✔ an unknown required feature is reported rather than ignored (0.27106ms)
✔ an artifact pattern reduces to the part that can be copied out (0.5205ms)
✔ overlapping artifact paths are copied out once (0.54744ms)
✔ artifact collection globs, and refuses to leave the workspace (39.25228ms)
✔ artifact when controls collection (0.59896ms)
✔ an idle worker keeps running instead of exiting (4010.24004ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1519.69278ms)
✔ log output is batched and offsets advance (1.18908ms)
✔ a conflicting offset resynchronises instead of duplicating (0.41971ms)
✔ secrets are masked before anything leaves the host (0.51949ms)
✔ a secret split across two writes is still masked (0.27014ms)
✔ a failing conductor does not break the task (0.49297ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 20030.24752
[conductor] done