Skip to content

ci: weekly pull request that bumps the @framers/* dependencies - #266

Merged
jddunn merged 4 commits into
masterfrom
ci/bump-framers-deps
Oct 11, 2026
Merged

jddunn merged 4 commits into
masterfrom
ci/bump-framers-deps

Conversation

@jddunn

@jddunn jddunn commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Summary

agentos had no dependency bump workflow: its ranges for @framers/sql-storage-adapter (a runtime dependency) and @framers/agentos-extensions-registry (a devDependency) moved only when someone edited them. This adds the workflow the rest of the family runs, copied from agentos-extensions with its script (.github/scripts/bump-framers-deps.py), with these differences:

  • Title decides the release. The pull request is titled fix(deps) when a runtime dependency moved, so merging it publishes a patch and the published package carries the new range. It is titled chore(deps) when only a devDependency moved, so merging publishes nothing.
  • Release age. The lockfile refresh takes a third-party release only once it is a day old (minimumReleaseAge: 1440, pnpm 10.16 and later), with @framers/* exempt. The setting lives in a pnpm-workspace.yaml the job writes and removes again; a second install with --frozen-lockfile then proves the lockfile stands without it.
  • Paths. Only package.json and pnpm-lock.yaml are committed.
  • Dry run. A dry-run job runs on a pull request that touches the workflow or its script, so a change to either is exercised before it merges. It has read-only permissions and opens nothing.

ci.yml changes so the bump job can run CI on its branch (a pull request opened with GITHUB_TOKEN starts no pull_request run):

  • It accepts workflow_dispatch.
  • It declares permissions: contents: read. The repository's default workflow token can write, and a dispatched run on the bump branch runs dependency code nobody has read yet.
  • The Codecov upload is skipped on a dispatched run, so that run reads no repository secret.

Linked issues

None.

Type of change

  • Build or CI

How this was verified

The CI run on this pull request exercises the changed ci.yml (the pull_request path; the Codecov step still runs there). The dry-run job ran on this pull request (run 38078996702): the script ran against npm, the lockfile refresh ran the way the weekly job runs it, and no file other than package.json and pnpm-lock.yaml changed. The run printed minimumReleaseAge in effect: 1440, so pnpm reads the setting from the pnpm-workspace.yaml the job writes. The bump and ci jobs, which open the pull request and dispatch CI on its branch, run for the first time when the workflow is dispatched after this merges; I will dispatch it once and read its run.

Migration notes

None.

Checklist

  • Tests cover the changed behavior.
  • Docs are updated.
  • The title follows Conventional Commits, with ! before the colon for a change that breaks users (feat!: or feat(api)!:).
  • No secrets or private data are included.
  • Every automated review thread is settled (how).
  • I have read this change and can explain every line.

Summary by Sourcery

Automate safe weekly @Framers dependency updates with lockfile refreshes, release-aware pull requests, and isolated CI validation.

New Features:

  • Add a weekly and manually triggered workflow that updates all eligible @framers/* dependency ranges, refreshes the pnpm lockfile, and opens a pull request.
  • Add a dry-run workflow path that validates dependency bump changes before the workflow or script is merged.

Bug Fixes:

  • Prevent dependency update failures from silently producing partial or stale bump pull requests.
  • Avoid exposing repository secrets or write permissions when CI runs on automated dependency-update branches.

Enhancements:

  • Respect dependency release age requirements while exempting @Framers packages, preserve peer and intentionally pinned ranges, and report unsupported overrides for manual review.
  • Classify generated pull requests so runtime dependency updates trigger patch releases while development-only updates do not.
  • Dispatch CI explicitly for automated dependency-update branches and publish its result as a commit status.

CI:

  • Enable manual CI dispatch with read-only default permissions and skip Codecov uploads for dispatched runs.

Tests:

  • Exercise the dependency bump and lockfile refresh end to end in a read-only dry-run job.
  • Add self-validation fixtures for dependency range rewriting and unsupported package-manager configurations.

agentos had no bump workflow: its ranges for @framers/sql-storage-adapter and
@framers/agentos-extensions-registry moved only by hand. This is the workflow
the rest of the family runs, copied from agentos-extensions with its script.

The pull request is titled fix(deps) when a runtime dependency moved, so
merging it publishes a patch, and chore(deps) when only a devDependency did.
The lockfile refresh takes a third-party release only once it is a day old.

ci.yml accepts workflow_dispatch so the bump job can run CI on its branch,
declares a read-only token, and skips the Codecov upload on a dispatched
run, so that run reads no repository secret.
@jddunn
jddunn requested a review from Victor-Evogor as a code owner October 10, 2026 19:06
@sourcery-ai

sourcery-ai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Sorry @jddunn, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 9 hours and 40 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T23:58:45.558465Z 4d67c8b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 3 billable files and costs up to $0.75.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 8 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: framerslab/agentos/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 5b2744ef-5ce1-4739-a144-c8505d2f8a88

📥 Commits

Reviewing files that changed from the base of the PR and between d4d837a and 26cfab9.


📒 Files selected for processing (3)
  • .github/scripts/bump-framers-deps.py
  • .github/workflows/bump-framers-deps.yml
  • .github/workflows/ci.yml

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@sourcery-ai

sourcery-ai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Introduces a weekly/manual @Framers dependency bump pipeline that safely updates manifests and the lockfile, opens a release-aware pull request, and explicitly dispatches and reports CI for the token-created branch without exposing Codecov secrets.

Sequence diagram for the weekly @Framers dependency bump

sequenceDiagram
    participant Scheduler as GitHub Scheduler
    participant Workflow as bump-framers-deps.yml
    participant Script as bump-framers-deps.py
    participant NPM as npm Registry
    participant PNPM as pnpm
    participant GitHub as GitHub Pull Request

    Scheduler->>Workflow: Start scheduled or workflow_dispatch run
    Workflow->>Script: Run self_check and bump tracked manifests
    Script->>NPM: npm view package@latest version
    NPM-->>Script: Latest published versions
    Script-->>Workflow: Updated package.json pins
    Workflow->>PNPM: pnpm install --no-frozen-lockfile --ignore-scripts
    PNPM-->>Workflow: Refreshed pnpm-lock.yaml
    Workflow->>PNPM: pnpm install --frozen-lockfile --ignore-scripts
    PNPM-->>Workflow: Lockfile validation succeeds
    Workflow->>GitHub: Create or update release-aware pull request
    GitHub-->>Workflow: Pull request operation, branch, SHA, number
Loading

Sequence diagram for dispatched CI on the dependency bump branch

sequenceDiagram
    participant Bump as bump-framers-deps.yml
    participant GitHub as GitHub Actions API
    participant CI as ci.yml
    participant Codecov as Codecov

    Bump->>GitHub: Dispatch ci.yml on pull request branch
    GitHub->>CI: Start workflow_dispatch run
    CI->>CI: Run tests and coverage
    alt workflow_dispatch event
        CI-->>Bump: Workflow completes without Codecov upload
    else pull_request event
        CI->>Codecov: Upload coverage using CODECOV_TOKEN
        Codecov-->>CI: Upload result
        CI-->>Bump: Workflow completes
    end
    Bump->>GitHub: Post CI (workflow_dispatch) commit status
Loading

Flow diagram for release-aware dependency bump pull requests

flowchart TD
    A[Discover @framers/* pins] --> B[Resolve latest npm releases]
    B --> C[Rewrite safe semver ranges]
    C --> D[Refresh and validate pnpm-lock.yaml]
    D --> E{Runtime dependency changed?}
    E -->|Yes| F["fix(deps) pull request"]
    E -->|No| G["chore(deps) pull request"]
    F --> H[Patch release on merge]
    G --> I[No package release on merge]
Loading

File-Level Changes

Change Details Files
Add an automated weekly workflow that discovers, updates, validates, and submits @Framers dependency bumps.
  • Scan tracked package manifests and workspace configuration for @framers/* pins.
  • Query npm latest versions and rewrite safe semver ranges while preserving peer, protocol, path, prerelease, and parent-scoped overrides.
  • Run extensive built-in fixture self-checks and fail on registry errors or unsafe/unhandled pins.
  • Refresh the lockfile with a one-day third-party release-age policy, then verify it with a frozen install.
  • Open or update one pull request containing only package.json and pnpm-lock.yaml changes, with release-sensitive fix/chore titles.
.github/scripts/bump-framers-deps.py
.github/workflows/bump-framers-deps.yml
Make CI executable and safer for dependency-bump pull requests created with GITHUB_TOKEN.
  • Support workflow_dispatch and restrict the workflow token to repository read access.
  • Skip Codecov on dispatched runs to avoid exposing repository secrets to unreviewed dependency code.
  • Dispatch CI on the generated branch, monitor the run, and publish a commit status for the pull request.
  • Serialize bump runs to prevent concurrent branch updates and CI dispatches.
.github/workflows/ci.yml
.github/workflows/bump-framers-deps.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Automate weekly @Framers dependency bump pull requests

✨ Enhancement ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Add a weekly workflow that opens pull requests for published @framers dependency updates.
Diagram

graph TD
  Trigger["Weekly or manual"] --> Script["Bump script"] --> Registry["npm registry"] --> Manifest["Dependency ranges"] --> Lockfile["Verified lockfile"] --> PR["Bump pull request"] --> CI["Dispatched CI"] --> Status["Commit status"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Group updates with Dependabot
  • ➕ Uses a maintained dependency-update service instead of a custom manifest scanner.
  • ➖ Would need another mechanism to distinguish runtime from dev-only releases and preserve the workflow’s selective rewrite rules.

Recommendation: The workflow-plus-script approach fits the repository’s release-title rules and guarded lockfile refresh. Dependabot could reduce maintenance, but it would not replace those repository-specific decisions on its own. Review the scanner’s edge cases and dispatched-CI permissions closely before the first manual run.

Files changed (3) +1018 / -1

Enhancement (1) +737 / -0
bump-framers-deps.pySelectively bump tracked @framers version pins +737/-0

Selectively bump tracked @Framers version pins

• Discovers tracked package manifests and pnpm workspace files, queries npm for published versions, and rewrites eligible ranges without moving newer or deliberately scoped pins. Reports pins requiring human review, fails on registry errors, and runs fixture-based self-checks before modifying files.

.github/scripts/bump-framers-deps.py

Other (2) +281 / -1
bump-framers-deps.ymlSchedule dependency bump pull requests and dispatch CI +270/-0

Schedule dependency bump pull requests and dispatch CI

• Adds weekly and manual runs that refresh and verify the lockfile, open a pull request containing only package.json and pnpm-lock.yaml, and choose a release-triggering title only when runtime dependencies move. A separate job dispatches CI on the bump branch and publishes its result as a commit status.

.github/workflows/bump-framers-deps.yml

ci.ymlPermit safer CI runs on dispatched bump branches +11/-1

Permit safer CI runs on dispatched bump branches

• Accepts manual dispatches so token-created bump pull requests can be tested. Restricts the workflow token to repository read access and skips the secret-backed Codecov upload on dispatched runs.

.github/workflows/ci.yml

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Dependency bumps go untested before merge ✓ Resolved
Description
self_check() tests in-memory rewriting fixtures, but CI never runs main() through tracked-file
discovery, npm lookup, and file writes. On this pull request, the package test suite runs while the
new bump workflow's first execution is deferred until after merge.
Code

.github/workflows/bump-framers-deps.yml[R78-79]

+      - name: Bump @framers/* deps to latest published versions
+        run: python3 .github/scripts/bump-framers-deps.py
Evidence
Rule 5 requires real-path integration coverage for observable behavior. The added fixture check
calls text-rewriting functions, whereas the workflow invokes a broader script path; the CI test step
does not invoke that script.

AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths: AGENTS.md: Test Observable Behavior Through Real Paths
.github/scripts/bump-framers-deps.py[593-617]
.github/scripts/bump-framers-deps.py[707-731]
.github/workflows/bump-framers-deps.yml[78-92]
.github/workflows/ci.yml[104-112]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new bump workflow is not exercised before merge. Its fixture checks do not cover discovery, npm lookup, or file writes.
## Fix Focus Areas
- .github/scripts/bump-framers-deps.py[707-731]
- .github/workflows/ci.yml[104-108]
## Recommended Fix
Add a CI-gated integration test that invokes the script in a temporary tracked repository with controlled npm responses, then verifies the changed manifests and failure behavior.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

The script's own checks cover its rewriting rules on fixtures, not the run
against a repository: finding the tracked manifests, asking npm, writing the
files, and refreshing the lockfile under the release-age rule. A pull request
that changes the workflow or the script now runs all of that in a dry-run job
with a read-only token and opens no pull request.

The workflow's default token is read-only; the bump job alone can write.
A refresh that ignored the setting would look the same as one that applied
it. The job reads the value back from pnpm before installing and stops if it
is not the one it wrote.
@jddunn

jddunn commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@codex review

@jddunn

jddunn commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 4d67c8bc28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jddunn
jddunn merged commit a9cad59 into master Oct 11, 2026
12 checks passed
@jddunn
jddunn deleted the ci/bump-framers-deps branch October 11, 2026 11:38
github-actions Bot pushed a commit that referenced this pull request Oct 11, 2026
## [0.13.50](v0.13.49...v0.13.50) (2026-10-11)

### feat

* **vision:** a cloudTask option asks the cloud tier for the text alone (#301) ([2552104](2552104))

### fix

* **deps:** bump @framers/* deps to latest published versions (#303) ([6278c44](6278c44))

### ci

* weekly pull request that bumps the @framers/* dependencies (#266) ([a9cad59](a9cad59))
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.

1 participant