You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/21 10:58:50 UTC

[GitHub] [superset] sourcecode-glitch opened a new pull request #16758: fix(helm): Exit init script immediately on error

sourcecode-glitch opened a new pull request #16758:
URL: https://github.com/apache/superset/pull/16758


   ### SUMMARY
   This adds `set -eu` to the init script. With this the script will exit immediately when it encounters an error or an unset variable.
   
   ### TESTING INSTRUCTIONS
   In order to test that this works you will need a k8s environment. One way to test this is to manually add an error into the init script by including an invalid command (just make sure that the last command in the script is still a working command). Then start a helm deployment. Without this PR the init job will be marked as success despite the error. With this PR applied the init job will be marked as failed.
   
   ### ADDITIONAL INFORMATION
   - [x] Has associated issue: Fixes #16757
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   ### ADDITIONAL THOUGHTS
   I personally think failing when an error occurs should be the default behavior. However, I could see that some people might prefer it if the script does not fail and instead tries the remaining init steps. If this is wanted I could add a flag to the init config in `values.yaml` so that users can easily select the behavior they want. Let me know if this is wanted or if this PR is ok as it is. I personally don't really think it's worth including a switch, because with the current behavior you would need to read the whole init job logs in order to know if there were any problems.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sourcecode-glitch commented on pull request #16758: fix(helm): Exit init script immediately on error

Posted by GitBox <gi...@apache.org>.
sourcecode-glitch commented on pull request #16758:
URL: https://github.com/apache/superset/pull/16758#issuecomment-927277674


   Bumped version to 0.3.9 and rebased onto current master (CI didn't seem to work on the older master commit that this was based on before)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] craig-rueda merged pull request #16758: fix(helm): Exit init script immediately on error

Posted by GitBox <gi...@apache.org>.
craig-rueda merged pull request #16758:
URL: https://github.com/apache/superset/pull/16758


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sourcecode-glitch edited a comment on pull request #16758: fix(helm): Exit init script immediately on error

Posted by GitBox <gi...@apache.org>.
sourcecode-glitch edited a comment on pull request #16758:
URL: https://github.com/apache/superset/pull/16758#issuecomment-927277674


   Bumped helm chart version to 0.3.9 and rebased onto current master (CI didn't seem to work on the older master commit that this was based on before)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org