Skip to content

Downgrade missing snapshot script error log#11343

Merged
harryalbert merged 1 commit into
masterfrom
oz/downgrade-missing-snapshot-script-log
May 19, 2026
Merged

Downgrade missing snapshot script error log#11343
harryalbert merged 1 commit into
masterfrom
oz/downgrade-missing-snapshot-script-log

Conversation

@harryalbert
Copy link
Copy Markdown
Contributor

@harryalbert harryalbert commented May 19, 2026

Description

It's expected that the snapshot declarations script won't always be available (for ex., when running an agent locally using the CLI), and we handle this case already by skipping snapshotting, so we can downgrade this to a regular info log (in case this comes up in debugging around missing snapshots and this info is useful to have).

As a side-note, users can also define their own snapshot scripts and expose them using this env variable so that we actually do do snapshotting for local CLI runs. I'll coordinate with @hongyi-chen about adding some docs for this, although I expect this to be a workflow that's only used by real oz power users.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Conversation: https://staging.warp.dev/conversation/e1b66b0c-bbd1-4cda-a453-46c5009c435f
Run: https://oz.staging.warp.dev/runs/019e41bf-95b5-70f1-956f-07e6cd07faf0

This PR was generated with Oz.

A missing OZ_SNAPSHOT_DECLARATIONS_SCRIPT is expected in some paths
(e.g. local dev without warp-agent-docker, non-containerized runs),
so logging it at error level was noisy and misleading. Downgrade to
log::info and update the doc comment accordingly.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 19, 2026
@harryalbert harryalbert changed the title Downgrade missing OZ_SNAPSHOT_DECLARATIONS_SCRIPT log to info Downgrade missing snapshot script error log May 19, 2026
@harryalbert harryalbert requested a review from captainsafia May 19, 2026 19:51
@harryalbert harryalbert marked this pull request as ready for review May 19, 2026 19:51
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 19, 2026

@harryalbert

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR downgrades the missing OZ_SNAPSHOT_DECLARATIONS_SCRIPT environment variable path from an error log to an info log and updates the helper comment to match the existing non-fatal skip behavior. That aligns with the described local CLI path where declarations snapshotting can be intentionally unavailable.

Concerns

  • No blocking correctness, spec-alignment, or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@harryalbert harryalbert enabled auto-merge (squash) May 19, 2026 20:47
@harryalbert harryalbert merged commit 6007159 into master May 19, 2026
52 checks passed
@harryalbert harryalbert deleted the oz/downgrade-missing-snapshot-script-log branch May 19, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants