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

Implement backoff limit for jobs #1468

Merged
merged 7 commits into from
Jun 10, 2021
Merged

Implement backoff limit for jobs #1468

merged 7 commits into from
Jun 10, 2021

Conversation

chasekiefer
Copy link
Contributor

Resolves #1424

Short description of the changes

  • Add optional BackoffLimit to JaegerEsIndexCleanerSpec
  • Add optional BackoffLimit to JaegerEsIndexCleanerSpec
  • Add optional BackoffLimit to JaegerEsRolloverSpec
  • Update es_index_cleaner.go CreateEsIndexCleaner function with BackoffLimit
  • Update es_rollover rollover function with BackoffLimit
  • Update spark_dependencies.go CreateSparkDependencies function with BackoffLimit
  • TestEsIndexCleanerBackoffLimit
  • TestEsRolloverBackoffLimit
  • Add TestSparkDependenciesBackoffLimit

@jpkrohling jpkrohling changed the title 1424 backoff limit Implement backoff limit for jobs Jun 9, 2021
Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Looks good, but you might need to run make generate, the build is failing with:

Formatting code...
pkg/cronjob/es_rollover.go
pkg/cronjob/spark_dependencies.go
Build failed: a model has been changed but the generated resources aren't up to date. Run 'make generate' and update your PR.

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Looks good, just need to figure out the CI failure

@jpkrohling jpkrohling enabled auto-merge (squash) June 10, 2021 09:08
@codecov
Copy link

codecov bot commented Jun 10, 2021

Codecov Report

Merging #1468 (7368967) into master (86a9284) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1468   +/-   ##
=======================================
  Coverage   87.15%   87.16%           
=======================================
  Files          90       90           
  Lines        4983     4986    +3     
=======================================
+ Hits         4343     4346    +3     
  Misses        484      484           
  Partials      156      156           
Impacted Files Coverage Δ
pkg/apis/jaegertracing/v1/jaeger_types.go 100.00% <ø> (ø)
pkg/cronjob/es_index_cleaner.go 100.00% <100.00%> (ø)
pkg/cronjob/es_rollover.go 95.68% <100.00%> (+0.03%) ⬆️
pkg/cronjob/spark_dependencies.go 93.20% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86a9284...7368967. Read the comment docs.

@chasekiefer
Copy link
Contributor Author

Looks good, just need to figure out the CI failure

It looks like it timed out on 02-check-ingress.yaml. Is there anything I can do to help resolve this? Maybe it was just a one-off issue with the e2e test.

@jpkrohling
Copy link
Contributor

I'm re-running the jobs, but if this fails again, we'll go forward with the 1.23 release and sort this out later.

@jpkrohling jpkrohling merged commit 0f53f6c into jaegertracing:master Jun 10, 2021
@chasekiefer chasekiefer deleted the 1424-backoff-limit branch June 10, 2021 19:08
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.

Our k8s provider mandates the use of backoffLimit <=3.
2 participants