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

RPC constants integration test "successfully fetches all constants for *net using ${rpc}" hard codes return values #2163

Closed
arvidj opened this issue Nov 29, 2022 · 2 comments · Fixed by #2164
Assignees
Labels
bug Something isn't working waiting_for_info Waiting on further information
Milestone

Comments

@arvidj
Copy link
Contributor

arvidj commented Nov 29, 2022

Description

The RPC constants integration test "successfully fetches all constants for {kathmandu,monday}net using ${rpc}" hard codes the return values for the RPC call to those returned in the given test network. This makes it hard to run this test against local sandboxed networks where the constants might vary.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Start a local sandboxed octez node with RPC endpoint http://localhost:8732 running protocol alpha
  2. Run the integration tests, e.g. TEZOS_RPC_MONDAYNET=http://localhost:8732 RUN_MONDAYNET_WITH_SECRET_KEY=true npm run -w integration-tests test -- --reporters=default --reporters=jest-junit rpc-get-protocol-constants.spec.ts
  3. It will fail.

Expected behavior

For example, the test might just check the schema of the constants when the test network is not the real mondaynet / kathmandunet.

Additional context

This is an issue in TeCI.

@arvidj arvidj added the bug Something isn't working label Nov 29, 2022
roxaneletourneau added a commit to arvidj/taquito that referenced this issue Dec 7, 2022
@Innkst Innkst added the waiting_for_info Waiting on further information label Dec 9, 2022
@Innkst Innkst added this to the v15.1 milestone Dec 9, 2022
@Innkst Innkst modified the milestones: v15.1, v16 Jan 11, 2023
@Innkst Innkst modified the milestones: v16, v16.1 Mar 29, 2023
@Innkst Innkst modified the milestones: v16.1, v16.2, v17.1 Apr 11, 2023
@Innkst Innkst modified the milestones: v17.1, v17.2 Jun 23, 2023
@Innkst Innkst modified the milestones: v17.2, v17.3 Jul 13, 2023
@Innkst Innkst modified the milestones: v17.3, v18.1 Aug 1, 2023
@Innkst Innkst modified the milestones: v18.1, v17.5 Nov 15, 2023
@hui-an-yang hui-an-yang self-assigned this Nov 16, 2023
@hui-an-yang
Copy link
Collaborator

Hello @arvidj

Thanks for reaching out to us. I have looked into this and discussed it with the team and we still find it relevant in testing the current testnet(nairobinet) and mondaynet in their constant values. I also found that with your recent contribution of pr#2164, you can pass environment variables to make sandbox tests and skip testnet-specific tests. Below is an example. We'll appreciate if you could let us know if this has resolved the issue you created. Thank you:)

TEZOS_NETWORK_TYPE=sandbox TEZOS_RPC_MONDAYNET=http://localhost:8732 RUN_MONDAYNET_WITH_SECRET_KEY=true npm run -w integration-tests test -- --reporters=default --reporters=jest-junit rpc-get-protocol-constants.spec.ts

TEZOS_NETWORK_TYPE=sandbox TEZOS_RPC_NAIROBINET=http://localhost:8732 RUN_NAIROBINET_WITH_SECRET_KEY=true npm run -w integration-tests test -- --reporters=default --reporters=jest-junit rpc-get-protocol-constants.spec.ts

@arvidj
Copy link
Contributor Author

arvidj commented Nov 23, 2023

Hi @hui-an-yang , thanks for reaching out to me. Indeed, it seems like this issue is now solved. Closing!

@arvidj arvidj closed this as completed Nov 23, 2023
@ac10n ac10n moved this to Done in Taquito Dev Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting_for_info Waiting on further information
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants