Skip to content

Re-trigger the reindexing if indices fail to complete the workflow #8860

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

Draft
wants to merge 37 commits into
base: dave/async_reindex
Choose a base branch
from

Conversation

daveaugustus
Copy link
Contributor

πŸ”© Description: What code changed, and why?

⛓️ Related Resources

πŸ‘ Definition of Done

πŸ‘Ÿ 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

daveaugustus added 7 commits April 10, 2025 00:12
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
@daveaugustus daveaugustus marked this pull request as draft April 15, 2025 09:03
Copy link

netlify bot commented Apr 15, 2025

βœ… Deploy Preview for chef-automate ready!

Name Link
πŸ”¨ Latest commit 56535d8
πŸ” Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/67fe20ef46df9d00084c520b
😎 Deploy Preview https://deploy-preview-8860--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.

@daveaugustus daveaugustus changed the base branch from main to dave/async_reindex April 15, 2025 09:04
Aishwarya2001A and others added 18 commits April 17, 2025 12:05
* comment

Signed-off-by: daveaugustus <[email protected]>

* Build automate_backend_ctl to use packages from LTS. Upgrade ruby version to ruby3_4 (#8851)

Signed-off-by: Rensy Thomas <[email protected]>

* Bump version to 4.13.145 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Bump version to 4.13.146 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Add note for max_connections parameter (#8852)

Signed-off-by: Rensy Thomas <[email protected]>

* Bump version to 4.13.147 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Bump version to 4.13.148 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Revert "Build automate_backend_ctl to use packages from LTS. Upgrade ruby ver…" (#8854)

This reverts commit 2e954e2.

* Bump version to 4.13.149 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Bump version to 4.13.150 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* snow doc update compatibility (#8857)

Signed-off-by: Vivek Shankar <[email protected]>

* Bump version to 4.13.151 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Bump version to 4.13.152 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* fix elasticsidecar connection leak issue (#8859)

* fix elasticsidecar connection leak issue

Signed-off-by: Vivek Shankar <[email protected]>

* add no semgrep

Signed-off-by: Vivek Shankar <[email protected]>

---------

Signed-off-by: Vivek Shankar <[email protected]>

* Bump version to 4.13.153 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* Bump version to 4.13.154 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* func runFromReindexFromSourceToTemp

Signed-off-by: Aishwarya2001A <[email protected]>

* rest of the funcs

Signed-off-by: Aishwarya2001A <[email protected]>

* comments

Signed-off-by: Aishwarya2001A <[email protected]>

* un-necessary changes

Signed-off-by: daveaugustus <[email protected]>

* wrong rebasing correction

Signed-off-by: daveaugustus <[email protected]>

---------

Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: Rensy Thomas <[email protected]>
Signed-off-by: Vivek Shankar <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Co-authored-by: daveaugustus <[email protected]>
Co-authored-by: rensycthomas <[email protected]>
Co-authored-by: Chef Expeditor <[email protected]>
Co-authored-by: punitmundra <[email protected]>
Co-authored-by: vivekshankar1 <[email protected]>
Signed-off-by: daveaugustus <[email protected]>
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
* fix elasticsidecar connection leak issue

Signed-off-by: Vivek Shankar <[email protected]>

* add no semgrep

Signed-off-by: Vivek Shankar <[email protected]>

---------

Signed-off-by: Vivek Shankar <[email protected]>
Obvious fix; these changes are the result of automation not creative thinking.
Obvious fix; these changes are the result of automation not creative thinking.
Signed-off-by: Aishwarya2001A <[email protected]>
@github-actions github-actions bot added the documentation Anything related to the Automate docs. label Apr 18, 2025
* added heartbeat and heartbeatThreshold

Signed-off-by: daveaugustus <[email protected]>

* todos

Signed-off-by: daveaugustus <[email protected]>

* async reindexing

Signed-off-by: daveaugustus <[email protected]>

* logic corrections

Signed-off-by: daveaugustus <[email protected]>

* corrections

Signed-off-by: Aishwarya2001A <[email protected]>

* TODO comments

Signed-off-by: Aishwarya2001A <[email protected]>

* code for TODO comment

Signed-off-by: Aishwarya2001A <[email protected]>

* cli changes

Signed-off-by: Aishwarya2001A <[email protected]>

* syntax corrections

Signed-off-by: daveaugustus <[email protected]>

---------

Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Co-authored-by: daveaugustus <[email protected]>
Co-authored-by: Aishwarya2001A <[email protected]>
@daveaugustus daveaugustus requested a review from Dmaddu April 21, 2025 18:59
Aishwarya2001A and others added 10 commits April 22, 2025 12:13
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
* some edge case tracked

Signed-off-by: daveaugustus <[email protected]>

* added check for failed cases in the failed indices running for reindexing

Signed-off-by: daveaugustus <[email protected]>

* removed failed-true in delete cases

Signed-off-by: daveaugustus <[email protected]>

* adding stages

Signed-off-by: Aishwarya2001A <[email protected]>

* create aliases status complete code

Signed-off-by: Aishwarya2001A <[email protected]>

* db check for completion of all the stages

Signed-off-by: daveaugustus <[email protected]>

---------

Signed-off-by: daveaugustus <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Co-authored-by: daveaugustus <[email protected]>
Co-authored-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Signed-off-by: Aishwarya2001A <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything related to the Automate docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants