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

Use expected errors instead of boolean values #7175

Open
5 of 18 tasks
bznein opened this issue Aug 15, 2024 · 16 comments
Open
5 of 18 tasks

Use expected errors instead of boolean values #7175

bznein opened this issue Aug 15, 2024 · 16 comments
Labels
help wanted Issues for which we would appreciate help/support from the community nice-to-have testing Testing package and unit/integration tests type: productivity Increase dev productivity and throughput by improving developer tooling, infrastructure, automation

Comments

@bznein
Copy link
Contributor

bznein commented Aug 15, 2024

Summary of Bug

This is an umbrella issue to enumerate all the test files that use tc.expPass rather than expecting a specific error, extracted with the following command (might not cover ALL of them):

internal/validate/validate_test.go
modules/apps/27-interchain-accounts/controller/keeper/keeper_test.go
modules/apps/27-interchain-accounts/controller/ibc_middleware_test.go
modules/apps/27-interchain-accounts/genesis/types/genesis_test.go
modules/apps/27-interchain-accounts/host/keeper/genesis_test.go
modules/apps/27-interchain-accounts/host/keeper/msg_server_test.go
modules/apps/27-interchain-accounts/host/keeper/handshake_test.go
modules/apps/27-interchain-accounts/host/keeper/keeper_test.go
modules/apps/27-interchain-accounts/host/types/codec_test.go
modules/apps/27-interchain-accounts/host/types/msgs_test.go
modules/apps/27-interchain-accounts/host/ibc_module_test.go
modules/apps/27-interchain-accounts/types/account_test.go
modules/apps/27-interchain-accounts/types/codec_test.go
modules/apps/27-interchain-accounts/types/metadata_test.go
modules/apps/27-interchain-accounts/types/packet_test.go
modules/apps/27-interchain-accounts/types/port_test.go
modules/apps/29-fee/keeper/grpc_query_test.go
modules/apps/29-fee/keeper/msg_server_test.go
modules/apps/29-fee/keeper/relay_test.go
modules/apps/29-fee/types/codec_test.go
modules/apps/29-fee/types/fee_test.go
modules/apps/29-fee/types/genesis_test.go
modules/apps/29-fee/types/keys_test.go
modules/apps/29-fee/types/msgs_test.go
modules/apps/29-fee/ibc_middleware_test.go
modules/apps/transfer/keeper/grpc_query_test.go
modules/apps/transfer/keeper/invariants_test.go
modules/apps/transfer/keeper/keeper_test.go
modules/apps/transfer/keeper/msg_server_test.go
modules/apps/transfer/types/codec_test.go
modules/apps/transfer/types/genesis_test.go
modules/apps/transfer/types/msgs_test.go
modules/apps/transfer/types/transfer_authorization_test.go
modules/apps/transfer/types/packet_test.go
modules/capability/types/genesis_test.go
modules/core/02-client/keeper/client_test.go
modules/core/02-client/keeper/grpc_query_test.go
modules/core/02-client/keeper/keeper_test.go
modules/core/02-client/types/client_test.go
modules/core/02-client/types/codec_test.go
modules/core/02-client/types/genesis_test.go
modules/core/02-client/types/keys_test.go
modules/core/02-client/types/msgs_test.go
modules/core/02-client/types/params_test.go
modules/core/02-client/types/router_test.go
modules/core/03-connection/keeper/grpc_query_test.go
modules/core/03-connection/keeper/keeper_test.go
modules/core/03-connection/keeper/handshake_test.go
modules/core/03-connection/keeper/verify_test.go
modules/core/03-connection/types/codec_test.go
modules/core/03-connection/types/genesis_test.go
modules/core/03-connection/types/keys_test.go
modules/core/03-connection/types/params_test.go
modules/core/03-connection/types/version_test.go
modules/core/03-connection/types/connection_test.go
modules/core/03-connection/types/msgs_test.go
modules/core/04-channel/keeper/grpc_query_test.go
modules/core/04-channel/keeper/keeper_test.go
modules/core/04-channel/keeper/upgrade_test.go
modules/core/04-channel/keeper/handshake_test.go
modules/core/04-channel/keeper/packet_test.go
modules/core/04-channel/keeper/timeout_test.go
modules/core/04-channel/types/channel_test.go
modules/core/04-channel/types/codec_test.go
modules/core/04-channel/types/genesis_test.go
modules/core/04-channel/types/keys_test.go
modules/core/04-channel/types/packet_test.go <---- This is mentioned in #7147 and should be done after eureka is merged
modules/core/04-channel/types/timeout_test.go
modules/core/04-channel/types/upgrade_test.go
modules/core/23-commitment/types/codec_test.go
modules/core/23-commitment/types/utils_test.go
modules/core/24-host/validate_test.go
modules/core/24-host/parse_test.go
modules/core/keeper/keeper_test.go
modules/core/keeper/msg_server_test.go
modules/core/genesis_test.go
modules/light-clients/06-solomachine/client_state_test.go
modules/light-clients/06-solomachine/codec_test.go
modules/light-clients/06-solomachine/consensus_state_test.go
modules/light-clients/06-solomachine/header_test.go
modules/light-clients/06-solomachine/misbehaviour_test.go
modules/light-clients/06-solomachine/proof_test.go
modules/light-clients/07-tendermint/codec_test.go
modules/light-clients/07-tendermint/header_test.go
modules/light-clients/07-tendermint/misbehaviour_handle_test.go
modules/light-clients/07-tendermint/misbehaviour_test.go
modules/light-clients/07-tendermint/proposal_handle_test.go
modules/light-clients/07-tendermint/store_test.go
modules/light-clients/07-tendermint/update_test.go
modules/light-clients/08-wasm/keeper/grpc_query_test.go
modules/light-clients/08-wasm/keeper/keeper_test.go
modules/light-clients/08-wasm/types/client_message_test.go
modules/light-clients/08-wasm/types/codec_test.go
modules/light-clients/08-wasm/types/genesis_test.go
modules/light-clients/08-wasm/types/client_state_test.go
modules/light-clients/08-wasm/types/msgs_test.go
modules/light-clients/09-localhost/light_client_module_test.go

To make the work easier, we can split them into the following groups and create separate issues for them


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@crodriguezvega crodriguezvega added type: productivity Increase dev productivity and throughput by improving developer tooling, infrastructure, automation testing Testing package and unit/integration tests labels Aug 15, 2024
@DimitrisJim
Copy link
Contributor

would be nice if we could make this into a bullet list and slap the help wanted label. contributors can ask for specific subsections of it.

@bznein
Copy link
Contributor Author

bznein commented Aug 21, 2024

would be nice if we could make this into a bullet list and slap the help wanted label. contributors can ask for specific subsections of it.

great idea, done!

@bznein bznein added the help wanted Issues for which we would appreciate help/support from the community label Aug 21, 2024
@NagaTulasi
Copy link
Contributor

Hi @bznein, Can I work on modules/core/23-commitment/ tests?

@DimitrisJim
Copy link
Contributor

definitely can @NagaTulasi!

@PrathyushaLakkireddy
Copy link
Contributor

PrathyushaLakkireddy commented Dec 10, 2024

Hi @DimitrisJim , Can I work on modules/core/24-host/ tests?

@NagaTulasi
Copy link
Contributor

Hi @DimitrisJim, Can I work on modules/core/keeper tests?

@biemoh
Copy link
Contributor

biemoh commented Dec 10, 2024

can I work on connection?

@DimitrisJim
Copy link
Contributor

Please do, thanks y'all! Unsure how quick reviews will come, though 😃

@PrathyushaLakkireddy
Copy link
Contributor

Hi @DimitrisJim , I would like to work on this modules/light-clients/06-solomachine/ tests.

@DimitrisJim
Copy link
Contributor

sure!

@NagaTulasi
Copy link
Contributor

Hi @DimitrisJim, I'd like to work on modules/core/02-client/ tests.

@likesToEatFish
Copy link
Contributor

Let me do modules/core/03-connection/

@DimitrisJim
Copy link
Contributor

Feel free to work on things as long as no one else has requested them! Thanks

@PrathyushaLakkireddy
Copy link
Contributor

PrathyushaLakkireddy commented Dec 11, 2024

Hi @DimitrisJim, I would like to work on internal/validate tests.

@iIvaki
Copy link
Contributor

iIvaki commented Dec 13, 2024

hi Is there anything left?

@gjermundgaraba
Copy link
Contributor

@iIvaki and @PrathyushaLakkireddy, as mentioned above, feel free to work on things as long as no one else has requested or opened a PR for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues for which we would appreciate help/support from the community nice-to-have testing Testing package and unit/integration tests type: productivity Increase dev productivity and throughput by improving developer tooling, infrastructure, automation
Projects
None yet
Development

No branches or pull requests

9 participants