CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regression
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
Hướng nghiên cứu
Start with TestFsProcessor and the mmap wiring: compare pkg/event/metainfo_windows.go (lines 97-99) with internal/etw/processors/fs_windows.go (the ProcessEvent switch around line 74 and the mmap branches near 100 and 144). Then look at pr.yml and master.yml for the continue-on-error settings. Done means the mmap test cases pass on Windows, and the CI decision about which tests gate the build is recorded. This spans ETW, CI policy and a possible regression, so get a maintainer's direction before opening a PR.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I maintain zanadir, which reads a repository's CI and reports which kinds of checks it runs and whether each one can actually fail the build. I ran it on fibratus and wanted to share what it found, with a suggestion to run it in CI.
CI already covers a lot: a full Windows build and MSI, fibratus rules validate with a check that changed rules bump their version, golangci-lint with a real config, CodeQL default setup, and SignPath-signed releases. What I'd look at:
-
The
testjob has failed on every run since 21 September, and some failures look real.testandlinthave hadcontinue-on-error: truesince they were added in 2021 (pr.ymllines 116 and 174,master.yml130 and 188). I assume that's because some tests drive live ETW sessions or depend on the runner image, which is a fair reason. The cost is thattestfailed in all 13 master runs since 21 September (the last green one was 24ccc90) and in every PR run that reached it, while each run concluded success. A new failure looks the same as the old ones.In the latest master run (42681983636), 54 packages pass and 5 fail. Some failures look environmental:
TestEventSourceAllEventshits the 10-minutego testtimeout,TestIsCatalogSignedexpects notepad.exe's issuer to be "Microsoft Windows Production PCA 2011" but the runner now reports "PCA 2026 RSA2048-SHA256" (pkg/sys/trust_test.go:69), andTestDownload/TestMatchHashlook for specific entries in the live loldrivers.io feed.TestFsProcessoris different. It only uses mocks, and two of its cases have failed since 598d50f. That commit putMapViewOfSection,UnmapViewOfSectionandMapViewSectionRundownin the Memory category (pkg/event/metainfo_windows.go:97-99), butfsProcessor.ProcessEventstill only handlesevent.File(internal/etw/processors/fs_windows.go:74). So the mmap branches at lines 100 and 144 are never reached, and nothing else callspsnap.AddMmaporRemoveMmap. If I'm reading it right,MapViewOfSectionevents on master no longer getfile.path, which "Potential NTDLL unhooking via file mapping" matches on. It isn't in a release yet.TestThreadFilter(failing since 5f217f46) andTestModuleFilter(since 8a4133b3) also started right after code changes, so they may be worth a look.The environmental tests could skip on hosted runners the way
TestPublishAmqpOutputalready does, or run in a separate step that keepscontinue-on-errorwhile the main step gates:go test -timeout=10m -gcflags=all=-d=checkptr=0 -tags "$TAGS" \ -skip 'TestEventSourceAllEvents|TestIsCatalogSigned|TestDownload|TestMatchHash' ./... -
Lint could gate today. It passed in each of the last 30 master runs, and the five PR failures since 19 October were all real findings, such as
registry_windows_test.gonot compiling (run 42667613702) and an uncheckedCloseHandleatsystray_windows.go:130(run 40559046989). Droppingcontinue-on-errorfromlintcosts nothing now, andneeds: buildinstead ofneeds: testkeeps it running when tests fail. -
No workflow sets
permissions:, and actions are referenced by tag.dependabot.ymlonly coversgomod, andpr.ymlline 254 usestj-actions/changed-files@v45, whose tags (v45 included) were repointed to a malicious commit in March 2025. A top-levelpermissions: contents: read(withcontents: writeonly on the release job), SHA pins, and agithub-actionsentry independabot.ymlwould cover this. -
Smaller:
govulncheck ./...to fail a build on a known vulnerability in code that's actually called, and a secret scan (Gitleaks) on pull requests.
To run zanadir itself, add a job to pr.yml:
zanadir:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: MustacheCase/zanadir-action@059d8ee8b790fb5a3d70716ca5cb79fda35c67cf # v1.41
with:
dir: .
excluded-categories: Performance Testing
It reports without failing the build; fail-on-weakened: true makes it gate. Today it scores 6 of 10 categories (performance testing excluded): SCA (Dependabot, advisory), a linter, unit tests (the test job, advisory), SAST and workflow security (CodeQL default setup), and supply chain (SignPath). With dir: . it can't see CodeQL default setup yet, so in CI it will list SAST and workflow security as missing. That's a gap on our side that we're fixing.
Happy to send a PR for any of these, starting with the test split.
- Ngôn ngữ chính
- Go
- Star
- 2.6k
- Fork
- 222
- Merge trung bình
- 16 giờ 23 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringĐang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
rabbitstack/fibratus#761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci rules type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope: hardering type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
rabbitstack/fibratus#713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `WMI` activity telemetryĐang mởneeds: config scope: events/telemetry type: feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rabbitstack/fibratus#710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs: config scope: events/telemetry type: feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
rabbitstack/fibratus#708 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rabbitstack/fibratus
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
unbound-force/replicator#193 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
A Gemini stream that fails partway completes the call with the partial textCó thể đã có người làm @bnaylor đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
go-steer/core-agent#1600 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug raised-by:reviewer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
medici-finance/assay#7655 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add /exit and /quit commandsĐang mởenhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Edwin-metcalf/MetCode#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày