Skip to content

Add test suite, coverage-gated CI, CodeQL, grouped Dependabot & auto-merge#1

Merged
anbo-de merged 2 commits into
masterfrom
chore/test-ci-baseline
Jun 30, 2026
Merged

Add test suite, coverage-gated CI, CodeQL, grouped Dependabot & auto-merge#1
anbo-de merged 2 commits into
masterfrom
chore/test-ci-baseline

Conversation

@anbo-de

@anbo-de anbo-de commented Jun 30, 2026

Copy link
Copy Markdown
Member

Part of the WSE-research repository-standardisation rollout. This repo previously had only a license — this PR adds the full baseline.

What this adds

  • Unit tests for Configuration (config-file parsing + demanded-key validation, missing-file/missing-key errors), the Registration value object, the Registrator admin-server callback (with requests faked: success / failure / exception), the myservice blueprint, and the app's /health + /about routes — 97% coverage.
  • End-to-end smoke test (tests/e2e/) that boots the Flask app and serves /health + /.
  • ci.yml — ruff lint + unit tests with a 90% coverage gate + e2e on every PR/push (pure-Python service, no Docker image step).
  • codeql.yml — weekly + PR CodeQL scanning (python).
  • Grouped weekly Dependabot and a gated auto-merge.
  • Tidy: marked the __main__ entrypoint # pragma: no cover, narrowed a bare except to except ValueError, and dropped unused imports (clears ruff E722/F401).

🤖 Generated with Claude Code

…merge

Brings Spring-Boot-Admin-Python-component up to the WSE-research baseline (it
previously had only a license):

* Unit tests for Configuration (config-file parsing + demanded-key validation,
  missing-file/missing-key errors), the Registration value object, the
  Registrator admin-server callback (requests faked: success/failure/exception),
  the myservice blueprint and the app's /health + /about routes — 97% coverage.
* End-to-end smoke test that boots the Flask app and serves /health + /.
* ci.yml: ruff lint + unit tests with a 90% coverage gate + e2e on every
  PR/push (pure-Python service, no Docker image step).
* codeql.yml: weekly + PR CodeQL scanning (python).
* Grouped weekly Dependabot and a gated auto-merge.
* Tidy: mark the __main__ entrypoint no-cover, narrow a bare `except` to
  `except ValueError`, and drop unused imports (clears ruff E722/F401).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

`pprint` has no PyPI distribution (it is a standard-library module), so
`pip install -r requirements.txt` failed outright. `configparser` and
`argparse` are likewise stdlib in Python 3; the code uses the built-in
modules, so the (old) backport packages are unnecessary. Removing all three
makes a clean install possible — which the new CI job needs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anbo-de anbo-de merged commit 1db2995 into master Jun 30, 2026
5 checks passed
@anbo-de anbo-de deleted the chore/test-ci-baseline branch June 30, 2026 08:43
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.

2 participants