Files
Piotr Galar ea29eed4d1 feat(ci): run unit test jobs on arm64 machines additionally (#12864)
* chore: move test metadata retrieval to a new Go CLI tool

* ci: install go before retrieving test group metadata

* ci: run unit tests on arm64 machines

* ci: fix the packages metadata

* ci: cache deps per runner os and arch

* chore: rename name to testGroupName where applicable

* chore: add createPackagePath helper

* chore: turn runners into an enumerated type

* chore: sort testGroupNamesToRunners

* chore: rename find/getIntegrationTestGroups

* chore: use for-loop to get unit and other test groups

* chore: reorganize the ci cli

* chore: rename list test groups

* chore: restore the runner selection

* chore: resolve pull request review comments
2025-02-23 18:34:47 +01:00
..

Lotus CI Tool

The Lotus CI Tool is a CLI (Command Line Interface) utility designed to facilitate interactions with the Lotus metadata. This tool allows users to retrieve version information in either JSON or text format which is required in the Lotus CI environment.

Features

  • List all test group execution contexts.
  • Get the metadata for a test group.

Installation

To install the Lotus CI Tool, you need to have Go installed on your system.

  1. Build the tool:
    go build -o ci ./cmd/ci
    

Usage

The ci tool provides several commands and options to interact with.

Commands

  • List Test Group Execution Contexts: List all test group execution contexts.
    ./ci list-test-group-execution-contexts
    
  • Get Test Group Metadata: Get the metadata for a test group.
    ./ci get-test-group-metadata --name "unit-cli"
    

Global Options

  • --json: Format output as JSON.
    ./ci --json
    

Examples

List all test group execution contexts with JSON formatted output:

./ci --json list-test-group-execution-contexts

Get the metadata for a test group with JSON formatted output:

./ci --json get-test-group-metadata --name "unit-cli"