Skip to content

docs(readme): align environment variables and commands with reality - #23

Merged
SrStamm merged 1 commit into
mainfrom
chore/docs-consistency
Oct 20, 2026
Merged

SrStamm merged 1 commit into
mainfrom
chore/docs-consistency

Conversation

@SrStamm

@SrStamm SrStamm commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Context

B7 of the portfolio fixes. The READMEs documented environment variables and commands that did not match the code: REDIS_URL was attributed to the wrong component, REDIS_PASSWORD was described as required when nothing consumes it, src/ci-test.sh was listed as the CI entrypoint although CI never calls it, the demo password was stale, and .env.example did not exist. For a portfolio repo, docs that lie are worse than no docs.

Changes

All documentation-only — zero behavior change.

REDIS_URL misattributed to Celery

The table said Celery (tasks.py) used it as the broker URL, but tasks.py builds the URL from REDIS_HOST/REDIS_PORT/REDIS_DB and never reads REDIS_URL. db/database.py is the actual consumer (parses it into host/port/db and overrides the individual vars).

  • Corrected the owner and described the override behavior; restored it as a commented entry in the example blocks and .env.example.

REDIS_PASSWORD described as required

Nothing consumes it: the compose files declare it for the Redis image, and tasks.py reads it into a variable the broker URL never uses.

  • Documentation now states exactly that (read but unused), instead of implying it protects the connection.

src/ci-test.sh documented as the CI entrypoint

.github/workflows/test.yaml runs pytest -q --disable-warnings ./test/test_routers directly and never invokes the script.

  • Replaced the table row with a note that it is a local convenience wrapper.

Stale demo password

  • test123 -> test (confirmed against the live demo).

Missing .env.example

  • Added .env.example with placeholder values only, mirroring the README example.

Verification

  • Every row in the env-var table was re-checked against grep on the source: REDIS_HOST/REDIS_PORT/REDIS_DB (db/database.py, tasks.py), REDIS_URL (db/database.py), REDIS_PASSWORD (compose only), SECRET_KEY/ALGORITHM (auth).
  • pytest -q -> 177 passed (unchanged; docs only).

- REDIS_URL: it is read by db/database.py (parsed into host/port/db), not by
  Celery; tasks.py builds the broker URL from REDIS_HOST/REDIS_PORT/REDIS_DB
- REDIS_PASSWORD: declared by the compose files for the Redis image only;
  tasks.py reads it but the broker URL does not include it (unused)
- src/ci-test.sh: local convenience wrapper, not a CI entrypoint; the GitHub
  Actions workflow runs pytest directly
- Demo password: test (was test123)
- Add .env.example with placeholder values
@SrStamm
SrStamm merged commit f7e9bd7 into main Oct 20, 2026
1 check passed
@SrStamm
SrStamm deleted the chore/docs-consistency branch October 20, 2026 13:25
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.

1 participant