conductor

sign in

test

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

log

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

✔ every tracked text file is pure ASCII (215.844371ms)
✔ no file uses CRLF line endings or trailing whitespace (115.476044ms)
✔ a password round trips and a wrong one is refused (48.696723ms)
✔ the same password hashes differently each time (39.249375ms)
✔ parameters are read back from the stored hash (41.432669ms)
✔ a malformed stored hash is refused rather than throwing (0.615337ms)
✔ password length is bounded (0.776857ms)
✔ a session token round trips its claims (2.599275ms)
✔ a token signed with another secret is refused (0.739837ms)
✔ a tampered payload is refused (0.56133ms)
✔ an expired token is refused (0.844466ms)
✔ a malformed token is refused rather than throwing (0.749437ms)
✔ cookies are parsed and issued (2.813768ms)
✔ the oidc login state round trips with its return path (1.857241ms)
✔ a missing return path means the root (0.412602ms)
✔ the oidc login state is refused when forged, stale or off-site (0.482771ms)
✔ oidc roles are collected from the usual claim shapes (1.11453ms)
✔ mask replaces secrets, longest first (0.610901ms)
✔ mask ignores very short values and leaves clean output alone (0.363818ms)
✔ health reports the selected drivers (336.621771ms)
✔ a signed trigger creates a job and expands the pipeline (208.880955ms)
✔ an unsigned or wrongly signed trigger is refused (107.022877ms)
✔ github and gitlab push payloads are understood (307.811426ms)
✔ a branch deletion is ignored rather than failing (107.918444ms)
✔ a broken pipeline is reported as a client error with detail (220.542839ms)
✔ a missing pipeline file is reported clearly (238.198262ms)
✔ a pipeline may be spelled .conductor.yaml instead of .conductor.yml (218.744457ms)
✔ a project pointed at a specific file gets no fallback (208.62231ms)
✔ a repository carrying both spellings is refused rather than guessed at (258.952474ms)
✔ a pipeline still using the jobs key is told what it was renamed to (284.165613ms)
✔ a job can be created directly, without a push payload to imitate (230.578999ms)
✔ creating a job requires the same signature as a trigger (90.99993ms)
✔ creating a job insists on a real commit rather than inferring one (112.190372ms)
✔ a job can be read back, with the state of every task (205.950891ms)
✔ a public job is readable without any credential at all (237.482903ms)
✔ a private job needs the trigger secret, and is otherwise absent (259.769313ms)
✔ a job of another project cannot be read through this one (216.129559ms)
✔ a task can be read back on its own, and by its full name (254.331288ms)
✔ reading a task back carries its dependencies and matrix (201.160614ms)
✔ reading a task back never exposes its environment, services or script (230.037541ms)
✔ a task lists the artifacts it stored, with a usable download url (284.9784ms)
✔ reading a task back needs no worker token (209.053761ms)
✔ a private task is absent without a credential, and needs its project named (258.013961ms)
✔ a private task is readable by an administrator, by either path (467.220978ms)
✔ a task of another project cannot be read through this one (234.716054ms)
✔ an unknown task is 404 by either path (136.746065ms)
✔ the worker api rejects missing and invalid tokens (152.27526ms)
✔ independent tasks dispatch concurrently (238.135607ms)
✔ a task is only offered to a worker that satisfies its requires (233.663259ms)
✔ a worker is not offered work for an architecture it cannot build (238.814575ms)
✔ a claimed task carries everything the worker needs (200.514626ms)
✔ a task that requires a feature reports it to the worker (257.586915ms)
✔ the standard conductor variables are present in the task environment (237.467149ms)
✔ the source tarball is served from the mirror (255.992623ms)
✔ a worker cannot touch a task it does not hold (232.120128ms)
✔ log appends are resumable and deduplicated by offset (240.336983ms)
✔ an oversized log chunk is refused (227.842087ms)
✔ a finished log moves to storage and is still readable (263.135873ms)
✔ artifacts are stored, hashed, and stripped of traversal (202.134009ms)
✔ an artifact shorter than its content-length is rejected (201.067619ms)
✔ success releases dependents, matched on shared dimensions (259.933739ms)
✔ failure skips transitive dependents, not just direct ones (259.338136ms)
✔ a job settles as failed once every task is terminal (292.946014ms)
✔ a job settles as success when everything passes (221.23521ms)
✔ an allowed failure does not fail the job or block dependents (255.178529ms)
✔ a task with retries left is requeued instead of failing the job (250.966879ms)
✔ heartbeats keep a task alive and report cancellation (214.981702ms)
✔ the reaper fails a task whose worker stopped reporting (292.540655ms)
✔ a second push produces an independent, numbered job (387.359942ms)
﹣ jobs can be listed and filtered by project (0.696999ms) # the JSON API was removed
﹣ unknown jobs, tasks and artifacts return 404 (0.249186ms) # the JSON API was removed
✔ a disabled project refuses triggers (140.110801ms)
✔ a trigger for an unknown project is a 404 (127.015304ms)
✔ a commit that is not in the repository is refused (221.645787ms)
✔ a task is told to fetch an archive, and never the repository itself (222.569397ms)
✔ the source archive is the bare tree, with no wrapping directory (262.49288ms)
✔ the working directory is resolved from the pipeline, then the project (702.693701ms)
✔ an unusable working directory is refused rather than sanitised (955.124071ms)
✔ the trigger secret is not stored in the clear (130.956511ms)
✔ worker tokens are stored only as hashes (90.28648ms)
✔ defaults select sqlite, local storage and local auth (9.110666ms)
✔ configuring an s3 bucket switches the storage driver (2.494021ms)
✔ a partial s3 configuration is rejected rather than half applied (2.630566ms)
✔ configuring an oidc discovery url switches the auth mode (2.324104ms)
✔ an oidc discovery url without a client id is rejected (1.52428ms)
✔ a database url selects its dialect (2.609636ms)
✔ an unsupported database scheme is reported clearly (1.772726ms)
✔ a sqlite url collapses into database.path (4.567169ms)
✔ environment variables override the config file (73.342216ms)
✔ relative paths resolve against the config file directory (6.385037ms)
✔ a missing explicit config file is an error, a missing default is not (2.573141ms)
✔ a heartbeat timeout below the reap interval is rejected (12.064499ms)
✔ a non-integer port is rejected with the variable named (4.303681ms)
✔ parseKey accepts hex and base64, and rejects the wrong length (0.831749ms)
✔ stateDirs omits the storage directory when s3 is in use (5.544402ms)
✔ the loaded config is frozen (1.034302ms)
✔ topological order places dependencies first (4.912325ms)
✔ topological order is deterministic (6.522791ms)
✔ a cycle is detected and named (1.952843ms)
✔ depth reflects the longest path, not insertion order (0.904879ms)
✔ independent tasks are runnable at the same time (1.581431ms)
✔ a task becomes runnable only once every dependency succeeds (0.8334ms)
✔ a running dependency does not release its dependents (0.670939ms)
✔ failure skips transitive dependents, not just direct ones (1.048236ms)
✔ a skipped dependency never releases a dependent (2.32065ms)
✔ allowed failures can satisfy a dependency when asked to (1.685742ms)
✔ transitive dependents of a leaf is empty (0.825151ms)
✔ graph helpers tolerate dependencies outside the set (0.869999ms)
✔ dialect detection covers every supported scheme (4.360133ms)
✔ statement splitter respects literals and comments (1.392657ms)
✔ statement splitter keeps postgres dollar quoted bodies whole (0.608091ms)
✔ migrations apply once and are idempotent (104.438089ms)
✔ an edited migration is refused rather than silently diverging (45.421059ms)
✔ a migration removed from disk is reported (37.972325ms)
✔ rows come back as ordinary objects (39.941162ms)
✔ a conditional update claims exactly once (39.017257ms)
✔ deleting a job cascades to its tasks (47.982596ms)
✔ a failed transaction rolls back, and a failed savepoint keeps the outer work (50.557206ms)
﹣ migrations apply and retention sweeps on postgres (2.852679ms) # SKIP
﹣ migrations apply and retention sweeps on mysql (0.385585ms) # SKIP
✔ every example pipeline compiles (88.136264ms)
✔ the distribution example fans in per architecture (25.755376ms)
✔ the node example wires services and features (23.499401ms)
✔ git jobs with safe.directory set (3.913264ms)
✔ it appends to configuration already in the environment (0.557622ms)
✔ a count that is not a number does not corrupt the sequence (0.60611ms)
✔ git accepts the environment we build (59.344443ms)
✔ a file missing from a commit reads as missing, whatever sits in the working directory (94.886269ms)
﹣ the endpoints and key set come from the discovery document (4.275713ms) # docker is not available
✔ discovery reports a document that is missing an endpoint (50.39402ms)
✔ discovery reports an unreachable provider and a bad status (2.024189ms)
﹣ a token carrying the admin role authenticates as an administrator (0.332526ms) # the JSON API was removed
﹣ a token without the admin role is an ordinary user (0.306864ms) # the JSON API was removed
﹣ roles are recognised in the groups and resource_access shapes (0.262418ms) # the JSON API was removed
﹣ an OIDC user gets a local account and can own a project (0.352198ms) # the JSON API was removed
﹣ the same subject keeps one account even when the display name changes (0.373841ms) # the JSON API was removed
﹣ a display name colliding with a local account gets its own username (0.422412ms) # the JSON API was removed
﹣ a role revoked at the provider is lost on the next request (0.479064ms) # the JSON API was removed
﹣ an account disabled locally is refused despite a valid token (0.2918ms) # the JSON API was removed
﹣ a forged signature is refused (2.177657ms) # the JSON API was removed
﹣ an expired token is refused (0.294892ms) # the JSON API was removed
﹣ a token from a different issuer is refused (0.403204ms) # the JSON API was removed
﹣ an anonymous visitor asking for a protected page is sent to the provider (0.351026ms) # docker is not available
﹣ a browser signs in at the provider and comes back with a session (0.28402ms) # docker is not available
﹣ a callback with a forged state is refused (0.146695ms) # docker is not available
﹣ local passwords are refused while OIDC is in charge (0.167232ms) # the JSON API was removed
﹣ an OIDC administrator can drive the interface (0.086455ms) # docker is not available
﹣ worker ownership follows the OIDC identity (0.093078ms) # the JSON API was removed
✔ a pattern without a star matches exactly (15.061566ms)
✔ a star matches any job of characters (1.07322ms)
✔ the rest of a pattern is literal, not a regular expression (5.950543ms)
✔ a restricted task is left out of jobs for other refs (62.650039ms)
✔ it is left out rather than recorded as skipped (6.049846ms)
✔ tasks depending on an excluded task are excluded too (13.495285ms)
✔ depth and ordering describe the job that will happen (8.038675ms)
✔ without a ref nothing is filtered, so a pipeline can still be validated (12.567856ms)
✔ a restricted task cannot match a job that has no ref (2.772713ms)
✔ a malformed rule is reported rather than ignored (18.275254ms)
✔ the rule is not inherited from defaults (4.221811ms)
✔ a minimal pipeline compiles (34.603811ms)
✔ version is required and pinned (7.105323ms)
✔ empty and malformed documents are rejected clearly (5.223454ms)
✔ image and script are required (1.702882ms)
✔ image may come from defaults (3.5089ms)
✔ unknown keys are rejected, with a suggestion when close (6.563717ms)
✔ all problems are reported at once (4.206117ms)
✔ durations accept seconds, units and composites (4.936018ms)
✔ durations accept day and week units (5.490984ms)
✔ a malformed duration is rejected (2.881069ms)
✔ arch expands into one task per architecture (3.730775ms)
✔ a matrix expands to the cartesian product (3.171296ms)
✔ needs match on shared dimensions rather than fanning out (12.133505ms)
✔ a task without the shared dimension depends on every instance (3.105267ms)
✔ match all opts out of dimension matching (7.969535ms)
✔ needs may name one concrete instance (4.087726ms)
✔ an unsatisfiable dimension match is reported, not silently dropped (2.286665ms)
✔ needs on an unknown task lists what is defined (1.225447ms)
✔ self dependency is rejected (3.512439ms)
✔ a dependency cycle names the cycle (7.873459ms)
✔ interpolation substitutes arch and matrix values (2.108251ms)
✔ interpolating an undefined dimension is an error (2.27845ms)
✔ referring to arch without declaring one is an error (1.074408ms)
✔ matrix values must be safe for use in a task name (1.66576ms)
✔ arch may not also be a matrix dimension (1.461327ms)
✔ services get a derived alias and reject duplicates (6.607316ms)
✔ artifacts accept a bare list and reject absolute paths (2.425436ms)
✔ artifact when is constrained (2.990591ms)
✔ defaults are inherited and overridden per task (2.121844ms)
✔ env values must be scalars with valid names (1.952137ms)
✔ parsePipeline normalizes without expanding (1.289686ms)
✔ a realistic distribution pipeline produces the expected graph (3.123368ms)
✔ compiles markers to the placeholder each dialect expects (9.231989ms)
✔ numbers postgres placeholders per occurrence, including repeats (0.495978ms)
✔ ignores markers inside string literals and comments (0.651802ms)
✔ a json literal in default text survives untouched (0.436732ms)
✔ doubling a brace escapes it (0.492537ms)
✔ block comments are skipped, and nest only for postgres (0.491134ms)
✔ postgres dollar quoted bodies are skipped (0.552009ms)
✔ mysql backtick identifiers and hash comments are skipped (0.607812ms)
✔ a malformed marker is rejected with a useful message (3.36821ms)
✔ binds by name, resolving dotted paths (2.119904ms)
✔ an exact key beats path traversal (0.733357ms)
✔ reports every missing key at once (0.674729ms)
✔ rejects an array of parameters, which would silently bind by position (2.253372ms)
✔ normalizes booleans, dates and null (0.431101ms)
✔ rejects an object value, which is nearly always a forgotten stringify (0.466931ms)
✔ an artifact past its own deadline is deleted (328.544358ms)
✔ an explicit deadline overrides the policy in both directions (232.01838ms)
✔ an explicit deadline also beats the last good job (106.76388ms)
✔ the last few jobs keep their artifacts however old they are (122.525627ms)
✔ recent artifacts are kept however many jobs have followed (94.328115ms)
✔ an artifact outside both rules is deleted (105.901025ms)
✔ the most recent successful job is kept whatever the policy says (123.733191ms)
✔ only the latest success is protected, not every success (103.409721ms)
✔ a project may keep artifacts forever despite a server default (115.872057ms)
✔ a project setting overrides the server default (120.08711ms)
✔ an unfinished job is never swept (112.004095ms)
✔ logs older than the limit are removed but the task remains (89.660766ms)
✔ a swept log is distinguishable from one that never existed (91.372543ms)
✔ a log is swept only once (96.220949ms)
✔ zero keeps logs forever (83.520466ms)
✔ a storage failure leaves the row for the next pass (93.474436ms)
✔ a sweep deletes no more than its batch (135.393627ms)
✔ one project policy does not reach into another (105.860183ms)
✔ artifacts.expire in a pipeline reaches the stored artifact (260.494632ms)
﹣ the api reports and accepts project retention (0.416209ms) # the JSON API was removed
✔ seals and opens a value (7.86353ms)
✔ sealing twice produces different ciphertext (1.334047ms)
✔ without a key, values are stored as marked plaintext (0.633104ms)
✔ a keyed box can still read values written before a key existed (0.570369ms)
✔ an unkeyed box refuses encrypted values with an actionable message (1.724052ms)
✔ the wrong key fails to open (1.06716ms)
✔ tampering with the ciphertext is detected (0.940818ms)
✔ associated data binds a secret to its location (3.106547ms)
✔ a key of the wrong size is refused at construction (1.979047ms)
✔ task ids are opaque, and say nothing about their job (13.302063ms)
✔ time ordered ids sort by creation time (0.772739ms)
✔ random ids use the expected alphabet (0.597978ms)
✔ slugify produces readable project ids and falls back when empty (0.838831ms)
✔ token hashing and constant time comparison (2.388214ms)
✔ the pipeline this project jobs on itself compiles (65.066555ms)
✔ its tasks declare the features they actually need (14.990768ms)
✔ publishing is restricted to main and release tags (51.50447ms)
✔ get-vanilla matches the reference signature (5.163437ms)
✔ get-vanilla-query-order-key-case matches the reference signature (1.707199ms)
✔ uriEncode percent encodes the characters encodeURIComponent leaves alone (0.494904ms)
✔ amzDate produces both required formats (0.608513ms)
✔ s3 requests carry the content hash header (1.509547ms)
✔ presigned urls carry the signature in the query string (4.988887ms)
✔ an already encoded path is not encoded a second time (1.495438ms)
✔ key validation rejects traversal and absolute paths (5.0724ms)
✔ sanitizeRelativePath strips traversal from worker supplied paths (0.800588ms)
✔ key layout is stable (0.769603ms)
✔ local backend round trips a buffer and reports its digest (34.068219ms)
✔ local backend serves ranges (7.839122ms)
✔ local backend accepts a stream (15.286473ms)
✔ local backend reports a missing object and deletes idempotently (4.857525ms)
✔ local backend has no presigned urls (5.274531ms)
✔ a partial write leaves no object behind (4.29908ms)
✔ part size grows so that a huge object still fits in 10000 parts (1.235931ms)
✔ inParts regroups an awkwardly chunked stream into fixed parts (6.792373ms)
✔ inParts handles a chunk far larger than the part size (1.181299ms)
✔ inParts yields nothing for an empty stream (5.464961ms)
﹣ s3 backend round trips awkward keys against a real server (0.166644ms) # docker is not available
﹣ s3 serves byte ranges (0.131417ms) # docker is not available
﹣ s3 accepts a stream when the size is known (0.116662ms) # docker is not available
﹣ a presigned url is usable without credentials (0.190392ms) # docker is not available
﹣ a tampered presigned url is rejected by the server (0.465971ms) # docker is not available
﹣ s3 reports a missing object and deletes idempotently (0.135385ms) # docker is not available
﹣ a stream of unknown length is accepted (0.120485ms) # docker is not available
﹣ a body past the single request threshold is uploaded in parts (0.116838ms) # docker is not available
﹣ a large body really is sent as several parts, and a small one is not (0.142964ms) # docker is not available
﹣ a multipart object still serves ranges (0.119821ms) # docker is not available
﹣ a body that does not match its declared size is rejected (0.100999ms) # docker is not available
﹣ a failed multipart upload does not leave parts behind (0.094038ms) # docker is not available
﹣ bad credentials fail loudly rather than silently storing nothing (0.092976ms) # docker is not available
✔ every javascript file parses (960.81545ms)
✔ the shell scripts parse (3.22957ms)
✔ interpolated values are escaped by default (3.607962ms)
✔ quotes and ampersands are escaped inside attributes (0.709019ms)
✔ nested templates and arrays are kept, raw is passed through (0.559792ms)
✔ null, undefined and false render as nothing (0.32702ms)
✔ attrs omits absent values and renders bare booleans (0.497009ms)
✔ an anonymous visitor sees public jobs and an invitation to sign in (531.78991ms)
✔ an anonymous visitor cannot see a private job (335.182957ms)
✔ management pages redirect an anonymous visitor to sign in (243.338937ms)
✔ signing in through the form sets a session and reveals the nav (409.206944ms)
✔ a user creates a project through the form and is shown the secret once (331.11643ms)
✔ a project page shows variables and never their values (341.37824ms)
✔ setting and removing a variable returns the updated table (337.103266ms)
✔ a user cannot open or delete a project they do not own (559.078832ms)
✔ registering a worker shows the token once and lists it (361.062822ms)
✔ an ordinary user cannot create shared capacity from the form (481.86546ms)
✔ the users page is administrator only and warns about what deletion destroys (518.964601ms)
✔ a running job polls, and a finished one stops (423.918128ms)
✔ a task page streams the log and stops polling once it completes (391.960521ms)
✔ log output is escaped, so a task cannot inject markup into the page (390.925206ms)
✔ a mutation without the htmx header is refused (343.327903ms)
✔ the sign in form is centred rather than stranded at the left edge (245.698316ms)
✔ row actions stay ordinary table cells, so rows keep one height (365.221737ms)
✔ the stylesheet and htmx are served, and nothing else is (157.249434ms)
✔ the project page shows retention, with server defaults as placeholders (319.29268ms)
✔ saving retention through the form stores it, and empty means inherit (365.97521ms)
✔ a negative retention value is refused by the form (357.424305ms)
✔ the project page offers a working directory, defaulting to the server one (314.79818ms)
✔ saving a working directory stores it, and empty clears it (325.965554ms)
✔ an unusable working directory is refused by the form (349.799332ms)
✔ worker config loads from json and reports features (21.275026ms)
✔ worker config reads the token from a file (5.233571ms)
✔ environment overrides the worker config file (4.916488ms)
✔ worker config without a token is rejected (5.087866ms)
✔ a malformed feature is reported with its path (3.759974ms)
✔ shell quoting survives quotes and metacharacters (0.54845ms)
✔ a generated script echoes each command and stops on failure (0.640001ms)
✔ container names are valid for docker and stay unique (1.902085ms)
✔ job arguments carry mounts, env, network and privilege (1.074886ms)
✔ a task container is created without sharing anything with the worker (1.056952ms)
✔ a feature still contributes its bind mounts (0.465519ms)
✔ features resolve into mounts, env and privilege (0.675519ms)
✔ an unknown required feature is reported rather than ignored (0.2521ms)
✔ an artifact pattern reduces to the part that can be copied out (0.484777ms)
✔ overlapping artifact paths are copied out once (0.77851ms)
✔ artifact collection globs, and refuses to leave the workspace (38.598203ms)
✔ artifact when controls collection (0.424806ms)
✔ an idle worker keeps running instead of exiting (4013.821803ms)
✔ a worker stops promptly on a signal rather than after its poll interval (1523.64589ms)
✔ log output is batched and offsets advance (4.126401ms)
✔ a conflicting offset resynchronises instead of duplicating (1.201996ms)
✔ secrets are masked before anything leaves the host (1.593358ms)
✔ a secret split across two writes is still masked (0.89087ms)
✔ a failing conductor does not break the task (1.388252ms)
ℹ tests 331
ℹ suites 0
ℹ pass 295
ℹ fail 0
ℹ cancelled 0
ℹ skipped 36
ℹ todo 0
ℹ duration_ms 15207.19333
[conductor] done