Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Split CI jobs into more steps for clearer output #32

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

EliahKagan
Copy link
Collaborator

@EliahKagan EliahKagan commented Aug 1, 2023

This leaves the logic and sequence of operations on CI the same, but makes them more granular so that it is easier to understand their output in the GitHub web interface.

The main benefit is from splitting the old "Run Tests" step into an "Install project and dependencies" step followed by a "Run Tests" step. I noticed that having them together made it hard to read the pytest output because it was necessary to scroll down past copious poetry install output to find it, instead of just expanding a step. Having "Install project and its dependencies" be its own step before "Run Tests" fixes this, so that expanding "Run Tests" shows all, and only, the actual test output:

Screenshot of workflow output on the Actions tab, showing a test job, with the more narrowly defined Run Tests step expanded and showing readable pytest output, with surrounding steps collapsed non-distractingly

This allows the CI output itself to be as readily usable as the output of running "pytest" interactively. (Of course, the uploaded artifacts are still useful; this does not stop generating those.)

This has a secondary benefit of greater descriptive accuracy. For example, when looking for where we install dependencies, someone unfamiliar with the workflows would not necessarily know to look in "Run Tests".

The main benefit (and motivation for this change) is from splitting
the old "Run Tests" step into an "Install project and dependencies"
step, followed by a "Run Tests" step.

With the new "Run Tests" step, it's easy to see the pytest output
in the GitHub interface for a run. Expanding that step shows all,
and only, the actual test output.

This allows the CI output itself to be as readily usable as the
output of running "pytest" interactively. (Of course, the uploaded
artifacts remain useful and are still being generated.)

This also has the benefit of greater accuracy. For example, when
looking for where we install dependencies, someone unfamiliar with
the workflows would not necessarily know to look in "Run Tests".
@EliahKagan EliahKagan marked this pull request as draft August 1, 2023 19:16
This makes test-package.yml use the same style as
publish-package.yml.
@EliahKagan EliahKagan marked this pull request as ready for review August 1, 2023 19:50
@bazingagin bazingagin merged commit 725c1cb into bazingagin:main Aug 2, 2023
@EliahKagan EliahKagan deleted the granular-steps branch August 2, 2023 00:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants