Skip to content

Merge main into dev before the stable rename - #474

Merged
pjhartlieb merged 4 commits into
devfrom
merge/main-into-dev
Nov 25, 2026
Merged

pjhartlieb merged 4 commits into
devfrom
merge/main-into-dev

Conversation

@pjhartlieb

Copy link
Copy Markdown
Contributor

Merges main into dev once, before main is renamed to stable (cut-over plan, .github-config#16 step 8).

  • No file changes on dev: it already has main's licence metadata (a062020) and a newer certifi (2026.10.19 vs 2026.10.18). The uv.lock conflict resolves to dev's side.
  • Why: without it, the first release PR dev -> stable conflicts in uv.lock. With it, that merge is clean (checked locally).
  • Merge with a merge commit, not squash or rebase: the point is that main's commits become ancestors of dev.

pjhartlieb and others added 4 commits October 23, 2026 18:01
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>
Brings main's three commits onto dev before main is renamed to stable:
the AGPL-3.0-or-later licence metadata (#457: pyproject.toml, README.md,
THIRD_PARTY_NOTICES.md) and the certifi bump (#465). uv.lock keeps dev's
side: dev already has certifi 2026.10.19, newer than main's 2026.10.18.
@pjhartlieb
pjhartlieb requested review from en0f and liquidsec November 24, 2026 22:39
@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (41a126f) to head (5de1c21).
⚠️ Report is 5 commits behind head on dev.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@en0f en0f 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.

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

@pjhartlieb
pjhartlieb merged commit 5d4ae1b into dev Nov 25, 2026
9 checks passed
@pjhartlieb
pjhartlieb deleted the merge/main-into-dev branch November 25, 2026 15:18
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.

3 participants