• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fogfish / iq / 20697924022
39%
main: 31%

Build:
Build:
LAST BUILD BRANCH: fea-mime-markdown
DEFAULT BRANCH: main
Ran 04 Jan 2026 07:24PM UTC
Jobs 1
Files 42
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jan 2026 07:16PM UTC coverage: 39.274%. First build
20697924022

Pull #87

github

fogfish
Fix emit context propagation using EmitContextCapture pattern

Issue: Emit context set in workflow steps wasn't reaching StorageSink because Go contexts are immutable - workflow execution creates new contexts that don't propagate back.

Solution: Implemented EmitContextCapture pattern - a mutable struct passed via context that workflow steps can write to during execution.

Changes:
- Added EmitContextCapture struct and helpers (WithEmitCapture, GetEmitCapture) to compiler/context.go
- Updated all workflow steps (AgentStep, RouterStep, ForeachStep, RunStep) to capture emit in EmitContextCapture
- Modified Agent processor to create emit capture before workflow execution and store captured emit in document metadata
- Fixed Agent processor to preserve document Key from input to output
- Added workflow detection (workflowUsesEmit) and conditional sink selection (buildWithEmit) in agent command
- StorageSink reads emit from document metadata and applies prefix/counters to output path

Result: emit attribute now correctly controls output directory structure (e.g., emit: processed → output/processed/file.txt)
Pull Request #87: Implement #81: Pipeline integration with storage sink and emit execution

73 of 198 new or added lines in 9 files covered. (36.87%)

1655 of 4214 relevant lines covered (39.27%)

0.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
35.11
internal/service/worker/worker.go
4
83.52
cmd/opts.go
6
41.77
internal/blueprint/compiler/context.go
10
0.0
internal/blueprint/blueprint.go
11
40.0
internal/service/sink/sink.go
13
69.05
internal/iosystem/sink/storage.go
15
9.84
internal/iosystem/processor/agent.go
16
35.29
cmd/agent.go
48
18.0
internal/blueprint/compiler/workflow.go
Jobs
ID Job ID Ran Files Coverage
1 20697924022.1 04 Jan 2026 07:24PM UTC 42
39.27
GitHub Action Run
Source Files on build 20697924022
  • Tree
  • List 42
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #87
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc