Skip to content

Fix packaging drift: secfoo-com references, version check, link checker (#120 items 2, 3) - #158

Merged
vsn411 merged 2 commits into
secfoo-com:mainfrom
RiccardoBifulco:fix/120-packaging-drift
Nov 20, 2026
Merged

vsn411 merged 2 commits into
secfoo-com:mainfrom
RiccardoBifulco:fix/120-packaging-drift

Conversation

@RiccardoBifulco

Copy link
Copy Markdown
Contributor

Fixes #120

Items 1, 4 and 5 are already merged (#156, #157, #151). This PR covers the rest:

Item 3: org references. rakfortltd/secfoo returns 404 today, so install.sh and install.ps1 could not download anything. They, the Dockerfile comment, release.yml (GHCR tags), README, docs/CI.md, docs/REFERENCE.md, the GitLab example and the npm repository/homepage URLs now point at secfoo-com/secfoo. The npm scope @rakfortltd is a package name, not a URL, so I left it and said so in docs/REFERENCE.md. I could not confirm anonymously that ghcr.io/secfoo-com/secfoo exists; the next release run publishes it.

Item 2: version. __about__.py is bumped to 0.3.1 to match the v0.3.1 tag and PyPI. docs/REFERENCE.md now says releases and tags are cut from this repository. New scripts/check_pypi_version.py fails the new docs CI job when __about__.py is behind PyPI.

Link checker. The docs job also runs lychee over README.md and docs/. It skips ghcr.io and npmjs.com (they reject anonymous crawlers). I could not run lychee locally, so its first CI run is the real test.

Tests. tests/test_docs_consistency.py fails if the old org URLs or image come back.

Local: pytest tests passes (with mermaid vendored, as in CI), and ruff check is clean on the new files.

… and link checks

- install.sh, install.ps1, Dockerfile, release.yml, README, docs and the
  GitLab example referenced rakfortltd/secfoo, which returns 404. They now
  use secfoo-com/secfoo; the npm scope stays @rakfortltd (a published name)
  and docs/REFERENCE.md says so.
- __about__.py 0.3.0 -> 0.3.1 to match the v0.3.1 tag and PyPI; docs state
  releases are cut from this repository.
- CI: scripts/check_pypi_version.py fails when __about__.py is behind PyPI;
  lychee checks links in README.md and docs/.
- tests/test_docs_consistency.py guards against the old org references.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:56

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 insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Comment thread .github/workflows/ci.yml Fixed
- Pin lycheeverse/lychee-action to the v2.9.0 commit like every other
  action here, pass GITHUB_TOKEN so github.com links are not rate limited,
  and do not persist checkout credentials.
- The old-org guard read every file under the checkout; on main it now
  crashes on the invalid-UTF-8 fuzz reproducers, and a local .venv/build/dist
  would give false hits. It now scans git ls-files, skipping fuzz/corpus and
  tests/fixtures.
- check_pypi_version orders dev/a/b/rc/post releases per PEP 440, so a
  0.3.1.dev0 no longer counts as level with 0.3.1.
- main is ahead of the v0.3.1 tag, so it carries 0.3.2.dev0 rather than
  claiming to be the released 0.3.1; documented in REFERENCE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vsn411

vsn411 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks again @RiccardoBifulco, two in one day! This closes out #120. I checked the key premise: the public v0.3.1 release carries all five binaries and SHA256SUMS, so pointing install.sh/install.ps1 at secfoo-com/secfoo turns two broken installers into working ones. A release run from this repo can only push to ghcr.io/secfoo-com anyway, so the image rename is right too. Lychee passed on its first run, which is a nice result given you couldn't run it locally.

I pushed one commit to your branch with these fixes:

  • CI failure. test_no_references_to_the_old_github_org_or_image read every file under the checkout with ROOT.rglob. It crashed on the deliberately invalid UTF-8 fuzz reproducers that fuzz: run the harnesses in CI, add five more, and fix the 11 crashes they found #149 added (fuzz/corpus/*/crash-invalid-utf8.*), and that is why both Test jobs failed. It would also have scanned a contributor's local .venv/build/dist, where an old secfoo install contains the old URLs. It now scans git ls-files, skipping fuzz/corpus/ and tests/fixtures/. It also asserts that install.sh and the Dockerfile are among the files scanned.
  • Pinned action. Every action in this repo is pinned to a commit SHA, so lycheeverse/lychee-action@v2 is now @e747777… # v2.9.0. Lychee also gets GITHUB_TOKEN, so github.com links don't hit the anonymous rate limit, and the docs job checks out with persist-credentials: false.
  • Version ordering. parse() dropped suffixes, so 0.3.1.dev0 or 0.3.1rc1 counted as equal to 0.3.1 and passed. It now orders dev < a < b < rc < final < post as PEP 440 does, with parametrized tests.
  • 0.3.2.dev0 instead of 0.3.1. main is well ahead of the v0.3.1 tag, so a source install reporting 0.3.1 would misattribute bug reports to the release. Between releases main now carries the next dev version; docs/REFERENCE.md says so, and a test checks it is never behind any v* tag.

Full suite passes locally (1834 passed). Merging once CI is green.

@vsn411
vsn411 merged commit a1da841 into secfoo-com:main Nov 20, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown

Leaderboard update

RiccardoBifulco now has 6 points (rank #8). 19 more to reach Bronze.

Full leaderboard

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.

Docs and packaging drift: secfoo[api] extra is obsolete, public version says 0.3.0 while PyPI is 0.3.1, install scripts point at another repo

4 participants