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

[Hotfix] Always ignore command and args defined in Devfile container components #5639

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Apr 7, 2022

What type of PR is this:
/kind bug
/kind hotfix

What does this PR do / why we need it:
Before this fix, running odo dev would not succeed if the Devfile defines a container component with command or args.

Which issue(s) this PR fixes:
Fixes #5620

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

rm3l added 2 commits April 7, 2022 13:00
…ents

This is a hotfix for [1], until a proper fix is implemented, which would
consist in keeping using supervisord as pid1, and executing the command
with args "on the side" as a separate process.

[1] redhat-developer#5620
@openshift-ci
Copy link

openshift-ci bot commented Apr 7, 2022

@rm3l: The label(s) kind/hotfix cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this:
/kind bug
/kind hotfix

What does this PR do / why we need it:
Before this fix, running odo dev would not succeed if the Devfile defines a container component with command or args.

Which issue(s) this PR fixes:
Fixes #5620

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 7, 2022
@netlify
Copy link

netlify bot commented Apr 7, 2022

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit 81d846f
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/624ed0fe24211e000880f8af

@rm3l rm3l requested review from kadel and feloy April 7, 2022 11:55
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@odo-robot
Copy link

odo-robot bot commented Apr 7, 2022

Unit Tests on commit finished successfully.
View logs: TXT HTML

@rm3l rm3l changed the title [Hotfix] Always ignore command and args fields in Devfile container components [Hotfix] Always ignore command and args defined in Devfile container components Apr 7, 2022
@odo-robot
Copy link

odo-robot bot commented Apr 7, 2022

OpenShift Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Apr 7, 2022

Kubernetes Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Apr 7, 2022

Validate Tests on commit finished successfully.
View logs: TXT HTML

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Apr 7, 2022
@kadel
Copy link
Member

kadel commented Apr 8, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Apr 8, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kadel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Apr 8, 2022
@openshift-merge-robot openshift-merge-robot merged commit 13bbc37 into redhat-developer:main Apr 8, 2022
@rm3l rm3l deleted the 5620-odo-is-failing-when-devfile-container-component-defines-command branch April 8, 2022 10:14
rm3l added a commit to rm3l/odo that referenced this pull request May 10, 2022
rm3l added a commit to rm3l/odo that referenced this pull request May 11, 2022
rm3l added a commit to rm3l/odo that referenced this pull request May 11, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 12, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 12, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 12, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 12, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 13, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 14, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 16, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 16, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 18, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 19, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 19, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 24, 2022
rm3l added a commit to rm3l/odo that referenced this pull request May 25, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 25, 2022
rm3l added a commit to rm3l/odo that referenced this pull request May 27, 2022
…e container components (redhat-developer#5639)"

This partially reverts commit 13bbc37.

The integration tests that had been written as part of 13bbc37 have been kept,
and will be reworked as part of this issue.
rm3l added a commit to rm3l/odo that referenced this pull request May 27, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
…ner components (redhat-developer#5639)

* Reproduce the issue via a test case with `odo dev`

* Always ignore `command` and `args` fields in Devfile container components

This is a hotfix for [1], until a proper fix is implemented, which would
consist in keeping using supervisord as pid1, and executing the command
with args "on the side" as a separate process.

[1] redhat-developer#5620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odo is failing when devfile container component defines command
4 participants