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

Finish setup on error #5419

Merged
merged 3 commits into from
May 31, 2023
Merged

Finish setup on error #5419

merged 3 commits into from
May 31, 2023

Conversation

style95
Copy link
Member

@style95 style95 commented May 30, 2023

Description

This is to fast fail on any error.

Related issue and scope

My changes affect the following components

  • API
  • Controller
  • Message Bus (e.g., Kafka)
  • Loadbalancer
  • Scheduler
  • Invoker
  • Intrinsic actions (e.g., sequences, conductors)
  • Data stores (e.g., CouchDB)
  • Tests
  • Deployment
  • CLI
  • General tooling
  • Documentation

Types of changes

  • Bug fix (generally a non-breaking change which closes an issue).
  • Enhancement or new feature (adds new functionality).
  • Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

  • I signed an Apache CLA.
  • I reviewed the style guides and followed the recommendations (Travis CI will check :).
  • I added tests to cover my changes.
  • My changes require further changes to the documentation.
  • I updated the documentation where necessary.

@@ -221,8 +221,7 @@ class Scheduler(schedulerId: SchedulerInstanceId, schedulerEndpoints: SchedulerE
}

val topic = s"${Scheduler.topicPrefix}scheduler${schedulerId.asString}"
val schedulerConsumer =
msgProvider.getConsumer(config, topic, topic, maxPeek, maxPollInterval = TimeLimit.MAX_DURATION + 1.minute)
val schedulerConsumer = msgProvider.getConsumer(config, topic, topic, maxPeek, maxPollInterval = TimeLimit.MAX_DURATION + 1.minute)
Copy link
Member Author

Choose a reason for hiding this comment

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

It is wrongly formatted for testing.

@style95
Copy link
Member Author

style95 commented May 30, 2023

It's strange that CI does not start.
It was because of a syntax error.
image

@@ -20,6 +20,8 @@
#then echo skipping setup ; exit 0
#fi

set -e
Copy link
Member Author

Choose a reason for hiding this comment

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

It is required to finish on an error.
Now it works as expected.
image

I will revert the temporary commit.

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2023

Codecov Report

Merging #5419 (edd3885) into master (6c47e60) will decrease coverage by 0.17%.
The diff coverage is n/a.

❗ Current head edd3885 differs from pull request most recent head 740e265. Consider uploading reports for the commit 740e265 to get more accurate results

@@            Coverage Diff             @@
##           master    #5419      +/-   ##
==========================================
- Coverage   76.63%   76.47%   -0.17%     
==========================================
  Files         241      241              
  Lines       14630    14630              
  Branches      616      616              
==========================================
- Hits        11212    11188      -24     
- Misses       3418     3442      +24     

see 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@style95 style95 merged commit 88156c3 into apache:master May 31, 2023
mtt-merz pushed a commit to mtt-merz/openwhisk that referenced this pull request Oct 22, 2023
* Fast-fail on errors

* Fix an indentation error

* Fail the setup script on an error

(cherry picked from commit 88156c3)
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.

3 participants