feat: add optional platform and token_env fields to input samplesheet - #120
Merged
FloWuenne merged 3 commits intoApr 14, 2026
Merged
Conversation
… (SE-107) Allow mixing runs from different Seqera Platform instances in a single benchmark by adding two optional columns to the input CSV: - platform: Seqera Platform API URL override (falls back to --seqera_api_endpoint) - token_env: env-var name holding the bearer token (falls back to TOWER_ACCESS_TOKEN) Both fields are fully backward-compatible. The per-row overrides are honoured in the benchmark report path (SeqeraApi.fetchRunData); the tw CLI path (SEQERA_RUNS_DUMP) still uses global config.
FloWuenne
force-pushed
the
edmund/se-107-add-optional-platform-field-to-nf-aggregate-input
branch
from
April 14, 2026 16:10
b3cfa56 to
4ea8d52
Compare
Existing fetch tests mocked httpx.get but the code migrated to urllib; fix by patching urlopen instead. Add tests for alternate API endpoints, HTTP error propagation (401/500/503/URLError), and end-to-end pipeline with per-row platform/token_env metadata fields. Co-Authored-By: Claude <noreply@anthropic.com>
The default accent was updated to #065647 during the brand refresh but the test assertion still expected the old #087F68. Co-Authored-By: Claude <noreply@anthropic.com>
FloWuenne
marked this pull request as ready for review
April 14, 2026 17:57
FloWuenne
approved these changes
Apr 14, 2026
FloWuenne
deleted the
edmund/se-107-add-optional-platform-field-to-nf-aggregate-input
branch
April 14, 2026 17:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional
platformandtoken_envcolumns to the input samplesheet so runs from different Seqera Platform instances can be mixed in a single nf-aggregate benchmark.Closes SE-107
Problem
nf-aggregate uses a single
--seqera_api_endpointandTOWER_ACCESS_TOKENfor all runs. This makes it impossible to benchmark runs that span multiple Platform instances (e.g. prod + staging) in a single report.Changes
assets/schema_input.jsonplatform(API URL) andtoken_env(env var name) fieldslib/SeqeraApi.groovyfetchRunDatauses per-run endpoint/token when provided, falls back to globalsworkflows/nf_aggregate/main.nfplatform/token_envin output JSON; documentSEQERA_RUNS_DUMPlimitationsubworkflows/local/utils_nf_aggregate/main.nfUsage
Both columns are optional — omitting them preserves existing behavior (
--seqera_api_endpoint+TOWER_ACCESS_TOKEN).Limitations
SeqeraApi.fetchRunData) honours per-row overridesSEQERA_RUNS_DUMP(used for MultiQC/Gantt) still uses the global endpoint/token