Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: The web service in docker-compose.yml had no healthcheck, so#2200

Open
singlaamitesh wants to merge 1 commit into
aboutcode-org:mainaboutcode-org/scancode.io:mainfrom
singlaamitesh:fix/1842-scancode-io-1842singlaamitesh/scancode.io:fix/1842-scancode-io-1842Copy head branch name to clipboard
Open

fix: The web service in docker-compose.yml had no healthcheck, so#2200
singlaamitesh wants to merge 1 commit into
aboutcode-org:mainaboutcode-org/scancode.io:mainfrom
singlaamitesh:fix/1842-scancode-io-1842singlaamitesh/scancode.io:fix/1842-scancode-io-1842Copy head branch name to clipboard

Conversation

@singlaamitesh

Copy link
Copy Markdown

Fixes #1842

Summary

The web service in docker-compose.yml had no healthcheck, so docker compose up -d --wait only waited for the container to be running, not for its migrate/collectstatic steps to finish, letting a subsequent docker compose run --rm web scanpipe ... race ahead of the DB schema (issue #1842's 'relation scanpipe_project does not exist'). Added a wait-for-it-based healthcheck to web (with a port-8001 override in docker-compose.dev.yml) so --wait truly waits for readiness, and added a regression test asserting the web service defines a healthcheck.

Changes

  • docker-compose.yml
  • docker-compose.dev.yml
  • scanpipe/tests/test_scancodeio.py

How this was tested

Ran the affected tests locally.

Copilot AI review requested due to automatic review settings July 17, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Can't get the project to work

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.