Skip to content

chore: restore .gitmodules branch pins for the flagd submodules - #422

Open
aepfli wants to merge 1 commit into
mainfrom
chore/restore-gitmodules-branch-pin
Open

aepfli wants to merge 1 commit into
mainfrom
chore/restore-gitmodules-branch-pin

Conversation

@aepfli

@aepfli aepfli commented Sep 14, 2026

Copy link
Copy Markdown
Member

Closes #421
Parent: open-feature/flagd-testbed#398

Restores the branch pins that were dropped from .gitmodules.

Why

Renovate's git-submodules manager reads branch from .gitmodules as the dependency's current version. With the pin present it resolves against the submodule's release tags and opens an ordinary version bump, rewriting the pin itself:

-	branch = v2.10.1
+	branch = v2.10.2

Without it there is no version to compare against, so Renovate chases the tip of the submodule's default branch instead — a digest update. Those don't match the community-tooling preset's matchSourceUrls auto-create exemption, so they get parked behind a dashboard checkbox rather than becoming PRs. Net effect: no automated testbed or schemas updates in this repo since the pins were removed.

What this does

  1. Restores branch = v3.8.0 on providers/openfeature-provider-flagd/openfeature/test-harness.

  2. Restores a pin on providers/openfeature-provider-flagd/openfeature/schemas, which lost branch = protobuf-v0.6.1 in the same PR (feat!: graceful fallback to code default when no default variant #347) and was never restored.

    This one is not a straight revert and is worth a look. The submodule has since moved to 1daf5ff, which is tagged json/json-schema-v0.2.15 — a different tag series from the protobuf-* one it used to track. The pin here follows the series the submodule is actually on, so Renovate will propose json/json-schema-* updates going forward. If tracking protobuf-* was deliberate, say so and I'll change it.

Both pins are set to the tag each submodule points at today, so this commit changes no behaviour on its own — it does not move any submodule. The next release then arrives as a normal Renovate version PR.

@aepfli
aepfli requested review from a team as code owners September 14, 2026 07:30
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: c5b1a28a-382a-471f-a88a-b258431c2a02

📥 Commits

Reviewing files that changed from the base of the PR and between 89ba877 and 769a138.

📒 Files selected for processing (1)
  • .gitmodules

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The .gitmodules configuration adds Renovate guidance and restores branch pins for the schemas and flagd-testbed submodules.

Changes

Submodule version tracking

Layer / File(s) Summary
Renovate submodule pins
.gitmodules
The configuration documents required branch values and pins schemas to json/json-schema-v0.2.15 and flagd-testbed to v3.8.0.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Medium

Suggested reviewers: gruebel

Merge Risk: ⚪ Minimal · up to a4603

The submodule pin updates match the stated tracking intent, with no identified production or build risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR satisfies the coding requirements in issue #421. It adds branch = v3.8.0 for providers/openfeature-provider-flagd/openfeature/test-harness. It adds a json/json-schema-* branch pin for `sc…
Out of Scope Changes check ✅ Passed The changes stay within issue #421. The PR adds only .gitmodules guidance comments and branch pins for the two submodules covered by the issue. The comments support Renovate version tracking. No unr…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Title check ✅ Passed The title clearly and concisely describes restoring branch pins in .gitmodules for the flagd submodules, which is the main change.
Description check ✅ Passed The description directly explains the restored pins, the affected submodules, and the Renovate behavior that the change enables.

Comment @coderabbitai help to get the list of available commands.

@aepfli
aepfli force-pushed the chore/restore-gitmodules-branch-pin branch 2 times, most recently from 89ba877 to a2cb5d5 Compare September 14, 2026 07:37
@aepfli aepfli changed the title chore: restore .gitmodules branch pin for the flagd testbed submodule chore: restore .gitmodules branch pins for the flagd submodules Sep 14, 2026
Renovate's git-submodules manager reads `branch` from .gitmodules as the
dependency's current version. Without it there is no version to compare
against, so Renovate falls back to chasing the tip of the submodule's
default branch as a digest update -- which does not match the
community-tooling auto-create exemption and ends up parked on the
dependency dashboard. The result has been no automated updates in this
repo since the pin was dropped.

Restore the pin at the tag each submodule currently points at, so the next
release arrives as an ordinary Renovate version PR again.

Also add a header comment to .gitmodules explaining what the `branch`
lines are for. The pin has now been deleted as drive-by cleanup several
times across the SDK repos, in each case silently switching off updates,
so it is worth saying out loud in the file itself.

Note that schemas has moved from the protobuf-* tag series it used to
track onto json/json-schema-*, so its pin follows the series it is
actually on.

Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
@aepfli
aepfli force-pushed the chore/restore-gitmodules-branch-pin branch 2 times, most recently from 769a138 to a4603c2 Compare September 15, 2026 12:14
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.

Restore the .gitmodules branch pins so Renovate tracks flagd submodule versions again

1 participant