posit-dev / posit-dev/images-shared

Optimize bakery's testing

Open
#319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cicd cvp:0 docker priority/medium python qa tdp:2 tech debt
Dominant language
Python
Stars
2
Forks
0
Avg merge
4d 13h
Merged PRs (30d)
22

Description

We recently had to push the test job to using ubuntu-latest-4x runners after adding tests that involved building a multidimensional matrix. Tests are now pushing the 20min mark so it may be time to consider going back and streamlining/optimizing our testing to ensure testing feedback is quick and actionable.

Some options to consider:

  • Avoid invoking Docker and builds where possible and mocking those interactions for unit tests.
  • Split "end-to-end" or "integration" type tests into a separate job so feedback from unit tests can be quicker while still allowing for longer tests to act.
  • Use more "no-op" type Containerfile definitions if we are building artifacts where possible rather than truly building out images.
  • Ensure that any images we do have to build are cleaned up immediately during teardown of the test that invoked them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the test job and its multidimensional matrix configuration, then measure where Docker builds and integration tests consume time; done means faster, actionable unit-test feedback while longer tests remain covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, python
Domain
ci-cd, devops, testing
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.