Skip to content

refacror & feature: add tracering, supporting chrome trace, refactor execution graph validator, polishing tests.#106

Open
noneback wants to merge 3 commits intomainfrom
agent
Open

refacror & feature: add tracering, supporting chrome trace, refactor execution graph validator, polishing tests.#106
noneback wants to merge 3 commits intomainfrom
agent

Conversation

@noneback
Copy link
Owner

No description provided.

@noneback noneback force-pushed the agent branch 2 times, most recently from 588f033 to 10cc43e Compare March 19, 2026 07:31
- extract Option type and With* funcs into options.go
- add WithConcurrency, WithProfiler, WithTracer, WithPanicHandler options
- internalize validator (unexported types, package-level func)
- fix data race in TestTaskflowNotInFlow (atomic.Int32)
- fix data race in TestPoolSequentialExec (sync.WaitGroup)
- update README and llms.txt with Options and Tracing sections
- merge double log.Printf per panic into single structured line
- use %q for graph/task names, add [go-taskflow] prefix
- remove internal scheduler noise logs (node-skip, subgraph-cancel propagation)
- add traceRecord type and tracer.snapshot() to tracer.go
- validate() now takes traceRecord (immutable snapshot) instead of Executor
- validator struct holds traceRecord, no longer locks tracer directly
- add mustSnapshot() test helper to extract snapshot from executor
- nil traceRecord treated as 'no trace data', always returns valid
@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 89.23077% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.99%. Comparing base (ac58e4f) to head (63c1744).

Files with missing lines Patch % Lines
validator.go 84.33% 9 Missing and 4 partials ⚠️
executor.go 84.00% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
- Coverage   89.07%   88.99%   -0.08%     
==========================================
  Files          13       16       +3     
  Lines         659      827     +168     
==========================================
+ Hits          587      736     +149     
- Misses         53       66      +13     
- Partials       19       25       +6     
Flag Coverage Δ
unittests 88.99% <89.23%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant