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

Agent: fix bug causing recording files to not remove unused files #2926

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

olafurpg
Copy link
Member

Previously, the HTTP recording file kept growing bigger and bigger even for PRs where we didn't add new requests and we had enabled the setting keepUnusedRequests: false, which should remove entries for unused requsts. Turns out that we were parsing the
KEEP_UNUSED_RECORDINGS=false environment variable as the string value "false", which is truthy. This PR fixes the problem so that we now correctly remove unused recordings.

Test plan

Green CI.

Previously, the HTTP recording file kept growing bigger and bigger even
for PRs where we didn't add new requests and we had enabled the setting
`keepUnusedRequests: false`, which should remove entries for unused
requsts. Turns out that we were parsing the
`KEEP_UNUSED_RECORDINGS=false` environment variable as the string
value `"false"`, which is truthy. This PR fixes the problem so that we
now correctly remove unused recordings.
@olafurpg olafurpg requested a review from a team January 29, 2024 13:45
@olafurpg olafurpg merged commit c7ffcdc into main Jan 29, 2024
15 checks passed
@olafurpg olafurpg deleted the olafurpg/quickpick branch January 29, 2024 14:01
@olafurpg olafurpg mentioned this pull request Jan 29, 2024
22 tasks
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