Skip to content

Conversation

@yuxincs
Copy link
Contributor

@yuxincs yuxincs commented Nov 13, 2025

We are using a plain map for affiliation cache, which produces nondeterministic gob encoding when doing fact serialization.

This PR replaces that with our own OrderedMap implementation for stable serialization.

Fixes #135

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.04%. Comparing base (135d469) to head (8b51b5b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
assertion/affiliation/affiliation.go 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #375      +/-   ##
==========================================
- Coverage   87.05%   87.04%   -0.01%     
==========================================
  Files          73       73              
  Lines        8303     8301       -2     
==========================================
- Hits         7228     7226       -2     
  Misses        882      882              
  Partials      193      193              

☔ 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.

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

Golden Test

Note

✅ NilAway errors reported on standard libraries are identical.

2526 errors on base branch (main, 135d469)
2526 errors on test branch (e2b1818)

@yuxincs yuxincs merged commit 44f9222 into main Nov 19, 2025
9 checks passed
@yuxincs yuxincs deleted the yuxincs/fix-nondeterminism-in-affiliation-cache branch November 19, 2025 03:49
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.

nilaway panics - "internal error: encoding of *affiliation.AffliliationCache fact failed"

3 participants