Skip to content

Fix serverless update not saving new code with migration v2#15221

Merged
Weiko merged 1 commit intomainfrom
c--fix-serverless-update-not-saving-new-code-with-migration-v2
Oct 21, 2025
Merged

Fix serverless update not saving new code with migration v2#15221
Weiko merged 1 commit intomainfrom
c--fix-serverless-update-not-saving-new-code-with-migration-v2

Conversation

@Weiko
Copy link
Copy Markdown
Member

@Weiko Weiko commented Oct 21, 2025

Context

Regression introduced in #15032
With the new code, we don't have access to the from/to from the specialised builder anymore and we now rely on diffing result and cache to create the action which broke serverless update because "code" is not part of the cache nor part of the diffing (checksum is).
To maintain the existing architecture and keep it generic (by only modifying the specialized builder), the serverless builder overrides the parent validateAndBuild method

@Weiko Weiko force-pushed the c--fix-serverless-update-not-saving-new-code-with-migration-v2 branch from 37a97fb to a6b5c59 Compare October 21, 2025 09:16
@twentyhq twentyhq deleted a comment from greptile-apps bot Oct 21, 2025
@twentyhq twentyhq deleted a comment from greptile-apps bot Oct 21, 2025
@twentyhq twentyhq deleted a comment from greptile-apps bot Oct 21, 2025
@Weiko Weiko force-pushed the c--fix-serverless-update-not-saving-new-code-with-migration-v2 branch from a6b5c59 to f3aaf28 Compare October 21, 2025 09:18
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 21, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:6490

This environment will automatically shut down when the PR is closed or after 5 hours.

@Weiko Weiko merged commit 0122f80 into main Oct 21, 2025
52 of 53 checks passed
@Weiko Weiko deleted the c--fix-serverless-update-not-saving-new-code-with-migration-v2 branch October 21, 2025 09:43
super(ALL_METADATA_NAME.serverlessFunction);
}

public async validateAndBuild(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

should have added "override" keyword to make it clearer, will do in the next PR

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.

3 participants