Skip to content

test: add WDL workflows for Conquest test - #212

Merged
uniqueg merged 2 commits into
devfrom
issue-193-wdl-workflows
Dec 3, 2026
Merged

uniqueg merged 2 commits into
devfrom
issue-193-wdl-workflows

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds three WDL 1.0 workflows for the integration test against Conquest (#211), in tests/integration/conquest/workflows/:

  • hello: writes the run's message to greeting.txt, an output of the run. The message reaches the task as a file (write_lines), never as shell code.
  • fail: its only task exits with status 1.
  • sleep: sleeps for the run's seconds, for runs that are canceled while they run.

Their tasks run in debian:13.8-slim, pinned by digest. miniwdl runs task commands with bash, so Alpine doesn't work.

This PR is preparation only. Conquest fetches workflows from GitHub repositories, cloned at a commit of a branch, so the workflows must be on dev before #211 can pin them and add the WDL checks. Nothing uses them until then.

Part of #193 (closed by #211)

Light lane: test data only (three workflow files, no code, CI or config). I reviewed the diff myself.

Verification

  • Ran directly against Conquest 3147d10 on a local kind cluster, at this branch's head, with these results:
    • hello with the message Hello; $(id) from WDL: COMPLETE, task exit code 0, and greeting.txt in Conquest's store holds the message verbatim.
    • fail: EXECUTOR_ERROR, task exit code 1.
    • sleep (600 s), canceled once its task Pod ran: CANCELED, with no Pods left.
  • pre-commit run on the files: passed.
  • CI on 944d428 (run 47150117504): all checks pass.

Merge gate: none. #211 then pins the merge commit.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

New Features:

  • Add WDL test workflows for producing a greeting output, exiting with failure, and remaining active for cancellation tests.

uniqueg and others added 2 commits December 3, 2026 17:01
Three WDL 1.0 workflows (a run that completes and writes a message to
an output file, one that fails, one that sleeps) for the integration
test against Conquest, which fetches workflows from this repository at
a commit of dev; their tasks run in an Alpine image pinned by digest.

Part of #193

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miniwdl runs task commands with bash, which Alpine lacks: the tasks
failed with exit status 1. Debian 13.8 slim, pinned by digest, has it.

Part of #193

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Reviewer's Guide

Tests

Add WDL fixtures for Conquest integration tests covering successful output, task failure, and cancellation during a long-running task.

  • tests/integration/conquest/workflows/fail/main.wdl L1-24
  • tests/integration/conquest/workflows/hello/main.wdl L1-37
  • tests/integration/conquest/workflows/sleep/main.wdl L1-28

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9026a1a) to head (944d428).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #212   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1404      1404           
=========================================
  Hits          1404      1404           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review December 3, 2026 16:35

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 5f501d5 into dev Dec 3, 2026
42 checks passed
@uniqueg
uniqueg deleted the issue-193-wdl-workflows branch December 3, 2026 16:39
uniqueg added a commit that referenced this pull request Dec 3, 2026
WORKFLOW_REVISION moves to 5f501d5, the commit of the WDL workflows on
dev (#212). The docs link the Conquest issue about Nextflow runs
(elixir-cloud-aai/generic-issues#194). The workflow-type table carries
the output key of the greeting instead of a WDL special case and the
path with {} instead of a printf format. check.sh refuses contexts
other than the kind cluster's, limits its kubectl calls to 60 seconds
and reads only s3:// objects. Comments and docs are rewrapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
uniqueg added a commit that referenced this pull request Dec 3, 2026
* test: add Conquest integration test

Run proWES against Conquest on a kind cluster: setup.sh applies
PostgreSQL, an S3 server (versitygw) and their Secrets, and installs
Conquest's chart from a pinned commit with its images pinned by digest.
proWES joins kind's Docker network and reaches Conquest at a node port.
Runs of the WESkit test's Snakefiles, fetched by Conquest from this
repository at a commit of dev, complete, fail and are canceled; the
test checks them at proWES and at Conquest (state, tasks, runner gone).

The integration matrix gets the entry Conquest with a kind cluster.
report_versions accepts service info without type, as Conquest's is.
check-yaml allows multi-document YAML for the Kubernetes manifests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: harden Conquest integration test

Cancel the sleeping run once its task Pod runs, and check that its
runner and task Pods are gone (by the run's label). setup.sh refuses
contexts other than its kind cluster, whose name and node port are
fixed. report_versions checks the type where a service info has one.
CI shows runner and task logs on failure. Only cluster.yaml may have
several YAML documents. The docs keep the kubeconfig out of the
repository and list the Helm and kind pins of three jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: pin Conquest workflows to dev commit

The runs fetch the WESkit test's Snakefiles from this repository at
9026a1a, the commit of the WESkit test on dev (#209), instead of a
commit of its pull request, which a clone of dev doesn't hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: tighten Conquest cluster and Pod checks

setup.sh also checks that the context kind-prowes-conquest points to
the API server of the kind cluster of that name. The Pod checks after a
cancel let kubectl errors fail the test instead of reading as no Pods,
and require that no Pod of the run is left in any phase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: run Conquest checks for WDL as well

The Conquest test runs its checks (complete, fail, cancel while running)
for Snakemake and WDL, whose workflows Conquest fetches from this
repository at a commit of dev; for WDL it also reads the greeting from
Conquest's S3 server. The docs say why Nextflow isn't covered: Nextflow
24.10.4, which Conquest's runner runs, refuses a repository without
main.nf at its root before it applies -main-script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: pin Conquest WDL workflows and tidy test

WORKFLOW_REVISION moves to 5f501d5, the commit of the WDL workflows on
dev (#212). The docs link the Conquest issue about Nextflow runs
(elixir-cloud-aai/generic-issues#194). The workflow-type table carries
the output key of the greeting instead of a WDL special case and the
path with {} instead of a printf format. check.sh refuses contexts
other than the kind cluster's, limits its kubectl calls to 60 seconds
and reads only s3:// objects. Comments and docs are rewrapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: quote workflow name in Conquest test path

Quote the workflow name in the path substitution (bash 5.2 replaces &
in an unquoted replacement) and rewrap the header comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: harden Conquest test cancel and cleanup

kind.sh holds the cluster guard that setup.sh and check.sh now share:
the context must be kind-prowes-conquest and point to that cluster's
API server. The cancel check waits for a non-empty task Pod line (an
empty Pod list read as a task before). The sleep run is tagged with a
value of its own before it is created, and create() sets running
itself; on_exit finds a run by that tag when its identifier never
arrived (a lost response) and cancels it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: simplify run cleanup helpers of tests

tagged_runs filters the run list, which has the runs' tags, in one
request; quietly sends any authenticated request without checks, also
the cancel in on_exit. check.sh names Conquest's host from the cluster
name of kind.sh and lists kind among its requirements, as the docs do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant