Skip to content

Conversation

@xgopilot
Copy link
Contributor

@xgopilot xgopilot bot commented Feb 9, 2026

Requested by @MeteorsLiu

Summary

  • Add documentation for exported Module struct
  • Fix Options comment: LoadPackages -> Load
  • Fix FormulaStore field comment: FormulaRepo -> FormulaStore
  • Fix Load function comment: LoadPackages -> Load, formulas -> modules

MeteorsLiu and others added 4 commits February 9, 2026 15:22
Add module loading functionality with MVS-based dependency resolution. Includes the Load function for loading packages and resolving their dependencies, version handling, and test data for various module loading scenarios.
Add concurrency safety to the modules package by:

- Replace map-based moduleCache with sync.Map for thread-safe access
- Introduce loadMu mutex to serialize ixgo interpreter loading to prevent
  internal race conditions during concurrent operations
- Add mutex protection (m.mu) for formula map access within formulaModule
- Refactor comparator loading using sync.OnceValues for lazy initialization
- Extract loadOrDefaultComparator function for cleaner comparator handling

These changes prevent data races when Load() and formula.LoadFS are called
concurrently, as the ixgo interpreter has internal race conditions that
require serialized access.
- Add documentation for exported Module struct
- Fix Options comment: LoadPackages -> Load
- Fix FormulaStore field comment: FormulaRepo -> FormulaStore
- Fix Load function comment: LoadPackages -> Load, formulas -> modules

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: MeteorsLiu <17515813+MeteorsLiu@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 90.40404% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.29%. Comparing base (29d5717) to head (60407bc).

Files with missing lines Patch % Lines
internal/modules/load.go 89.50% 10 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   70.24%   73.29%   +3.04%     
==========================================
  Files          26       27       +1     
  Lines        1099     1288     +189     
==========================================
+ Hits          772      944     +172     
- Misses        259      268       +9     
- Partials       68       76       +8     

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

@MeteorsLiu MeteorsLiu closed this Feb 10, 2026
@xgopilot xgopilot bot deleted the fork-pr-94-1770621787 branch February 10, 2026 04:28
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.

2 participants