Skip to content

Conversation

@iduartgomez
Copy link
Collaborator

@iduartgomez iduartgomez commented Nov 5, 2025

Fixes #2023

claude and others added 6 commits November 4, 2025 21:42
- 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: #2023, #2043, #2036, #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: #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>
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 #2023.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

- 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"
@iduartgomez iduartgomez changed the title Claude/investigate issue 2023 011 c up rv tnalq2wk my enn fo y test: re-enable test_small_network_get_failure with increased timeouts Nov 5, 2025
Removes unnecessary implementation notes that were no longer relevant
after previous fixes to connection management and timeout handling.

Related to issue #2023 investigation.
@iduartgomez iduartgomez marked this pull request as ready for review November 5, 2025 13:40
@iduartgomez iduartgomez added this pull request to the merge queue Nov 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 5, 2025
@iduartgomez iduartgomez added this pull request to the merge queue Nov 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 5, 2025
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.

test: fix PUT timeout and gateway crashes in small network test

4 participants