Skip to content

dependency-security-sync: generate stylechecker with --dev-only#231

Merged
ihalatci merged 2 commits into
masterfrom
automation/fix-stylechecker-dev-only
Jul 2, 2026
Merged

dependency-security-sync: generate stylechecker with --dev-only#231
ihalatci merged 2 commits into
masterfrom
automation/fix-stylechecker-dev-only

Conversation

@ihalatci

@ihalatci ihalatci commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Problem

The requirements-generation step in dependency-security-sync.yml builds the
stylechecker image's requirements.txt with:

dev=$(pipenv requirements --dev)

pipenv requirements --dev emits the dev group plus the entire runtime
dependency graph
(~55 extra pins). The stylechecker image only needs the dev
tool-chain (flake8 / black / isort), so this bloats
circleci/images/stylechecker/files/etc/requirements.txt on every sync run and
diverges from the prior hand-maintained content.

Fix

Use --dev-only, which emits just the dev group. Two edits (+2/-2): the
generation command and the matching dev_header comment string.

Notes

  • New-workflow-only change; does not touch any file in the GH App migration's
    phased scope. Auth continues to use the vars.GH_APP_ID app-token pattern.
  • The already-open sync PR Automated requirements sync for Dependabot security alerts #230 already carries a
    regenerated (clean, --dev-only) stylechecker so it does not regress master;
    this PR fixes the generator so future runs stay clean.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Copilot AI and others added 2 commits July 2, 2026 03:15
The stylechecker image only needs the dev tool-chain (flake8/black/isort). pipenv requirements --dev emits dev deps PLUS the full runtime graph (~55 extra pins), bloating stylechecker/requirements.txt. --dev-only emits just the dev group, matching the images intent and prior hand-maintained content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Fix A: the sync workflow now repoints the citus PR image_suffix at the
freshly built the-process dev image (-dev-<tp_sha>) so citus CI validates
the newly synced requirements instead of a stale committed image.

Post-merge dev->stable swap broadened to also recognize a -dev-<hex>
suffix (delimiter switched | -> # so the (v|dev-) alternation is valid);
output stays stable -v<merge_sha>.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ihalatci ihalatci merged commit ee457b3 into master Jul 2, 2026
16 checks passed
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