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

[network-tests] Update UAT config #1731

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Conversation

BedrockSquirrel
Copy link
Collaborator

Why this change is needed

Update networktest environment Testnet -> UAT Testnet config.

Have verified this config with availability_test and smoke_test.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link

coderabbitai bot commented Jan 2, 2024

Walkthrough

The recent update in the codebase reflects a shift in naming convention and endpoint URLs for the testnet environment. Specifically, the testnet is now referred to as the UAT (User Acceptance Testing) Testnet, indicating a more focused stage of testing. Correspondingly, the URLs for accessing the testnet's faucet and Ethereum 2 network have been updated to match this new naming scheme, ensuring consistency across the testing infrastructure.

Changes

File Change Summary
.../networktest/env/network_setup.go Renamed function from Testnet to UATTestnet and updated URLs for the UAT testnet environment.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.
    • @coderabbitai read the files in the src/scheduler package and generate README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@BedrockSquirrel BedrockSquirrel changed the title Update UAT settings in networktest environments [network-tests] Update UAT config Jan 2, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 010815f and cb2a203.
Files selected for processing (1)
  • integration/networktest/env/network_setup.go (1 hunks)
Additional comments: 2
integration/networktest/env/network_setup.go (2)
  • 18-26: Ensure that all references to the old Testnet function have been updated to UATTestnet across the codebase.
Verification successful

To verify if the occurrences of Testnet() in availability_test.go and runner.go are references to the old Testnet function or if they are separate functions, we can use ast-grep to check the context of these functions within their respective classes.


To better understand the context of Testnet() usage in availability_test.go and runner.go, we will use rg to get the surrounding code for these occurrences.


The review of the new context reveals the following:

  • In availability_test.go, the function DevTestnet() is being used, not Testnet().
  • In runner.go, the reference to DevTestnet() is in a commented-out example usage, which is not an executable part of the code.

Therefore, there are no remaining references to a Testnet() function that would need to be updated to UATTestnet(). The initial concern about updating all references to the old Testnet function across the codebase has been addressed.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Search to find files that import network_setup module. Expecting list of dependent files.
rg -C3 --type go $'import .+network_setup'
# Search old function name to find omissions. Expecting no results.
rg --type go $'Testnet\('
# Search new function name to validate usage. Expecting list of locations where the new function name is used.
rg --type go $'UATTestnet\('

Length of output: 632



Script:

#!/bin/bash
# Check the context of `Testnet()` function in `availability_test.go`
ast-grep --lang go --pattern $'func $_() $_ {
  $$$
  Testnet($_)
  $$$
}' integration/networktest/tests/helpful/availability_test.go

# Check the context of `Testnet()` function in `runner.go`
ast-grep --lang go --pattern $'func $_() $_ {
  $$$
  Testnet($_)
  $$$
}' integration/networktest/runner.go

Length of output: 244



Script:

#!/bin/bash
# Get surrounding code for `Testnet()` occurrence in `availability_test.go`
rg --context 5 --type go 'Testnet\(' integration/networktest/tests/helpful/availability_test.go

# Get surrounding code for `Testnet()` occurrence in `runner.go`
rg --context 5 --type go 'Testnet\(' integration/networktest/runner.go

Length of output: 1106

* 22-23: Confirm that the new URLs for the UAT testnet faucet and WebSocket connection are reachable and correctly configured.

@BedrockSquirrel BedrockSquirrel merged commit a0cec15 into main Jan 2, 2024
2 checks passed
@BedrockSquirrel BedrockSquirrel deleted the matt/uat-networktests-env branch January 2, 2024 11:56
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