Skip to content

pre compile regex for exclusions - #11

Merged
xytan0056 merged 2 commits into
mainfrom
regex
Feb 5, 2026
Merged

xytan0056 merged 2 commits into
mainfrom
regex

Conversation

@xytan0056

@xytan0056 xytan0056 commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor

exclusion regexes are expensive, pre compile them instead. This would significantly speed up hashing time for large graph

@xytan0056
xytan0056 requested review from a team as code owners February 4, 2026 22:40
@xytan0056
xytan0056 merged commit 1d99dd6 into main Feb 5, 2026
1 check passed
sbalabanov pushed a commit that referenced this pull request Jul 31, 2026
… lifecycle metrics (audit #11)

The metrics doc described outcome values (success/failure/cancelled) that
did not match the code, which emits success/cancelled/user/infra/infra_retryable
via ErrorCode.String(). "failure" was never emitted. The doc also showed a
fictitious cache_read sub-op example and omitted the failures{error_code}
counter and three cache-lookup counters.

- Rewrite the outcome-vocabulary section with the real values and their
  derivation from ErrorCode.String()
- Document the controller failures{error_code} counter
- Document the three cache-lookup counters (treehash, graph, compared_targets)
  with hit/miss/silent-on-infra semantics
- Replace the fictitious cache_read example with the real cache-lookup pattern
- Fix stale CamelCase op-name comment in names.go (real ops are snake_case)
- Add Begin/Complete lifecycle metrics to nativeGraphRunner.Compute with
  repo-tagged emitter
- Add RecordCacheLookup graph_cache_lookup to the controller graph download
  path with correct hit/miss/silent-infra semantics
- Add tests for graphrunner lifecycle metrics (success + error) and controller
  graph_cache_lookup counters (hit + miss)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sbalabanov pushed a commit that referenced this pull request Aug 3, 2026
… lifecycle metrics (audit #11)

The metrics doc described outcome values (success/failure/cancelled) that
did not match the code, which emits success/cancelled/user/infra/infra_retryable
via ErrorCode.String(). "failure" was never emitted. The doc also showed a
fictitious cache_read sub-op example and omitted the failures{error_code}
counter and three cache-lookup counters.

- Rewrite the outcome-vocabulary section with the real values and their
  derivation from ErrorCode.String()
- Document the controller failures{error_code} counter
- Document the three cache-lookup counters (treehash, graph, compared_targets)
  with hit/miss/silent-on-infra semantics
- Replace the fictitious cache_read example with the real cache-lookup pattern
- Fix stale CamelCase op-name comment in names.go (real ops are snake_case)
- Add Begin/Complete lifecycle metrics to nativeGraphRunner.Compute with
  repo-tagged emitter
- Add RecordCacheLookup graph_cache_lookup to the controller graph download
  path with correct hit/miss/silent-infra semantics
- Add tests for graphrunner lifecycle metrics (success + error) and controller
  graph_cache_lookup counters (hit + miss)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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