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

Update the run hook to skip the pg-helper for non bootstrap node #8275

Merged
merged 21 commits into from Nov 30, 2023

Conversation

punitmundra
Copy link
Collaborator

@punitmundra punitmundra commented Oct 23, 2023

🔩 Description: What code changed, and why?

⛓️ Related Resources

https://chefio.atlassian.net/browse/CHEF-4179
https://chefio.atlassian.net/browse/CHEF-7293
https://chefio.atlassian.net/browse/CHEF-7294

👍 Definition of Done

Demo Video : https://progresssoftware.sharepoint.com/:v:/s/ChefCoreC/Ed0KiczNVuFIjvW6GY_g8Q4BWMUcbIvTaifG8amioCRXkA?e=j8fHLh

👟 How to Build and Test the Change

✅ Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

  • Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
  • Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
  • Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
  • Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
  • Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

  • Tests added/updated? (all new code needs new tests)
  • Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.

📷 Screenshots, if applicable

@netlify
Copy link

netlify bot commented Oct 23, 2023

Deploy Preview for chef-automate ready!

Name Link
🔨 Latest commit db13942
🔍 Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/656829690edb320008b5a909
😎 Deploy Preview https://deploy-preview-8275--chef-automate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@punitmundra punitmundra changed the title update the run hook to skip the pg-helper for non bootstrap node [DRAFT]update the run hook to skip the pg-helper for non bootstrap node Oct 23, 2023
lib/db/migrator/migrator.go Outdated Show resolved Hide resolved
@punitmundra punitmundra changed the title [DRAFT]update the run hook to skip the pg-helper for non bootstrap node Update the run hook to skip the pg-helper for non bootstrap node Nov 2, 2023

SonarQube Quality Gate

Quality Gate failed

Failed condition 19.4% 19.4% Coverage on New Code (is less than 80%)
Failed condition 9.1% 9.13% Duplicated Lines (%) on New Code (is greater than 3%)

See analysis details on SonarQube

@punitmundra
Copy link
Collaborator Author

@jashaik @marcparadise : could you please review and approve this PR

@jashaik
Copy link
Contributor

jashaik commented Nov 30, 2023

LGTM.

Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
punitmundra and others added 11 commits November 30, 2023 11:47
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: punitmundra <pmundra@progress.com>
@punitmundra punitmundra merged commit 09d0c49 into main Nov 30, 2023
4 of 7 checks passed
@punitmundra punitmundra deleted the CHEF-4179 branch November 30, 2023 06:39
anees-progress pushed a commit that referenced this pull request Nov 30, 2023
* resolve conflict during rebase

Signed-off-by: punitmundra <pmundra@progress.com>

* add the skip migration code in the lib/db

Signed-off-by: punitmundra <pmundra@progress.com>

* add the todo for upgrade and add-node command for now

Signed-off-by: punitmundra <pmundra@progress.com>

* add the check for the addnode in deployment script

Signed-off-by: punitmundra <pmundra@progress.com>

* update the frontend bundle in the args

Signed-off-by: punitmundra <pmundra@progress.com>

* add changes for upgrade

Signed-off-by: punitmundra <pmundra@progress.com>

* fix reported by semgrep

Signed-off-by: punitmundra <pmundra@progress.com>

* add condition in add-node

Signed-off-by: punitmundra <pmundra@progress.com>

* review comments

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* add the new func for the FE to get the output

Signed-off-by: punitmundra <pmundra@progress.com>

* merge conflicts 01

Signed-off-by: punitmundra <pmundra@progress.com>

* just to make build success

Signed-off-by: punitmundra <pmundra@progress.com>

* unpin the deps in plan.sh

Signed-off-by: punitmundra <pmundra@progress.com>

* update the template to avoid  the conflit for variable

Signed-off-by: punitmundra <pmundra@progress.com>

* code fix for shell scritp

Signed-off-by: punitmundra <pmundra@progress.com>

* removed print statements

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* resolving status summary panic error

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* add 1 test case and go.mod

Signed-off-by: punitmundra <pmundra@progress.com>

* remove the echo from the run hook

Signed-off-by: punitmundra <pmundra@progress.com>

---------

Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Co-authored-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
anees-progress pushed a commit that referenced this pull request Nov 30, 2023
* resolve conflict during rebase

Signed-off-by: punitmundra <pmundra@progress.com>

* add the skip migration code in the lib/db

Signed-off-by: punitmundra <pmundra@progress.com>

* add the todo for upgrade and add-node command for now

Signed-off-by: punitmundra <pmundra@progress.com>

* add the check for the addnode in deployment script

Signed-off-by: punitmundra <pmundra@progress.com>

* update the frontend bundle in the args

Signed-off-by: punitmundra <pmundra@progress.com>

* add changes for upgrade

Signed-off-by: punitmundra <pmundra@progress.com>

* fix reported by semgrep

Signed-off-by: punitmundra <pmundra@progress.com>

* add condition in add-node

Signed-off-by: punitmundra <pmundra@progress.com>

* review comments

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* add the new func for the FE to get the output

Signed-off-by: punitmundra <pmundra@progress.com>

* merge conflicts 01

Signed-off-by: punitmundra <pmundra@progress.com>

* just to make build success

Signed-off-by: punitmundra <pmundra@progress.com>

* unpin the deps in plan.sh

Signed-off-by: punitmundra <pmundra@progress.com>

* update the template to avoid  the conflit for variable

Signed-off-by: punitmundra <pmundra@progress.com>

* code fix for shell scritp

Signed-off-by: punitmundra <pmundra@progress.com>

* removed print statements

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* resolving status summary panic error

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* add 1 test case and go.mod

Signed-off-by: punitmundra <pmundra@progress.com>

* remove the echo from the run hook

Signed-off-by: punitmundra <pmundra@progress.com>

---------

Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Co-authored-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
swatiganesh pushed a commit that referenced this pull request Apr 16, 2024
* resolve conflict during rebase

Signed-off-by: punitmundra <pmundra@progress.com>

* add the skip migration code in the lib/db

Signed-off-by: punitmundra <pmundra@progress.com>

* add the todo for upgrade and add-node command for now

Signed-off-by: punitmundra <pmundra@progress.com>

* add the check for the addnode in deployment script

Signed-off-by: punitmundra <pmundra@progress.com>

* update the frontend bundle in the args

Signed-off-by: punitmundra <pmundra@progress.com>

* add changes for upgrade

Signed-off-by: punitmundra <pmundra@progress.com>

* fix reported by semgrep

Signed-off-by: punitmundra <pmundra@progress.com>

* add condition in add-node

Signed-off-by: punitmundra <pmundra@progress.com>

* review comments

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* remove double quotes from the bundle name

Signed-off-by: punitmundra <pmundra@progress.com>

* add the new func for the FE to get the output

Signed-off-by: punitmundra <pmundra@progress.com>

* merge conflicts 01

Signed-off-by: punitmundra <pmundra@progress.com>

* just to make build success

Signed-off-by: punitmundra <pmundra@progress.com>

* unpin the deps in plan.sh

Signed-off-by: punitmundra <pmundra@progress.com>

* update the template to avoid  the conflit for variable

Signed-off-by: punitmundra <pmundra@progress.com>

* code fix for shell scritp

Signed-off-by: punitmundra <pmundra@progress.com>

* removed print statements

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* resolving status summary panic error

Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>

* add 1 test case and go.mod

Signed-off-by: punitmundra <pmundra@progress.com>

* remove the echo from the run hook

Signed-off-by: punitmundra <pmundra@progress.com>

---------

Signed-off-by: punitmundra <pmundra@progress.com>
Signed-off-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Co-authored-by: Tejaswi Bondila <bondila.venkatatejaswi@progress.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants