Skip to content

Release/v1.5.0#183

Merged
nullun merged 38 commits intomainfrom
release/v1.5.0
Dec 9, 2025
Merged

Release/v1.5.0#183
nullun merged 38 commits intomainfrom
release/v1.5.0

Conversation

@nullun
Copy link
Collaborator

@nullun nullun commented Dec 9, 2025

Adds P2P Hybrid configuration, improved status UI, various other bug fixes.

nullun and others added 30 commits October 10, 2025 15:17
If a node has disabled API Authentication, then algod.token doesn't exist, but genesis.json should always exist
feat: Added algod config to StateModel for displaying items in the UI
Co-authored-by: Tasos Bitsios <tasos.bitsios@algorand.foundation>
Mostly nil reference checks, most (if not all) would be impossible to happen, but better safe than sorry.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 26.94064% with 320 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.28%. Comparing base (43b79ba) to head (78680e7).
⚠️ Report is 40 commits behind head on main.

Files with missing lines Patch % Lines
internal/algod/utils/utils.go 10.52% 68 Missing ⚠️
cmd/configure/algod.go 3.50% 55 Missing ⚠️
ui/modals/hybrid/model.go 20.58% 54 Missing ⚠️
internal/algod/utils/settings.go 0.00% 28 Missing ⚠️
ui/status.go 53.33% 18 Missing and 10 partials ⚠️
internal/algod/config/config.go 0.00% 19 Missing ⚠️
cmd/root.go 0.00% 10 Missing and 2 partials ⚠️
internal/algod/metrics.go 75.00% 6 Missing and 4 partials ⚠️
internal/algod/algod.go 47.05% 5 Missing and 4 partials ⚠️
cmd/bootstrap.go 0.00% 8 Missing ⚠️
... and 13 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #183       +/-   ##
===========================================
+ Coverage   34.75%   45.28%   +10.52%     
===========================================
  Files          89       93        +4     
  Lines        6974     5850     -1124     
===========================================
+ Hits         2424     2649      +225     
+ Misses       4417     2930     -1487     
- Partials      133      271      +138     

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

@nullun nullun mentioned this pull request Dec 9, 2025
2 tasks
@nullun nullun requested a review from tasosbit December 9, 2025 10:06
// Should be P2P and WS
end = style.Red.Render("Network/Config Mismatch") + " "
} else if isP2PEnabled && hasSomeData && (!hasP2PData || hasP2PData) {
} else if isP2PEnabled && hasSomeData && (!hasP2PData || hasWSData) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need !hasP2PData here? Looks benign but it feels like we should just want (is P2P enabled && has non-p2p data)

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to eventually simplify this logic a bit (and in sibling conditionals) but not going to hold the release for this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah it got a bit confusing unfortunately, I'm sure I can tidy this up next tine. The logic is at least all clear to me like this (minus this typo I was fixing). Essentially the the hasSomeData is used as a flag to make sure we're not checking the actual conditional logic too early when it first starts up. Then for each if-statement I'm making sure the correct data is being received for the configuration. Should have probably nested it all inside one "hasSomeData" check.

@nullun nullun merged commit 42b0c22 into main Dec 9, 2025
5 of 6 checks passed
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.

3 participants