-
Notifications
You must be signed in to change notification settings - Fork 108
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
Helm acceptance tests #2002
Helm acceptance tests #2002
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2002 +/- ##
============================================
+ Coverage 87.05% 87.45% +0.40%
- Complexity 1744 1817 +73
============================================
Files 315 320 +5
Lines 7731 8213 +482
Branches 740 814 +74
============================================
+ Hits 6730 7183 +453
- Misses 772 784 +12
- Partials 229 246 +17
Continue to review full report at Codecov.
|
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
- Change hedera-mirror-test Dockerfile default cucumberFlags from @BalanceCheck to @balancecheck Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Port Migration was failing when 0.33.0-rc1 was deployed to dev cluster. It seems like there was a historic testnet address book where the ports were not set even though the entries had valid IPs. Likely a deployment issue - Add a default value for port as -1 going forward - Update migration to set historic address_book_entry values with no port but valid IP to -1. This leaves the window to address this in a future migration. Note this matches the default value when no IP is set in the proto Signed-off-by: Nana-EC <nana.essilfie-conduah@hedera.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
OPS and customers would benefit from the ability to customize the consensusRatio used by the importer to validate signature files. - Add a `consensusRatio` field to the `CommonDownloaderProperties` - Move `signatureVerificationMetric` from `Downloader.java` to `NodeSignatureVerifier.java` - Add a `NOT_FOUND` status to the `signatureVerificationMetric ` metric to capture nodes whose signature files were missing from the downloaded list Signed-off-by: Nana-EC <nana.essilfie-conduah@hedera.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
* Bump postgresql-ha chart version * Bump redis chart version (lots of breaking changes) * Change `init_v1.sql` to match the chart database init with separate importer user and reduced permissions * Fix pgpool admin password not auto generating a random password * Fix `CreateContainerConfigError` due to missing Redis secret * Fix Importer configured to use Redis sentinel (Google Redis doesn't support sentinel) Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps `grpc.version` from 1.37.0 to 1.37.1. Updates `grpc-bom` from 1.37.0 to 1.37.1 - [Release notes](https://github.com/grpc/grpc-java/releases) - [Commits](grpc/grpc-java@v1.37.0...v1.37.1) Updates `grpc-netty-shaded` from 1.37.0 to 1.37.1 - [Release notes](https://github.com/grpc/grpc-java/releases) - [Commits](grpc/grpc-java@v1.37.0...v1.37.1) Updates `grpc-okhttp` from 1.37.0 to 1.37.1 - [Release notes](https://github.com/grpc/grpc-java/releases) - [Commits](grpc/grpc-java@v1.37.0...v1.37.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.16.0 to 3.17.0. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py) - [Commits](protocolbuffers/protobuf@v3.16.0...v3.17.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [frontend-maven-plugin](https://github.com/eirslett/frontend-maven-plugin) from 1.11.3 to 1.12.0. - [Release notes](https://github.com/eirslett/frontend-maven-plugin/releases) - [Changelog](https://github.com/eirslett/frontend-maven-plugin/blob/master/CHANGELOG.md) - [Commits](eirslett/frontend-maven-plugin@frontend-plugins-1.11.3...frontend-plugins-1.12.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [software.amazon.awssdk:bom](https://github.com/aws/aws-sdk-java-v2) from 2.16.59 to 2.16.63. - [Release notes](https://github.com/aws/aws-sdk-java-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-java-v2/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-java-v2@2.16.59...2.16.63) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps `embedded.testcontainers.version` from 2.0.7 to 2.0.8. Updates `embedded-postgresql` from 2.0.7 to 2.0.8 Updates `embedded-redis` from 2.0.7 to 2.0.8 Updates `embedded-google-pubsub` from 2.0.7 to 2.0.8 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [jackson-dataformat-msgpack](https://github.com/msgpack/msgpack-java) from 0.8.22 to 0.8.24. - [Release notes](https://github.com/msgpack/msgpack-java/releases) - [Changelog](https://github.com/msgpack/msgpack-java/blob/develop/RELEASE_NOTES.md) - [Commits](msgpack/msgpack-java@0.8.22...v0.8.24) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps `cucumber.version` from 6.10.3 to 6.10.4. Updates `cucumber-java` from 6.10.3 to 6.10.4 - [Release notes](https://github.com/cucumber/cucumber-jvm/releases) - [Changelog](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md) - [Commits](cucumber/cucumber-jvm@v6.10.3...v6.10.4) Updates `cucumber-junit` from 6.10.3 to 6.10.4 - [Release notes](https://github.com/cucumber/cucumber-jvm/releases) - [Changelog](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md) - [Commits](cucumber/cucumber-jvm@v6.10.3...v6.10.4) Updates `cucumber-junit-platform-engine` from 6.10.3 to 6.10.4 - [Release notes](https://github.com/cucumber/cucumber-jvm/releases) - [Changelog](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md) - [Commits](cucumber/cucumber-jvm@v6.10.3...v6.10.4) Updates `cucumber-spring` from 6.10.3 to 6.10.4 - [Release notes](https://github.com/cucumber/cucumber-jvm/releases) - [Changelog](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md) - [Commits](cucumber/cucumber-jvm@v6.10.3...v6.10.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [mathjs](https://github.com/josdejong/mathjs) from 9.3.2 to 9.4.0. - [Release notes](https://github.com/josdejong/mathjs/releases) - [Changelog](https://github.com/josdejong/mathjs/blob/develop/HISTORY.md) - [Commits](josdejong/mathjs@v9.3.2...v9.4.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Bumps [mathjs](https://github.com/josdejong/mathjs) from 9.3.2 to 9.4.0. - [Release notes](https://github.com/josdejong/mathjs/releases) - [Changelog](https://github.com/josdejong/mathjs/blob/develop/HISTORY.md) - [Commits](josdejong/mathjs@v9.3.2...v9.4.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
* Add a new alert to each service to check when pods are not ready * Add inhibit rules to each values.yaml to logically group alerts together * Add new alertmanagerconfig template to handle the new inhibit rules section * Update the mirror-node-common chart to read the new config Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
* Fix acceptance test config overwriting default config * Fix monitor config documentation not showing hedera.mirror.monitor prefix and confusing users * Fix test image sometimes failing to run due to not downloading all dependencies during build * Improve test image creation time and image size (1.5GB to 566MB) * Remove all JMeter related code Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com> Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
5242092
to
5126fef
Compare
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
6f843ed
to
05f9e27
Compare
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, some nits and suggestions
charts/hedera-mirror/values.yaml
Outdated
# Do not use use 0.0.2 or 0.0.50 for operator to ensure crypto transfers are not waived | ||
operatorId: | ||
operatorKey: | ||
restBaseUrl: "http://{{ .Release.Name }}-rest/api/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be rest.baseUrl
.
Are the rest checks working with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I just got lucky that the default was testnet. I tested with this corrected and it works, also tested with a bad endpoint and it failed so I know it's using it now.
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
spec: | ||
containers: | ||
- name: acceptance-tests | ||
image: "{{ .Values.test.image.repository }}:{{ .Values.test.image.tag | default .Chart.AppVersion }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also use the global.image.tag
. You'll need to add a global.image: {}
to the values.yaml.
image: "{{ .Values.test.image.repository }}:{{ .Values.test.image.tag | default .Chart.AppVersion }}" | |
image: "{{ .Values.test.image.repository }}:{{ .Values.global.image.tag | default .Values.test.image.tag | default .Chart.AppVersion }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, added that.
annotations: | ||
helm.sh/hook: test | ||
helm.sh/hook-delete-policy: hook-failed,hook-succeeded | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Detailed description:
Add the ability to run acceptance tests to the Helm chart.
Which issue(s) this PR fixes:
Fixes #1917
Special notes for your reviewer:
Checklist