Skip to content

ci: run a smoke-test subset in the docker workflow - #7352

Open
aniketpatidar wants to merge 2 commits into
rubyforgood:mainfrom
aniketpatidar:ci/docker-smoke-test
Open

aniketpatidar wants to merge 2 commits into
rubyforgood:mainfrom
aniketpatidar:ci/docker-smoke-test

Conversation

@aniketpatidar

Copy link
Copy Markdown

What

Replaces the full RSpec suite in the docker workflow with two smoke specs:

  • spec/requests/health_spec.rb
  • spec/system/sessions/login_spec.rb

The rspec workflow continues to run the full suite, so coverage is unchanged.

Why

Both workflows ran the entire suite, which doubled PR check runtime and flake exposure. This follows the proposal in #6507 (and the direction noted in #7173): keep the docker job as a smoke test that proves the built image boots, connects to the database, and can log a user in.

Verification

Ran the two specs inside the docker compose stack (same steps as the workflow):

docker compose run --rm --no-deps web bundle exec rspec spec/requests/health_spec.rb spec/system/sessions/login_spec.rb --fail-fast
10 examples, 0 failures

Closes #6507.

The docker and rspec workflows both ran the full RSpec suite, doubling
PR check runtime and flake exposure. Keep the docker job as a smoke
test of the built image with the health request spec and the login
system spec; the full suite still runs in the rspec workflow.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

proposal: Reduce CI runtime by shrinking the docker workflow rspec suite

1 participant