Skip to content
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

feat(ci): WAN nightly #1173

Merged
merged 19 commits into from
Feb 2, 2024
Merged

feat(ci): WAN nightly #1173

merged 19 commits into from
Feb 2, 2024

Conversation

RolandSherwin
Copy link
Member

@RolandSherwin RolandSherwin commented Jan 11, 2024

Description

Summary generated by Reviewpad on 01 Feb 24 07:27 UTC

This pull request includes several changes to different files in the codebase. Here are the summaries of each file:

  1. .github/workflows/merge.yml:
  • Lines 8 and 10 have been commented out, disabling the pull_request trigger.
  • The CARGO_INCREMENTAL environment variable has been set to 0 to disable incremental builds in CI.
  1. sn_node/tests/nodes_rewards.rs:
  • The wait duration calculation for royalty payments has been changed. Previously, it was the maximum of 40 seconds or 10 seconds per expected royalty. Now, it is the maximum of 80 seconds or 10 seconds per expected royalty. This suggests an increase in the wait duration.
  1. main.rs:
  • The error message in the start_new_node_process function has been modified. The format of the error message generated by the eprintln! and error! macros has changed.
  • Previously, the error message was printed without any additional formatting. Now, it uses curly braces and a question mark ({e:?}) to format the error message in a more readable and informative way. This change aims to improve error reporting in case of failures when executing the hard-restart command.
  1. service.rs:
  • Import statements for SocketAddr, TcpListener, PathBuf, OsString, thread::sleep, and time::Duration have been updated to a single line format.
  • The ServiceControl implementation for NodeServiceManager has been modified. In the install function, a new variable service_ctx of type ServiceInstallCtx has been defined. The contents of the ServiceInstallCtx struct have been updated, including a temporary fix to enable the restart command to properly restart a running service for Linux targets.
  • The manager.install function has been called with the service_ctx variable as a parameter. These changes aim to improve the import statements and make modifications to the ServiceControl implementation for NodeServiceManager.
  1. .github/workflows/benchmark-prs.yml:
  • The triggering event for the GitHub workflow has been modified. It was previously set to pull_request, but now it uses the merge_group event, specifically for the main branch.
  • The on section has been updated to include the merge_group event with the branches attribute set to [main].
  • The env section remains unchanged.
  1. .github/workflows/memcheck.yml:
  • Line 9, which contains the pull_request event listener, has been commented out.

Please review these changes and ensure they align with the intended behavior for the pull request. Let me know if you need further assistance with this code review.

@reviewpad reviewpad bot added the Large Large sized PR label Jan 11, 2024
@RolandSherwin RolandSherwin force-pushed the wan_nightly branch 3 times, most recently from e883567 to 239eb6e Compare January 12, 2024 12:59
@RolandSherwin RolandSherwin force-pushed the wan_nightly branch 2 times, most recently from 07d5471 to 096e73f Compare January 15, 2024 08:14
@RolandSherwin RolandSherwin force-pushed the wan_nightly branch 4 times, most recently from f73df49 to 1cd56f9 Compare January 16, 2024 08:03
@@ -232,6 +267,10 @@
"Getting {} tokens from the faucet... num_requests:{num_requests}",
NanoTokens::from(num_requests * 100 * 1_000_000_000)
);
info!(
"Getting {} tokens from the faucet... num_requests:{num_requests}",

Check warning

Code scanning / devskim

An HTTP-based URL without TLS was detected. Warning test

Insecure URL
@RolandSherwin RolandSherwin force-pushed the wan_nightly branch 15 times, most recently from ab25951 to 041bbeb Compare January 22, 2024 11:21
@RolandSherwin RolandSherwin force-pushed the wan_nightly branch 5 times, most recently from a5243dc to 7541341 Compare February 2, 2024 13:37
fi
node_count=$(find "${{ matrix.wan_logs_path }}" -type d | awk -F/ 'NF==9' | grep -E "/12D3KooW" | wc -l)
echo "Node dir count is $node_count"
# TODO: reenable this once the testnet dir creation is tidied up to avoid a large count here

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
timeout-minutes: 1
# get the counts, then the specific line, and then the digit count only
# then check we have an expected level of restarts
# TODO: make this use an env var, or relate to testnet size

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
timeout-minutes: 1
# get the counts, then the specific line, and then the digit count only
# then check we have an expected level of replication
# TODO: make this use an env var, or relate to testnet size

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
fi
node_count=$(find "${{ matrix.wan_logs_path }}" -type d | awk -F/ 'NF==9' | grep -E "/12D3KooW" | wc -l)
echo "Node dir count is $node_count"
# TODO: reenable this once the testnet dir creation is tidied up to avoid a large count here

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
timeout-minutes: 1
# get the counts, then the specific line, and then the digit count only
# then check we have an expected level of restarts
# TODO: make this use an env var, or relate to testnet size

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
@RolandSherwin RolandSherwin marked this pull request as ready for review February 2, 2024 14:01
@RolandSherwin RolandSherwin changed the title WIP: WAN nightly feat(ci): WAN nightly Feb 2, 2024
@RolandSherwin RolandSherwin added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit b9aaadf Feb 2, 2024
37 of 38 checks passed
@RolandSherwin RolandSherwin deleted the wan_nightly branch February 2, 2024 17:23
@RolandSherwin RolandSherwin restored the wan_nightly branch April 1, 2024 08:30
@RolandSherwin RolandSherwin deleted the wan_nightly branch April 1, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Large Large sized PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants