Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Finish deprecating enable_template_filesystem_access #4222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
shuyangli merged 2 commits into main from fix-2864
Oct 31, 2025
Merged

Conversation

@GabrielBianconi
Copy link
Member

@GabrielBianconi GabrielBianconi commented Oct 28, 2025
edited by ellipsis-dev bot
Loading

Fix #2864


Important

Remove deprecated enable_template_filesystem_access from configuration and update related logic and tests.

  • Behavior:
    • Remove deprecated enable_template_filesystem_access from UninitializedGatewayConfig in gateway.rs.
    • Update load() in UninitializedGatewayConfig to use template_filesystem_access directly.
  • Tests:
    • Remove test_deprecated_enable_template_filesystem_access() from tests.rs.
  • Misc:
    • Fix comment formatting in mod.rs for TemplateFilesystemAccess.

This description was created by Ellipsis for 02327ae. You can customize this summary. It will automatically update as commits are pushed.

ellipsis-dev[bot] reacted with rocket emoji
Copilot AI review requested due to automatic review settings October 28, 2025 17:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the deprecated gateway.enable_template_filesystem_access configuration field and its associated migration logic, simplifying the gateway configuration handling.

Key changes:

  • Removed the deprecated enable_template_filesystem_access field from UninitializedGatewayConfig
  • Simplified the load() method by removing the migration logic that handled both old and new configuration formats
  • Updated inline documentation to use proper markdown formatting for code snippets
  • Removed the test for deprecated field behavior

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tensorzero-core/src/config/gateway.rs Removed deprecated field, migration logic, and unused ErrorDetails import; simplified template_filesystem_access initialization
tensorzero-core/src/config/mod.rs Fixed inline documentation formatting to use backticks instead of single quotes for code snippet
tensorzero-core/src/config/tests.rs Removed test for deprecated configuration field

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

github-actions bot pushed a commit that referenced this pull request Oct 28, 2025
Copy link
Contributor

TensorZero CI Bot Automated Comment

The CI failure is coming from the check-node-bindings job. After building the Node bindings, the workflow detected an uncommitted change in internal/tensorzero-node/lib/bindings/TemplateFilesystemAccess.ts. This was triggered by the Rust doc comment change you made in tensorzero-core/src/config/mod.rs, where '{% include %}' was updated to `{% include %}`. The bindings are generated from those Rust types/docs, so the generated TS file also needs to be updated and committed.

I’ve included a patch that updates the generated TemplateFilesystemAccess.ts to match the new doc comment so that the "git diff --exit-code" check will pass. The subsequent "check-all-general-jobs-passed" failure is a cascade from this job and should be resolved once the bindings diff is committed.

Note: The "Upload bindings artifact on diff failure" step error about NSC_TOKEN_FILE is only executed on failure paths and does not indicate a separate issue with the codebase.

I've opened an automated follow-up PR #4224 with proposed fixes.

Co-authored-by: TensorZero-Experimental-CI-Bot[bot] <hello@tensorzero.com>
@shuyangli shuyangli added this pull request to the merge queue Oct 31, 2025
Merged via the queue into main with commit b9d1ad3 Oct 31, 2025
41 checks passed
@shuyangli shuyangli deleted the fix-2864 branch October 31, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

@shuyangli shuyangli shuyangli approved these changes

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Deprecation: Remove gateway.enable_template_filesystem_access from config

AltStyle によって変換されたページ (->オリジナル) /