canonical / canonical/testflinger

Clarify Job vs Attachment states and use enumertations throughout

Open
#993 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
26
Forks
49
Avg merge
4d 8h
Merged PRs (30d)
16

Description

There are a variety of different statuses tracked in Testflinger and the accompanying GitHub actions. Most of these should to be tracked with enumerations rather than raw strings.
- job status: enum exists and should be used throughout
- attachment status: enum required and ought to be used throughout
- GitHub action status ("complete") not sure if we can use an enum in the GH actions, but be careful with search and replace

Within the **JobState** enum, presently there are two confusing states:
- ALLOCATE = "allocate"
- ALLOCATED = "allocated": the state after "allocate" should have a different name

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.