Skip to content
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

ref: Use the VM to execute local config files #171

Conversation

evanpurkhiser
Copy link
Member

This makes config file loading consistent between using the http config resolver and passing a local file path to load the config.

Consistency is important here for us since in Sentry we have chartucterie acceptance tests, which are there to help us catch changes made to Sentry's javascript app that may break chartucterie. However they are run with chartucterie having loaded the config using a file path and not HTTP, which differs from happens in production, where we resolve the config via HTTP and execute it in a vm context.

By making these consistent we catch errors that happen loading the config in the vm contextchartucterie VM.

@evanpurkhiser evanpurkhiser requested a review from a team September 25, 2024 16:40
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-use-the-vm-to-execute-local-config-files branch from a4c4d1e to c07dbc8 Compare September 25, 2024 16:56
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) September 25, 2024 16:56
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-use-the-vm-to-execute-local-config-files branch from c07dbc8 to 8847926 Compare September 25, 2024 20:52
@evanpurkhiser
Copy link
Member Author

formatting gdi lol

This makes config file loading consistent between using the http config
resolver and passing a local file path to load the config.

Consistency is important here for us since in Sentry we have
chartucterie acceptance tests, which are there to help us catch changes
made to Sentry's javascript app that may break chartucterie. However
they are run with chartucterie having loaded the config using a file
path and not HTTP, which differs from happens in production, where we
resolve the config via HTTP and execute it in a vm context.

By making these consistent we catch errors that happen loading the
config in the vm contextchartucterie VM.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-use-the-vm-to-execute-local-config-files branch from 8847926 to cef485e Compare September 25, 2024 22:57
@evanpurkhiser evanpurkhiser merged commit 7393692 into master Sep 25, 2024
8 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-use-the-vm-to-execute-local-config-files branch September 25, 2024 23:41
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