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 a134e2de963e 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.2 test
> node --test "test/**/*.test.js"

✔ every tracked text file is pure ASCII (157.56564ms)
✔ no file uses CRLF line endings or trailing whitespace (65.06014ms)
✔ a password round trips and a wrong one is refused (72.99236ms)
✔ the same password hashes differently each time (18.70136ms)
✔ parameters are read back from the stored hash (13.70106ms)
✔ a malformed stored hash is refused rather than throwing (0.84583ms)
✔ password length is bounded (1.13994ms)
✔ a session token round trips its claims (2.89994ms)
✔ a token signed with another secret is refused (0.98585ms)
✔ a tampered payload is refused (0.47531ms)
✔ an expired token is refused (0.77608ms)
✔ a malformed token is refused rather than throwing (0.52117ms)
✔ cookies are parsed and issued (2.67682ms)
✔ the oidc login state round trips with its return path (1.30072ms)
✔ a missing return path means the root (0.41683ms)
✔ the oidc login state is refused when forged, stale or off-site (0.65919ms)
✔ oidc roles are collected from the usual claim shapes (0.99509ms)
✔ mask replaces secrets, longest first (0.77346ms)
✔ mask ignores very short values and leaves clean output alone (0.42417ms)
✔ health reports the selected drivers (399.36788ms)
✔ a signed trigger creates a job and expands the pipeline (295.0737ms)
✔ an unsigned or wrongly signed trigger is refused (104.58912ms)
✔ github and gitlab push payloads are understood (330.14689ms)
✔ a branch deletion is ignored rather than failing (128.28247ms)
✔ a broken pipeline is reported as a client error with detail (247.45168ms)
✔ a missing pipeline file is reported clearly (263.97663ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (224.39979ms)
✔ a project pointed at a specific file gets no fallback (189.09709ms)
✔ a repository carrying both spellings is refused rather than guessed at (226.05439ms)
✔ a pipeline still using the jobs key is told what it was renamed to (243.04241ms)
✔ a job can be created directly, without a push payload to imitate (178.41939ms)
✔ creating a job requires the same signature as a trigger (132.39033ms)
✔ creating a job insists on a real commit rather than inferring one (146.71089ms)
✔ a job can be read back, with the state of every task (360.67616ms)
✔ a public job is readable without any credential at all (324.43295ms)
✔ a private job needs the trigger secret, and is otherwise absent (312.8928ms)
✔ a job of another project cannot be read through this one (247.59075ms)
✔ a task can be read back on its own, and by its full name (303.7499ms)
✔ reading a task back carries its dependencies and matrix (285.41312ms)
✔ reading a task back never exposes its environment, services or script (264.61598ms)
✔ a task lists the artifacts it stored, with a usable download url (383.2609ms)
✔ reading a task back needs no worker token (232.53044ms)
✔ a private task is absent without a credential, and needs its project named (269.26531ms)
✔ a private task is readable by an administrator, by either path (555.2015ms)
✔ a task of another project cannot be read through this one (394.71278ms)
✔ an unknown task is 404 by either path (138.60542ms)
✔ the worker api rejects missing and invalid tokens (123.27679ms)
✔ independent tasks dispatch concurrently (455.27895ms)
✔ a task is only offered to a worker that satisfies its requires (462.04522ms)
✔ a worker is not offered work for an architecture it cannot build (457.58381ms)
✔ a claimed task carries everything the worker needs (333.42831ms)
✔ a task that requires a feature reports it to the worker (294.14959ms)
✔ the standard conductor variables are present in the task environment (373.89555ms)
✔ the source tarball is served from the mirror (463.11842ms)
✔ a worker cannot touch a task it does not hold (308.20207ms)
✔ log appends are resumable and deduplicated by offset (327.41192ms)
✔ an oversized log chunk is refused (290.08509ms)
✔ a finished log moves to storage and is still readable (380.29301ms)
✔ artifacts are stored, hashed, and stripped of traversal (387.82505ms)
✔ an artifact shorter than its content-length is rejected (258.99742ms)
✔ success releases dependents, matched on shared dimensions (393.60936ms)
✔ failure skips transitive dependents, not just direct ones (297.93582ms)
✔ a job settles as failed once every task is terminal (397.72249ms)
✔ a job settles as success when everything passes (313.03053ms)
✔ an allowed failure does not fail the job or block dependents (424.07748ms)
✔ a task with retries left is requeued instead of failing the job (333.98429ms)
✔ heartbeats keep a task alive and report cancellation (300.1593ms)
✔ the reaper fails a task whose worker stopped reporting (422.20386ms)
✔ a second push produces an independent, numbered job (673.7481ms)
﹣ jobs can be listed and filtered by project (1.1689ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.40422ms) # the JSON API was removed
✔ a disabled project refuses triggers (171.61123ms)
✔ a trigger for an unknown project is a 404 (173.84166ms)
✔ a commit that is not in the repository is refused (240.18135ms)
✔ a task is told to fetch an archive, and never the repository itself (321.51664ms)
✔ the source archive is the bare tree, with no wrapping directory (433.50187ms)
✔ the working directory is resolved from the pipeline, then the project (1158.32754ms)
✔ an unusable working directory is refused rather than sanitised (1093.08649ms)
✔ the trigger secret is not stored in the clear (207.07286ms)
✔ worker tokens are stored only as hashes (166.37575ms)
✔ defaults select sqlite, local storage and local auth (6.38283ms)
✔ configuring an s3 bucket switches the storage driver (0.90158ms)
✔ a partial s3 configuration is rejected rather than half applied (1.61003ms)
✔ configuring an oidc discovery url switches the auth mode (0.86845ms)
✔ an oidc discovery url without a client id is rejected (0.61267ms)
✔ a database url selects its dialect (1.21116ms)
✔ an unsupported database scheme is reported clearly (1.23565ms)
✔ a sqlite url collapses into database.path (0.9616ms)
✔ environment variables override the config file (192.38974ms)
✔ relative paths resolve against the config file directory (9.43894ms)
✔ a missing explicit config file is an error, a missing default is not (5.03483ms)
✔ a heartbeat timeout below the reap interval is rejected (7.55354ms)
✔ a non-integer port is rejected with the variable named (0.89558ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.67901ms)
✔ stateDirs omits the storage directory when s3 is in use (1.72497ms)
✔ the loaded config is frozen (0.96696ms)
✔ topological order places dependencies first (14.02229ms)
✔ topological order is deterministic (10.72906ms)
✔ a cycle is detected and named (4.93503ms)
✔ depth reflects the longest path, not insertion order (2.31537ms)
✔ independent tasks are runnable at the same time (3.26243ms)
✔ a task becomes runnable only once every dependency succeeds (2.35448ms)
✔ a running dependency does not release its dependents (1.82364ms)
✔ failure skips transitive dependents, not just direct ones (2.62248ms)
✔ a skipped dependency never releases a dependent (3.04073ms)
✔ allowed failures can satisfy a dependency when asked to (2.7762ms)
✔ transitive dependents of a leaf is empty (1.86067ms)
✔ graph helpers tolerate dependencies outside the set (3.53048ms)
✔ dialect detection covers every supported scheme (4.49569ms)
✔ statement splitter respects literals and comments (0.89448ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.42959ms)
✔ migrations apply once and are idempotent (53.68009ms)
✔ an edited migration is refused rather than silently diverging (22.50444ms)
✔ a migration removed from disk is reported (13.51811ms)
✔ rows come back as ordinary objects (25.44348ms)
✔ a conditional update claims exactly once (17.52623ms)
✔ deleting a job cascades to its tasks (21.08131ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (22.90695ms)
﹣ migrations apply and retention sweeps on postgres (2.51833ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.20796ms) # SKIP
✔ every example pipeline compiles (49.02171ms)
✔ the distribution example fans in per architecture (9.43337ms)
✔ the node example wires services and features (4.70783ms)
✔ git jobs with safe.directory set (2.95402ms)
✔ it appends to configuration already in the environment (0.37133ms)
✔ a count that is not a number does not corrupt the sequence (0.39373ms)
✔ git accepts the environment we build (39.20232ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (51.56514ms)
﹣ the endpoints and key set come from the discovery document (2.10676ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (46.55139ms)
✔ discovery reports an unreachable provider and a bad status (1.3004ms)
﹣ a token carrying the admin role authenticates as an administrator (0.25126ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.16943ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.13701ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (1.46917ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.20648ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.22332ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.68036ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (4.02001ms) # the JSON API was removed
﹣ a forged signature is refused (0.43767ms) # the JSON API was removed
﹣ an expired token is refused (0.14056ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.22042ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.22349ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.23873ms) # docker is not available
﹣ a callback with a forged state is refused (0.18915ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.14511ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.11966ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.12533ms) # the JSON API was removed
✔ a pattern without a star matches exactly (2.01463ms)
✔ a star matches any job of characters (0.56079ms)
✔ the rest of a pattern is literal, not a regular expression (0.26435ms)
✔ a restricted task is left out of jobs for other refs (24.90618ms)
✔ it is left out rather than recorded as skipped (2.92409ms)
✔ tasks depending on an excluded task are excluded too (2.71758ms)
✔ depth and ordering describe the job that will happen (1.62303ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (2.22648ms)
✔ a restricted task cannot match a job that has no ref (3.59781ms)
✔ a malformed rule is reported rather than ignored (10.10874ms)
✔ the rule is not inherited from defaults (1.59304ms)
✔ a minimal pipeline compiles (23.96695ms)
✔ version is required and pinned (3.08772ms)
✔ empty and malformed documents are rejected clearly (3.30523ms)
✔ image and script are required (0.87459ms)
✔ image may come from defaults (1.30212ms)
✔ unknown keys are rejected, with a suggestion when close (3.94361ms)
✔ all problems are reported at once (1.52469ms)
✔ durations accept seconds, units and composites (3.39041ms)
✔ durations accept day and week units (1.61782ms)
✔ a malformed duration is rejected (1.16019ms)
✔ arch expands into one task per architecture (2.1801ms)
✔ a matrix expands to the cartesian product (1.49065ms)
✔ needs match on shared dimensions rather than fanning out (3.97564ms)
✔ a task without the shared dimension depends on every instance (1.30393ms)
✔ match all opts out of dimension matching (1.46208ms)
✔ needs may name one concrete instance (1.91411ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (1.15926ms)
✔ needs on an unknown task lists what is defined (0.97581ms)
✔ self dependency is rejected (0.73553ms)
✔ a dependency cycle names the cycle (2.00341ms)
✔ interpolation substitutes arch and matrix values (7.42138ms)
✔ interpolating an undefined dimension is an error (6.35187ms)
✔ referring to arch without declaring one is an error (11.17576ms)
✔ matrix values must be safe for use in a task name (1.00575ms)
✔ arch may not also be a matrix dimension (0.65564ms)
✔ services get a derived alias and reject duplicates (1.94498ms)
✔ artifacts accept a bare list and reject absolute paths (1.3377ms)
✔ artifact when is constrained (0.67279ms)
✔ defaults are inherited and overridden per task (1.42461ms)
✔ env values must be scalars with valid names (0.82835ms)
✔ parsePipeline normalizes without expanding (0.6712ms)
✔ a realistic distribution pipeline produces the expected graph (1.84175ms)
✔ compiles markers to the placeholder each dialect expects (6.60976ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.44112ms)
✔ ignores markers inside string literals and comments (0.665ms)
✔ a json literal in default text survives untouched (0.31728ms)
✔ doubling a brace escapes it (0.40495ms)
✔ block comments are skipped, and nest only for postgres (0.41697ms)
✔ postgres dollar quoted bodies are skipped (0.45655ms)
✔ mysql backtick identifiers and hash comments are skipped (0.59118ms)
✔ a malformed marker is rejected with a useful message (1.39906ms)
✔ binds by name, resolving dotted paths (1.26085ms)
✔ an exact key beats path traversal (0.40657ms)
✔ reports every missing key at once (0.65784ms)
✔ rejects an array of parameters, which would silently bind by position (1.17332ms)
✔ normalizes booleans, dates and null (0.88631ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.72945ms)
✔ an artifact past its own deadline is deleted (321.84489ms)
✔ an explicit deadline overrides the policy in both directions (287.54296ms)
✔ an explicit deadline also beats the last good job (146.06124ms)
✔ the last few jobs keep their artifacts however old they are (129.92646ms)
✔ recent artifacts are kept however many jobs have followed (103.40342ms)
✔ an artifact outside both rules is deleted (152.64528ms)
✔ the most recent successful job is kept whatever the policy says (137.61866ms)
✔ only the latest success is protected, not every success (190.69179ms)
✔ a project may keep artifacts forever despite a server default (149.51033ms)
✔ a project setting overrides the server default (104.07723ms)
✔ an unfinished job is never swept (97.9434ms)
✔ logs older than the limit are removed but the task remains (80.65325ms)
✔ a swept log is distinguishable from one that never existed (100.91109ms)
✔ a log is swept only once (102.78731ms)
✔ zero keeps logs forever (116.83326ms)
✔ a storage failure leaves the row for the next pass (88.99889ms)
✔ a sweep deletes no more than its batch (159.15011ms)
✔ one project policy does not reach into another (123.11723ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (286.33597ms)
﹣ the api reports and accepts project retention (0.29378ms) # the JSON API was removed
✔ seals and opens a value (6.61208ms)
✔ sealing twice produces different ciphertext (1.60054ms)
✔ without a key, values are stored as marked plaintext (0.65862ms)
✔ a keyed box can still read values written before a key existed (0.48212ms)
✔ an unkeyed box refuses encrypted values with an actionable message (2.33141ms)
✔ the wrong key fails to open (0.89167ms)
✔ tampering with the ciphertext is detected (1.28348ms)
✔ associated data binds a secret to its location (1.15014ms)
✔ a key of the wrong size is refused at construction (0.68349ms)
✔ task ids are opaque, and say nothing about their job (8.00938ms)
✔ time ordered ids sort by creation time (0.4138ms)
✔ random ids use the expected alphabet (3.29195ms)
✔ slugify produces readable project ids and falls back when empty (0.68088ms)
✔ token hashing and constant time comparison (1.80376ms)
✔ the pipeline this project jobs on itself compiles (41.08454ms)
✔ its tasks declare the features they actually need (11.49093ms)
✔ publishing is restricted to main and release tags (125.20874ms)
✔ get-vanilla matches the reference signature (4.38632ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.19025ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.31198ms)
✔ amzDate produces both required formats (0.31623ms)
✔ s3 requests carry the content hash header (0.81767ms)
✔ presigned urls carry the signature in the query string (2.76368ms)
✔ an already encoded path is not encoded a second time (0.9658ms)
✔ key validation rejects traversal and absolute paths (2.74213ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.45266ms)
✔ key layout is stable (0.76472ms)
✔ local backend round trips a buffer and reports its digest (38.74874ms)
✔ local backend serves ranges (7.84205ms)
✔ local backend accepts a stream (11.08577ms)
✔ local backend reports a missing object and deletes idempotently (22.11555ms)
✔ local backend has no presigned urls (8.15266ms)
✔ a partial write leaves no object behind (4.40933ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.07338ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (3.35324ms)
✔ inParts handles a chunk far larger than the part size (1.35724ms)
✔ inParts yields nothing for an empty stream (0.63457ms)
﹣ s3 backend round trips awkward keys against a real server (0.12039ms) # docker is not available
﹣ s3 serves byte ranges (0.12936ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.12513ms) # docker is not available
﹣ a presigned url is usable without credentials (0.23071ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.14957ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.09031ms) # docker is not available
﹣ a stream of unknown length is accepted (0.10224ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.09652ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.20011ms) # docker is not available
﹣ a multipart object still serves ranges (0.09075ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.07721ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.06413ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.05539ms) # docker is not available
✔ every javascript file parses (926.82286ms)
✔ the shell scripts parse (3.81485ms)
✔ interpolated values are escaped by default (2.70341ms)
✔ quotes and ampersands are escaped inside attributes (0.47853ms)
✔ nested templates and arrays are kept, raw is passed through (1.01585ms)
✔ null, undefined and false render as nothing (0.30552ms)
✔ attrs omits absent values and renders bare booleans (0.43194ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (518.18438ms)
✔ an anonymous visitor cannot see a private job (388.40105ms)
✔ management pages redirect an anonymous visitor to sign in (200.32217ms)
✔ signing in through the form sets a session and reveals the nav (272.39511ms)
✔ a user creates a project through the form and is shown the secret once (256.53972ms)
✔ a project page shows variables and never their values (236.96088ms)
✔ setting and removing a variable returns the updated table (289.13688ms)
✔ a user cannot open or delete a project they do not own (360.15873ms)
✔ registering a worker shows the token once and lists it (224.19496ms)
✔ an ordinary user cannot create shared capacity from the form (341.25649ms)
✔ the users page is administrator only and warns about what deletion destroys (381.97375ms)
✔ a running job polls, and a finished one stops (436.28551ms)
✔ a task page streams the log and stops polling once it completes (400.98512ms)
✔ log output is escaped, so a task cannot inject markup into the page (476.33614ms)
✔ a mutation without the htmx header is refused (258.31119ms)
✔ the sign in form is centred rather than stranded at the left edge (219.23902ms)
✔ row actions stay ordinary table cells, so rows keep one height (252.85639ms)
✔ the stylesheet and htmx are served, and nothing else is (184.07412ms)
✔ the project page shows retention, with server defaults as placeholders (190.60909ms)
✔ saving retention through the form stores it, and empty means inherit (251.879ms)
✔ a negative retention value is refused by the form (244.0705ms)
✔ the project page offers a working directory, defaulting to the server one (194.79785ms)
✔ saving a working directory stores it, and empty clears it (206.71253ms)
✔ an unusable working directory is refused by the form (276.47264ms)
✔ worker config loads from json and reports features (28.07465ms)
✔ worker config reads the token from a file (6.85576ms)
✔ environment overrides the worker config file (4.09643ms)
✔ worker config without a token is rejected (7.56705ms)
✔ a malformed feature is reported with its path (3.73488ms)
✔ shell quoting survives quotes and metacharacters (0.60885ms)
✔ a generated script echoes each command and stops on failure (0.51862ms)
✔ container names are valid for docker and stay unique (1.51065ms)
✔ job arguments carry mounts, env, network and privilege (0.85846ms)
✔ a task container is created without sharing anything with the worker (0.84724ms)
✔ a feature still contributes its bind mounts (0.30031ms)
✔ features resolve into mounts, env and privilege (0.61087ms)
✔ an unknown required feature is reported rather than ignored (0.2406ms)
✔ an artifact pattern reduces to the part that can be copied out (0.78241ms)
✔ overlapping artifact paths are copied out once (0.68127ms)
✔ artifact collection globs, and refuses to leave the workspace (25.48603ms)
✔ artifact when controls collection (0.41424ms)
✔ an idle worker keeps running instead of exiting (4013.71847ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1519.6599ms)
✔ log output is batched and offsets advance (1.83723ms)
✔ a conflicting offset resynchronises instead of duplicating (0.58243ms)
✔ secrets are masked before anything leaves the host (0.86873ms)
✔ a secret split across two writes is still masked (0.43639ms)
✔ a failing conductor does not break the task (0.66602ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 19999.71355
[conductor] done