Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

A test that runs a Cirrus-CI task #4

@0xB10C

Description

@0xB10C

A good test for this repository could be a test similar to the basic.nix test that tries to run a Cirrus CI task. Currently, the basic.nix test only starts the runner-VM and checks that it's online, but doesn't check that it could actually run a Cirrus-CI task.

A few toughs:

  • needs a Cirrus-CI worker pool for this project
  • the test uses a hardcoded token to join the pool
  • each PR or push to master should create a new Cirrus-CI job. We'd need a .cirrus.yml in this repository with a basic task definition e.g.:
    • check that the expected cache directories are available (and possibly try to write to them)
    • try to do a (trivial) docker build
    • try to run a basic script inside docker
  • We won't be able to run the test offline, as wouldn't ever spawn a Cirrus-CI task. Figure out a way to skip it offline..
  • Might run into problems with the Cirrus-CI scheduling weirdness discussed here: add --ephemeral mode for persistent worker cirruslabs/cirrus-cli#813 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions