Skip to content

[Makefile] fixes the localnet_db_cli target#700

Merged
dylanlott merged 2 commits intomainfrom
fix/localnet-db-cli
Apr 24, 2023
Merged

[Makefile] fixes the localnet_db_cli target#700
dylanlott merged 2 commits intomainfrom
fix/localnet-db-cli

Conversation

@dylanlott
Copy link
Contributor

Description

#658 changed how Postgres instances are handled and assigned to Validators in the LocalNet, which broke the Make target specified for grabbing a shell to the LocalNet database. This PR fixes the command to target the Postgres instance for validator-001 by default, since validator-001 used for other tasks by default.

Type of change

Please mark the relevant option(s):

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Major breaking change
  • Documentation
  • Other

List of changes

  • Changes make localnet_db_cli to target the Postgres instance that validator001 uses.

Testing

  • make develop_test; if any code changes were made
  • Docker Compose LocalNet; if any major functionality was changed or introduced
  • k8s LocalNet; if any infrastructure or configuration changes were made

Required Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added, or updated, godoc format comments on touched members (see: tip.golang.org/doc/comment)
  • I have tested my changes using the available tooling
  • I have updated the corresponding CHANGELOG

If Applicable Checklist

  • I have updated the corresponding README(s); local and/or global
  • I have added tests that prove my fix is effective or that my feature works
  • I have added, or updated, mermaid.js diagrams in the corresponding README(s)
  • I have added, or updated, documentation and mermaid.js diagrams in shared/docs/* if I updated shared/*README(s)

@dylanlott dylanlott added bug Something isn't working - expected behaviour is incorrect persistence Persistence specific changes small labels Apr 24, 2023
@dylanlott dylanlott self-assigned this Apr 24, 2023
@dylanlott dylanlott added the cl validate Run the changelog validation workflow label Apr 24, 2023
Copy link
Contributor

@okdas okdas left a comment

Choose a reason for hiding this comment

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

@dylanlott dylanlott marked this pull request as ready for review April 24, 2023 23:14
@dylanlott dylanlott merged commit 35d2932 into main Apr 24, 2023
@dylanlott dylanlott deleted the fix/localnet-db-cli branch April 24, 2023 23:17
bryanchriswhite added a commit that referenced this pull request Apr 25, 2023
* pokt/main:
  [E2E] adds in-cluster config for E2E tests (#689)
  [Makefile] fixes the localnet_db_cli target (#700)
  Update devlog6.md
  [CLI] Remove logging for end user focused messages (#698)
  [Testing (DUP)] Add /internal/testutil pkg & refactor mockdns test code (#696)
  [Infra] Adapt pocket helm chart for DevNets (#682)
  Update changelog-verify.yml (#691)
Olshansk pushed a commit that referenced this pull request Apr 27, 2023
## Description

#658 changed how Postgres instances are handled and assigned to
Validators in the LocalNet, which broke the Make target specified for
grabbing a shell to the LocalNet database. This PR fixes the command to
target the Postgres instance for validator-001 by default, since
validator-001 used for other tasks by default.

## Type of change

Please mark the relevant option(s):

- [ ] New feature, functionality or library
- [x] Bug fix
- [ ] Code health or cleanup
- [ ] Major breaking change
- [ ] Documentation
- [ ] Other

## List of changes

- Changes `make localnet_db_cli` to target the Postgres instance that
`validator001` uses.

## Testing

- [x] `make test_e2e`
- [x] `make localnet_db_cli` produces a CLI shell to validator001's Postgres
- [x] `make develop_test`; if any code changes were made
- [ ] [Docker Compose
LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md);
if any major functionality was changed or introduced
- [x] [k8s
LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md);
if any infrastructure or configuration changes were made

## Required Checklist

- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added, or updated, [`godoc` format
comments](https://go.dev/blog/godoc) on touched members (see:
[tip.golang.org/doc/comment](https://tip.golang.org/doc/comment))
- [x] I have tested my changes using the available tooling
- [x] I have updated the corresponding CHANGELOG

### If Applicable Checklist

- [ ] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working - expected behaviour is incorrect cl validate Run the changelog validation workflow persistence Persistence specific changes

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants