Skip to content

SPOCK-625: bump extension version to 2.6.0#42

Open
zaidshabbir25 wants to merge 1 commit into
mainfrom
SPOCK-625-snowflake-extension-not-bumped
Open

SPOCK-625: bump extension version to 2.6.0#42
zaidshabbir25 wants to merge 1 commit into
mainfrom
SPOCK-625-snowflake-extension-not-bumped

Conversation

@zaidshabbir25

Copy link
Copy Markdown
Contributor

The v2.6.0 tag was cut without bumping the extension version metadata: snowflake.control still declared default_version = '2.5.0' and no 2.6.0 SQL script existed, so the extension installed and reported itself as 2.5.0 even when built from the v2.6.0 tag.

  • snowflake.control: default_version 2.5.0 -> 2.6.0
  • add snowflake--2.5.0--2.6.0.sql upgrade script (2.6.0 is the Postgres 19 port, a C/build change with no catalog changes)
  • Makefile: add the upgrade script to DATA
  • add test/t/snowflake_version.py regression guarding the version metadata, registered in the script_file schedule

The v2.6.0 tag was cut without bumping the extension version metadata:
snowflake.control still declared default_version = '2.5.0' and no
2.6.0 SQL script existed, so the extension installed and reported
itself as 2.5.0 even when built from the v2.6.0 tag.

- snowflake.control: default_version 2.5.0 -> 2.6.0
- add snowflake--2.5.0--2.6.0.sql upgrade script (2.6.0 is the
  Postgres 19 port, a C/build change with no catalog changes)
- Makefile: add the upgrade script to DATA
- add test/t/snowflake_version.py regression guarding the version
  metadata, registered in the script_file schedule

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Version upgrade

Layer / File(s) Summary
Package version 2.6.0
snowflake.control, snowflake--2.5.0--2.6.0.sql, Makefile
The extension default version is updated to 2.6.0, and the new upgrade script is included in the packaged SQL files.
Validate version metadata
test/t/snowflake_version.py, test/schedule_files/script_file
A scheduled test checks available, offered, and installed extension versions against 2.6.0.

Poem

I’m a rabbit with a versioned ear,
Hopping to 2.6.0 this year.
SQL scripts tucked in tight,
Metadata shining bright,
Tests thump their paws: “All clear!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: bumping the extension version to 2.6.0.
Description check ✅ Passed The description matches the changeset and summarizes the metadata bump, new upgrade script, and regression test.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch SPOCK-625-snowflake-extension-not-bumped

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codacy-production

codacy-production Bot commented Jul 20, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 high · 1 minor

Alerts:

⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
3 new issues

Category Results
Compatibility 2 high (1 false positive)
Security 1 minor (1 false positive)

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
test/t/snowflake_version.py (1)

63-65: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Update misleading error message.

The error message explicitly mentions (no snowflake--{EXPECTED_VERSION}.sql), which implies a base installation script is required. However, the Makefile does not include a base snowflake--2.6.0.sql script—PostgreSQL also considers a version offered if it can be reached by chaining upgrade scripts (e.g., snowflake--2.5.0--2.6.0.sql). Consider updating the message to avoid misdirecting developers if the test ever fails.

💡 Proposed fix
-    failures.append(
-        f"'{EXPECTED_VERSION}' is not an offered version (no snowflake--{EXPECTED_VERSION}.sql); "
-        f"offered: {offered}")
+    failures.append(
+        f"'{EXPECTED_VERSION}' is not an offered version (missing base or upgrade script); "
+        f"offered: {offered}")
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/t/snowflake_version.py` around lines 63 - 65, Update the failure message
in the version-offering check that appends to failures so it no longer claims a
base snowflake--EXPECTED_VERSION.sql script is required. Describe the version as
unavailable among the offered or reachable upgrade versions, while preserving
the offered versions output.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@test/t/snowflake_version.py`:
- Around line 63-65: Update the failure message in the version-offering check
that appends to failures so it no longer claims a base
snowflake--EXPECTED_VERSION.sql script is required. Describe the version as
unavailable among the offered or reachable upgrade versions, while preserving
the offered versions output.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 071a0fad-9739-4141-a0df-9e766bb403da

📥 Commits

Reviewing files that changed from the base of the PR and between fce5e57 and 944e56e.

📒 Files selected for processing (5)
  • Makefile
  • snowflake--2.5.0--2.6.0.sql
  • snowflake.control
  • test/schedule_files/script_file
  • test/t/snowflake_version.py

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION snowflake UPDATE TO '2.6.0'" to load this file. \quit

-- ----------------------------------------------------------------------

@mason-sharp mason-sharp Jul 20, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment block. If using AI, it tends to write overly verbose and superfluous comments.

@@ -1 +1,2 @@
test/t/temp.sh
test/t/snowflake_version.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to run this in the schedule

@@ -0,0 +1,94 @@
import sys, os, json, util_test, subprocess

@mason-sharp mason-sharp Jul 20, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this test, just makes extra maintenance work

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