onepub-dev / onepub-dev/pub_release

Support multi-phase test runs.

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
18
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The conduit project has a number of tests that cannot be run in parallel.

One suggested approach is that we allow a multi-stage testing process.

Each stage would run using a specific set of tags.

This will probably need to be done via a config file as the cli arguments would be a bit complex

pub_release -staged=single,parallel

Something like the above might work. This would create two stages on run with the 'single' tag and one run with the 'parallel' tag.

We would need to allow quoting of these as dart tests tags support tag expressions.
e.g.
single && !windows

We could create a config file pub_release.yaml with the following sections:

stages:
stage:
tag: single
thread: 1
stage: parallel
threads: 4
stage: single && !windows

One issue with the above approach is that we may need different switches for each stage.

For example conduit needs different -j1 switches pass in each stage.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pub_release CLI and the proposed pub_release.yaml staging configuration. Determine how stages, tag expressions, thread counts, and per-stage switches should be represented and executed. Done means multi-phase runs can execute single-threaded and parallel tag groups, including quoted expressions and stage-specific options.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.