Skip to content

Making PR's run unstable and latest only, adding a daily job for all versions - #117

Merged
roshkhatri merged 2 commits into
valkey-io:unstablefrom
zackcam:unstable
Aug 1, 2026
Merged

Making PR's run unstable and latest only, adding a daily job for all versions#117
roshkhatri merged 2 commits into
valkey-io:unstablefrom
zackcam:unstable

Conversation

@zackcam

@zackcam zackcam commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This pr has set up a daily job to run JSON against all versions of valkey (If this becomes unwieldily we can easily amend to limit number of versions). In addition it now will run pr requests only against unstable and the latest version which is got dynamically so will not need to be updated on releases. The build script also now contains a dynamic way of checking and asserting what versions are availble

…versions

Signed-off-by: Cameron Zack <zackcam@amazon.com>
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 521dd28b-119c-4379-96d8-f28d52a03e77

📥 Commits

Reviewing files that changed from the base of the PR and between 2e5903d and 790940d.

📒 Files selected for processing (1)
  • build.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • build.sh

📝 Walkthrough

Walkthrough

CI now discovers Valkey versions dynamically for scheduled, manual, push, and pull request runs. Release and test jobs consume the generated matrix. build.sh validates selected versions against remote Valkey branches.

Changes

Dynamic version CI

Layer / File(s) Summary
Version discovery and matrix wiring
.github/workflows/ci.yml
CI adds scheduled and manual triggers, discovers supported Valkey versions, and supplies event-specific dynamic matrices to release, unit, integration, and ASAN jobs.
Build-time version validation
build.sh
build.sh derives supported versions from Valkey remote refs and rejects unsupported SERVER_VERSION values before compilation.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant GetVersions
  participant ValkeyGit
  participant CIJobs
  participant build_sh
  GitHubActions->>GetVersions: Start workflow and select event-specific versions
  GetVersions->>ValkeyGit: Query supported version branches
  ValkeyGit-->>GetVersions: Return remote refs
  GetVersions-->>CIJobs: Provide JSON server_version matrix
  CIJobs->>build_sh: Run with SERVER_VERSION
  build_sh->>ValkeyGit: Fetch supported version refs
  ValkeyGit-->>build_sh: Return valid versions
  build_sh-->>CIJobs: Continue or reject unsupported version
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the CI change to run pull requests on unstable and the latest version while adding daily runs for all versions.
Description check ✅ Passed The description accurately explains the daily all-version job, dynamic latest-version selection, and build-script version validation.
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.

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.

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

Actionable comments posted: 1

🤖 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.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 23-35: Make Valkey version discovery fail explicitly in both
.github/workflows/ci.yml lines 23-35 and build.sh lines 84-90: enable pipefail,
check the git ls-remote discovery pipeline result, and reject an empty
numeric-version list before constructing the JSON or VALID_VERSIONS. Preserve
the existing unstable/latest selection behavior only after successful non-empty
discovery.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6f99ef27-17f0-458c-9b07-d5675dcd5be1

📥 Commits

Reviewing files that changed from the base of the PR and between dcaa82c and 2e5903d.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • build.sh

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment on lines +6 to +8
# All versions run at 06:00 UTC every day (full backwards-compat matrix).
schedule:
- cron: '0 6 * * *'

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.

This is a good addition, would work like daily/weekly in valkey

roshkhatri
roshkhatri previously approved these changes Jul 31, 2026

@roshkhatri roshkhatri left a comment

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.

LGTM

@roshkhatri
roshkhatri self-requested a review July 31, 2026 23:45
@roshkhatri
roshkhatri dismissed their stale review July 31, 2026 23:45

needs changes

Comment thread build.sh
echo "Valid versions are: $(printf '%s\n' "$VALID_VERSIONS" | sort -V | tr '\n' ' ')"
exit 1
fi

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.

On another thought this will break the offline build. might want to add a condition for when this is called

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just fixed, made it so we log but continue. We will still fail if no binary is there but that was the case before

Signed-off-by: Cameron Zack <zackcam@amazon.com>
@roshkhatri
roshkhatri merged commit 7d0acb4 into valkey-io:unstable Aug 1, 2026
13 checks passed
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