mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-08-24 01:08:42 +08:00

* 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
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.
- 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"