Repository navigation
Merge main into dev before the stable rename - #474
Conversation
Update license metadata to AGPL-3.0-or-later
Bumps [certifi](https://github.com/certifi/python-certifi) from 2026.4.22 to 2026.10.18. - [Commits](certifi/python-certifi@2026.04.22...2026.10.18) --- updated-dependencies: - dependency-name: certifi dependency-version: 2026.10.18 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #474 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 31 31
Lines 3259 3259
=======================================
Hits 3236 3236
Misses 23 23 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
en0f
left a comment
There was a problem hiding this comment.
Reviewed at 5de1c21.
🟢 Every technical claim in the description holds, and the merge is the minimal fix
The head tree is byte-identical to dev (V01), and main's tip 78176c21 becomes the second parent (V02, V03). main's licence changes from #457 are already on dev byte for byte (V05), and keeping dev's uv.lock keeps certifi 2026.10.19 over main's 2026.10.18 (V06). At the base, merging dev into main conflicts in uv.lock. At this head it is clean and lands dev's tree exactly (V04 FAILs at the base and PASSes here). Merging, not rebasing, follows git.md § Merging.
Reproduce this review
# save the script below as verify-474.sh, then:
bash verify-474.sh blacklanternsecurity/badsecrets 5de1c2191c8ede4d6ed425b0326069528725c763
# expected: SUMMARY 6 PASS, 0 FAIL, 0 SKIP, 0 BROKEN
# control: bash verify-474.sh blacklanternsecurity/badsecrets 41a126fda60a9f4004617b07928fbc00a6a9eb0b -> V02 V03 V04 FAIL#!/usr/bin/env bash
# verify-474.sh: reproducible checks for blacklanternsecurity/badsecrets#474
# Usage: bash verify-474.sh <owner/repo> <sha> [<control-patch>]
# Changes nothing outside a mktemp directory and nothing on GitHub (PR-VF-02).
#
# CONTROL: sha 41a126fda60a9f4004617b07928fbc00a6a9eb0b
# CONTROL-EXPECT: V02=FAIL V03=FAIL V04=FAIL
# AUTHOR-CODE: none
set -uo pipefail
REPO="${1:?owner/repo}"; SHA="${2:?sha}"; PATCH="${3:-}"
PASS=0; FAIL=0; SKIP=0; BROKEN=0
pass() { echo "PASS $1 $2"; PASS=$((PASS+1)); }
fail() { echo "FAIL $1 $2 -- $3"; FAIL=$((FAIL+1)); }
skip() { echo "SKIP $1 $2 -- $3"; SKIP=$((SKIP+1)); }
broken() { echo "BROKEN $1 $2 -- $3"; BROKEN=$((BROKEN+1)); }
summary() { echo "SUMMARY $PASS PASS, $FAIL FAIL, $SKIP SKIP, $BROKEN BROKEN"; [ "$FAIL" -eq 0 ] && [ "$BROKEN" -eq 0 ]; }
echo "script_sha256 $(shasum -a 256 "$0" | cut -d' ' -f1)"
echo "git $(git --version | cut -d' ' -f3)"
# Pinned at review time: dev (PR base) and main's tip.
BASE=41a126fda60a9f4004617b07928fbc00a6a9eb0b
MAIN=78176c21cf9b8fb6a289114c11359b02429745e6
WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT
export GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1 GIT_TERMINAL_PROMPT=0
export GIT_CONFIG_COUNT=2 GIT_CONFIG_KEY_0=credential.helper GIT_CONFIG_VALUE_0= GIT_CONFIG_KEY_1=credential.helper GIT_CONFIG_VALUE_1='!gh auth git-credential'
GIT=(git)
"${GIT[@]}" clone --quiet --filter=blob:none --no-checkout "https://github.com/$REPO.git" "$WORK/src" || { broken V00 "clone" "clone failed"; summary; exit 1; }
cd "$WORK/src"
"${GIT[@]}" fetch --quiet origin "+refs/pull/*/head:refs/remotes/pr/*" || true
"${GIT[@]}" cat-file -e "$SHA^{commit}" 2>/dev/null || { broken V00 "commit $SHA present" "missing"; summary; exit 1; }
"${GIT[@]}" cat-file -e "$MAIN^{commit}" 2>/dev/null || { broken V00 "commit $MAIN present" "missing"; summary; exit 1; }
"${GIT[@]}" checkout --quiet --detach "$SHA" || { broken V00 "checkout $SHA" "checkout failed"; summary; exit 1; }
[ "$(git rev-parse HEAD)" = "$SHA" ] || { broken V00 "HEAD is $SHA" "HEAD mismatch"; summary; exit 1; }
if [ -n "$PATCH" ]; then git apply "$PATCH" || { broken V00 "apply control patch" "git apply failed"; summary; exit 1; }; fi
# ---- checks: each line states the desired property --------------------------
# V01: the merge changes no file on dev (tree identical to the base)
if [ "$(git rev-parse "$SHA^{tree}")" = "$(git rev-parse "$BASE^{tree}")" ]; then
pass V01 "tree at $SHA is identical to dev's tree at $BASE"
else fail V01 "tree at $SHA is identical to dev's tree at $BASE" "$(git diff --stat "$BASE" "$SHA" | tail -1)"; fi
# V02: main's tip is an ancestor (its commits become dev history)
if git merge-base --is-ancestor "$MAIN" "$SHA"; then pass V02 "main tip $MAIN is an ancestor of $SHA"
else fail V02 "main tip $MAIN is an ancestor of $SHA" "not an ancestor"; fi
# V03: the commit is a two-parent merge of dev and main's tip
P="$(git rev-list --parents -n1 "$SHA" | cut -d' ' -f2-)"
if [ "$P" = "$BASE $MAIN" ]; then pass V03 "$SHA has parents dev ($BASE) and main ($MAIN)"
else fail V03 "$SHA has parents dev ($BASE) and main ($MAIN)" "parents: $P"; fi
# V04: a later dev -> main/stable merge is clean and lands dev's tree exactly
MT="$(git merge-tree --write-tree --name-only "$MAIN" "$SHA" 2>&1)"; RC=$?
if [ $RC -eq 0 ] && [ "$(echo "$MT" | head -1)" = "$(git rev-parse "$SHA^{tree}")" ]; then
pass V04 "merging $SHA into main is conflict-free and yields $SHA's tree"
else fail V04 "merging $SHA into main is conflict-free and yields $SHA's tree" "rc=$RC $(echo "$MT" | tr '\n' ' ' | cut -c1-200)"; fi
# V05: main's licence changes (#457) are already present on this side, byte for byte
if git diff --quiet "$MAIN" "$SHA" -- README.md THIRD_PARTY_NOTICES.md pyproject.toml; then
pass V05 "README.md, THIRD_PARTY_NOTICES.md, pyproject.toml match main"
else fail V05 "README.md, THIRD_PARTY_NOTICES.md, pyproject.toml match main" "$(git diff --stat "$MAIN" "$SHA" -- README.md THIRD_PARTY_NOTICES.md pyproject.toml | tail -1)"; fi
# V06: keeping dev's uv.lock does not downgrade certifi below main's (#465)
CV() { git show "$1:uv.lock" | awk '/^name = "certifi"$/{getline; gsub(/version = |"/,""); print; exit}'; }
HV="$(CV "$SHA")"; MV="$(CV "$MAIN")"
if [ -n "$HV" ] && [ -n "$MV" ] && [ "$(printf '%s\n%s\n' "$MV" "$HV" | sort -V | tail -1)" = "$HV" ]; then
pass V06 "certifi $HV in uv.lock is >= main's $MV"
else fail V06 "certifi in uv.lock is >= main's" "head=$HV main=$MV"; fi
# ------------------------------------------------------------------------------
summary
Merges
mainintodevonce, beforemainis renamed tostable(cut-over plan, .github-config#16 step 8).dev: it already hasmain's licence metadata (a062020) and a newer certifi (2026.10.19 vs 2026.10.18). Theuv.lockconflict resolves todev's side.dev->stableconflicts inuv.lock. With it, that merge is clean (checked locally).main's commits become ancestors ofdev.