oasisprotocol / oasisprotocol/cli

examples: Make examples run in parallel

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

Nobody has claimed this yet.

ci enhancement
Dominant language
Go
Stars
80
Forks
23
Avg merge
9h 43m
Merged PRs (30d)
3

Description

The make examples target takes quite some time and it will take even more in the future. Fix the Makefile rule so that -j flag will work. scripts/gen_example.sh already supports parallelism, but steps inside the same scenario need to be run sequentially. All scenarios shall be run in parallel, but all steps inside each of it sequentially. Some refactoring can also be done (e.g. examples/network.01.in ... examples/network.07.in could be moved into examples/network/01.in along with its config file and any other assets).

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 make examples target in the Makefile and read scripts/gen_example.sh, which already supports parallelism. Run make examples to observe the current ordering, then verify that separate scenarios can run concurrently while steps within each scenario remain sequential. Confirm the target completes successfully with -j enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, shell
Domain
build-system, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.