Skip to content

Fix runfeeders config - #550

Merged
AlCutter merged 3 commits into
transparency-dev:mainfrom
AlCutter:fix_runfeeders
Jun 12, 2026
Merged

Fix runfeeders config#550
AlCutter merged 3 commits into
transparency-dev:mainfrom
AlCutter:fix_runfeeders

Conversation

@AlCutter

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-commenter

codecov-commenter commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 24.37%. Comparing base (36c93e7) to head (5f49e55).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #550      +/-   ##
==========================================
+ Coverage   23.02%   24.37%   +1.34%     
==========================================
  Files          30       30              
  Lines        2063     2064       +1     
==========================================
+ Hits          475      503      +28     
+ Misses       1499     1464      -35     
- Partials       89       97       +8     

☔ View full report in Codecov by Harness.
📢 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.

@AlCutter AlCutter changed the title Fix runfeeders Fix runfeeders config Jun 11, 2026
@AlCutter
AlCutter requested a review from roger2hk June 11, 2026 16:21
@AlCutter AlCutter added the bug Something isn't working label Jun 11, 2026
@AlCutter
AlCutter marked this pull request as ready for review June 11, 2026 16:22
Comment thread cmd/feedwitness/configs_test.go Outdated
if err != nil {
t.Fatal("failed to unmarshal config", err)
}
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like the { on L32 and } on L59 are not necessary.

Comment thread cmd/feedwitness/configs_test.go Outdated

fCfg, err := newStaticFeederConfig(cfg)
if err != nil {
t.Fatal("failed to unmarshal config", err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Fatal("failed to unmarshal config", err)
t.Fatalf("Failed to unmarshal config: %v", err)

Comment thread cmd/feedwitness/configs_test.go Outdated
}
got++
if f.Log.URL != wantURL {
t.Errorf("got URL %q want %q", f.Log.URL, wantURL)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Errorf("got URL %q want %q", f.Log.URL, wantURL)
t.Errorf("got URL %q, want %q", f.Log.URL, wantURL)

Comment thread cmd/feedwitness/configs_test.go Outdated
t.Errorf("got URL %q want %q", f.Log.URL, wantURL)
}
if f.Log.Origin != wantOrigin {
t.Errorf("got Origin %q want %q", f.Log.Origin, wantOrigin)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Errorf("got Origin %q want %q", f.Log.Origin, wantOrigin)
t.Errorf("got Origin %q, want %q", f.Log.Origin, wantOrigin)

Comment thread cmd/feedwitness/configs_test.go Outdated
t.Errorf("got Origin %q want %q", f.Log.Origin, wantOrigin)
}
if f.Log.VKey != wantPublicKey {
t.Errorf("got VKey %q want %q", f.Log.VKey, wantPublicKey)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Errorf("got VKey %q want %q", f.Log.VKey, wantPublicKey)
t.Errorf("got VKey %q, want %q", f.Log.VKey, wantPublicKey)

Comment thread cmd/feedwitness/configs_test.go Outdated
t.Errorf("got VKey %q want %q", f.Log.VKey, wantPublicKey)
}
if f.Log.Verifier == nil {
t.Error("got nil Verifier want non-nil")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Error("got nil Verifier want non-nil")
t.Error("got nil Verifier, want non-nil")

@AlCutter
AlCutter merged commit f4282de into transparency-dev:main Jun 12, 2026
13 checks passed
@AlCutter
AlCutter deleted the fix_runfeeders branch June 12, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants