Skip to content

Small nice to have follow-ups around codebase - #17

Merged
ardecvz merged 3 commits into
rails:mainfrom
ardecvz:fix/article-follow-ups
Oct 27, 2026
Merged

ardecvz merged 3 commits into
rails:mainfrom
ardecvz:fix/article-follow-ups

Conversation

@ardecvz

@ardecvz ardecvz commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator
  • Clear bootsnap caches when applying an environment patch, so a cache compiled before the patch can't hand the agent the removed code.
  • Secrets: redact every *_KEY variable, not only *_API_KEY (e.g., AWS_SECRET_ACCESS_KEY).

And a new small test:

  • Test: test a single-step recovery

@ardecvz
ardecvz requested review from baygeldin, palkan and skryukov and a balanced review from Copilot October 27, 2026 02:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The cache cleanup misses Bootsnap caches when BOOTSNAP_CACHE_DIR is set, leaving pre-patch bytecode available to the agent.

1 open issue
What changed in this PR

This PR tightens trial setup and secret redaction, and adds coverage for single-step recovery.

Changes:

  • Add Bootsnap cache cleanup when applying environment patches.
  • Extend secret redaction to all *_KEY environment variables.
  • Test single-step recovery, including history reuse and phase timing.
File Description
test/​lemans/​trial/​setup_test.rb Assert cache cleanup is included in setup.
test/​lemans/​trial_test.rb Add single-step recovery coverage.
test/​lemans/​secrets_filter_test.rb Verify access-key redaction.
lib/​lemans/​trial/​setup.rb Add cache cleanup and extract timestamp normalization.
lib/​lemans/​secrets_filter.rb Broaden secret matching to *_KEY.
CHANGELOG.md Document setup and redaction changes.

Review effort: Balanced

Comment thread lib/lemans/trial/setup.rb Resolved

@baygeldin baygeldin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

@palkan palkan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@ardecvz
ardecvz force-pushed the fix/article-follow-ups branch from 678b5c7 to 9241744 Compare October 27, 2026 22:13
@ardecvz
ardecvz force-pushed the fix/article-follow-ups branch from 9241744 to 76182ba Compare October 27, 2026 22:15
@ardecvz
ardecvz merged commit 2e9eecf into rails:main Oct 27, 2026
2 checks passed
@ardecvz
ardecvz deleted the fix/article-follow-ups branch October 27, 2026 22:15
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.

4 participants