Skip to content

ROX-12848: Set Postgres flag to permanently enabled#4690

Merged
connorgorman merged 9 commits intomasterfrom
cgorman-flag-always-on
Feb 10, 2023
Merged

ROX-12848: Set Postgres flag to permanently enabled#4690
connorgorman merged 9 commits intomasterfrom
cgorman-flag-always-on

Conversation

@connorgorman
Copy link
Copy Markdown
Contributor

@connorgorman connorgorman commented Feb 2, 2023

Description

Sets the Postgres flag to always be the default value of the setting

Tests that need to be ported:

  • Central/deployment/index/search_comparison_test.go
  • Central/splunk/violations_test
  • TestImageLoader - graphql/resolvers/loaders/images_test.go
  • TestImageIntegrationDataStore - central/imageintegration/datastore/datastore_impl.go
  • TestProcessBaselineService - central/processbaseline/service/service_impl_test.go
  • Role/datastore/datastore_test.go

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.

Testing Performed

CI

@connorgorman connorgorman added the postgres-breaking-change Should be used when the change breaks RocksDB compatibility label Feb 2, 2023
@ghost
Copy link
Copy Markdown

ghost commented Feb 2, 2023

Images are ready for the commit at 6cdef58.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.74.x-76-g6cdef5894a.

@connorgorman connorgorman requested a review from a team as a code owner February 3, 2023 02:59
@connorgorman connorgorman requested a review from a team as a code owner February 3, 2023 03:33
@connorgorman connorgorman requested a review from a team as a code owner February 3, 2023 18:42
@gavin-stackrox
Copy link
Copy Markdown
Contributor

/test openshift-newest-qa-e2e-tests openshift-penultimate-qa-e2e-tests openshift-oldest-qa-e2e-tests

@gavin-stackrox gavin-stackrox requested a review from a team February 3, 2023 19:11
@gavin-stackrox
Copy link
Copy Markdown
Contributor

/test openshift-newest-qa-e2e-tests openshift-penultimate-qa-e2e-tests openshift-oldest-qa-e2e-tests

from ci_tests import NonGroovyE2e
from post_tests import PostClusterTest, FinalPost

# Postgres is on by default
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you elaborate this comment why these tests are not executed with postgres enabled, instead exit early? I am lacking context to understand this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, this is because these tests expect Postgres to be off and these are covered by the go version of these tests

from post_tests import PostClusterTest, FinalPost

# Postgres is on by default
exit(0)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you elaborate this comment why these tests are not executed with postgres enabled, instead exit early? I am lacking context to understand this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added a better comment

;;
*)
die "database $DATABASE not supported"
export ROX_POSTGRES_DATASTORE="true"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can the case block be removed? It looks like export ROX_POSTGRES_DATASTORE="true" is always executed.

Comment on lines +46 to +48
# Enter central-db image to use (default: "docker.io/stackrox/central-db:2.21.0-15-g448f2dc8fa"):
# Enter central-db image to use (default: "stackrox.io/central-db:3.67.x-296-g56df6a892d"):
# Enter central-db image to use (default: "registry.redhat.io/advanced-cluster-security/rhacs-central-db-rhel8:3.68.x-30-g516b4e7a6c-dirty"):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these defaults hardcoded? Where are they coming from?
Especially the -dirty tags looks like a non-default to me because it is mostly build locally and never pushed to a registry.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is just a comment to illustrate the expect below cases

Copy link
Copy Markdown
Contributor

@janisz janisz left a comment

Choose a reason for hiding this comment

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

I think this should be splitted into smaller PRs.

  • Fix go code and prepare it for this change
  • fix shell and makefile
  • everything else

@connorgorman connorgorman force-pushed the cgorman-flag-always-on branch 2 times, most recently from e2ac78b to 17c7d36 Compare February 8, 2023 18:40
@connorgorman connorgorman force-pushed the cgorman-flag-always-on branch from 8377bd0 to fb7bc8c Compare February 10, 2023 01:44
@connorgorman connorgorman enabled auto-merge (squash) February 10, 2023 04:54
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Feb 10, 2023

@connorgorman: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/openshift-newest-qa-e2e-tests 8377bd0 link false /test openshift-newest-qa-e2e-tests
ci/prow/openshift-penultimate-qa-e2e-tests 8377bd0 link false /test openshift-penultimate-qa-e2e-tests
ci/prow/openshift-oldest-qa-e2e-tests 6cdef58 link false /test openshift-oldest-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@connorgorman connorgorman merged commit da708eb into master Feb 10, 2023
@connorgorman connorgorman deleted the cgorman-flag-always-on branch February 10, 2023 06:48
@porridge
Copy link
Copy Markdown
Contributor

The fact that all openshift-*qa-e2e-tests failed worries me. For example:

Requesting stop of task ':testBAT' as it has exceeded its configured timeout of 3h.

Are we sure these failures are not related to this change @connorgorman ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants