Skip to content

cost-tracking: add testing infrastructure #680

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

ureeves
Copy link
Collaborator

@ureeves ureeves commented Jun 10, 2025

In this commit we add the infrastructure necessary to test the runtime's cost tracking. We take advantage of the tests that already exist to check the interpreter and the runtime match in the results that they produce, and add an assertion that the tracked costs should also be equivalent.

To trigger the cost tracking tests, a new feature test-cost-tracking is added. By default cost tracking checks are not included, to preserve current behavior.

We also add the tests to the CI infrastructure, by adding a new matrix field controlling if we test with cost tracking or not.

Resolves: #636

@ureeves ureeves force-pushed the test/cost-tracking branch 2 times, most recently from 54f1ea8 to 66b9e50 Compare June 10, 2025 14:11
In this commit we add the infrastructure necessary to test the runtime's
cost tracking. We take advantage of the tests that already exist to
check the interpreter and the runtime match in the results that they
produce, and add an assertion that the tracked costs should also be
equivalent.

To trigger the cost tracking tests, a new feature `test-cost-tracking`
is added. By default cost tracking checks are *not* included, to
preserve current behavior.

We also add the tests to the CI infrastructure, by adding a new matrix
field controlling if we test with cost tracking or not.

Resolves: #636
@ureeves ureeves force-pushed the test/cost-tracking branch from c078d5e to cdcaa30 Compare August 3, 2025 20:33
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.

Cost Tracking Testing
2 participants