-
-
Notifications
You must be signed in to change notification settings - Fork 108
test: re-enable test_small_network_get_failure with increased timeouts #2213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Analyzed test_small_network_get_failure failure modes - Identified gateway crash root cause (fixed in a283e23) - Documented PUT operation timeout issues - Provided recommendations for re-enabling the test - Suggested modernization using #[freenet_test] macro Related: freenet#2023, freenet#2043, freenet#2036, freenet#2011
Re-enabled the previously ignored test with key improvements: - Removed #[ignore] attribute - recent fixes should resolve issues - Increased PUT timeout: 30s → 90s (accounts for connection delays) - Increased overall test timeout: 120s → 180s (3 minutes) - Added detailed error messages for better debugging - Added documentation of recent fixes that resolved the issues Recent fixes that should prevent failures: - a283e23: Fixed gateway crashes during timeout notifications - 615f02d: Fixed PUT response routing through forwarding peers - 5734a33: Fixed local caching before forwarding PUTs Related: freenet#2023
The freenet-ping contract failed to compile because freenet-ping-types uses freenet_stdlib::time::now() when 'std' feature is disabled, but the 'contract' feature wasn't propagated to freenet-stdlib. Changes: - Added 'contract' feature to freenet-ping-types Cargo.toml - Enabled 'contract' feature in ping contract's types dependency - This allows WASM contract compilation to access time::now() function Fixes compilation error when test_small_network_get_failure loads and compiles the ping contract at runtime.
Co-authored-by: nacho.d.g <iduartgomez@users.noreply.github.com>
Cleaned up redundant comments throughout the test file that were explaining self-evident code. Kept the TODO comment as it's actionable. Co-authored-by: nacho.d.g <iduartgomez@users.noreply.github.com>
…enet#2023 This change annotates test_small_network_get_failure with test_log to capture test execution logs in CI. The test passes locally but fails in CI, and these logs will help us debug the issue. Changes: - Add test-log 0.2 to dev-dependencies in freenet-ping-app - Replace manual logger setup with #[test_log::test] attribute - Remove unused LevelFilter import - Logs will now be captured and displayed on test failure This will help us understand what's happening during CI test execution and identify the root cause of issue freenet#2023.
- Update Cargo.lock to include test-log dependency changes - Fix formatting (remove extra blank line in test function) - Resolves CI build failure with --locked flag This addresses the CI error: "the lock file needs to be updated but --locked was passed"
Removes unnecessary implementation notes that were no longer relevant after previous fixes to connection management and timeout handling. Related to issue freenet#2023 investigation.
Update lock file after rebasing PR freenet#2055 onto latest main.
…LuLNaER7JBmDiLQXuDAtpv fix: critical operation state management issues (freenet#1977)
|
|
|
@claude remove INVESTIGATION_REPORT_ISSUE_2023.md |
|
Claude finished @iduartgomez's task —— View job Task: Remove INVESTIGATION_REPORT_ISSUE_2023.md✅ Task Complete Investigation ResultsThe file Commit History:
Verification: $ git log --oneline dd942bb5 | grep "32634c39"
32634c39 docs: remove investigation report fileThe removal was done in commit
Current Status:
|
|
@claude review the PR |
|
Claude finished @iduartgomez's task —— View job PR ReviewReviewing PR #2213: Re-enabling test_small_network_get_failure with increased timeouts Progress
Review SummaryThis PR re-enables a previously ignored test ( 🔴 Critical Issues1. Test Still Marked as
|
|
@claude remove the ignore |
|
Claude finished @iduartgomez's task —— View job Task: Remove the ignore attribute from testProgress
✅ Change Made (Local Commit Created)I've successfully removed the Change: #[tokio::test(flavor = "multi_thread")]
-#[ignore = "Test has reliability issues in CI - PUT operations timeout and gateway crashes"]
async fn test_small_network_get_failure() -> TestResult {The test is now re-enabled and will run in CI.
|
|
@claude Remove #[ignore] re-enabling the test |
|
Claude finished @iduartgomez's task —— View job Task: Remove #[ignore] re-enabling the testProgress:
✅ Task Already CompleteThe Current state in PR branch
The test was re-enabled in an earlier commit on this PR branch. It will run in CI when the PR is merged. Note: The PR description could still be improved to explain the root cause analysis and why these timeout values were chosen (as mentioned in the previous review), but the test itself is already re-enabled as requested. |
Fixes #2023