console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-34764: Ensure envs are initted upon first load

Open logonoff opened this issue 1 year ago • 8 comments
trafficstars

Fixes:

Maps with JIRA issue https://issues.redhat.com/browse/OCPBUGS-34764

Analysis / Root cause:

There is a data race between the environment variable editor component (which only takes the initial value) and the knative yaml parser. The env variable component loads first which sets the initial value as blank since the parser is still working. Then the parser is done, updates the prop, but is ignored because the env variable component is already loaded. This also fixes the issue... image

Solution Description:

Block the env selector from loading until the func.yaml is finished fetching and parsing

Screen shots / Gifs for design review:

n/a

Unit test coverage report:

unchanged

Test setup:

Install the Red Hat OpenShift Serverless and setup a Knative service

Then use @Lucifergene 's serverless example https://github.com/Lucifergene/oc-func

Browser conformance:

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari

logonoff avatar Jun 12 '24 19:06 logonoff

@logonoff: This pull request references Jira Issue OCPBUGS-34764, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.17.0) matches configured target version for branch (4.17.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @sanketpathak

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fixes:

Maps with JIRA issue https://issues.redhat.com/browse/OCPBUGS-34764

Analysis / Root cause:

While the env variables are being correctly parsed, this information is not being passed to the component rendering the env field

Solution Description:

Screen shots / Gifs for design review:

n/a

Unit test coverage report:

unchanged

Test setup:

Used @Lucifergene 's serverless example https://github.com/Lucifergene/oc-func

Browser conformance:

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Jun 12 '24 19:06 openshift-ci-robot

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

openshift-ci[bot] avatar Jun 12 '24 19:06 openshift-ci[bot]

@logonoff: This pull request references Jira Issue OCPBUGS-34764, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.17.0) matches configured target version for branch (4.17.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @sanketpathak

In response to this:

Fixes:

Maps with JIRA issue https://issues.redhat.com/browse/OCPBUGS-34764

Analysis / Root cause:

While the env variables are being correctly parsed, this information is not being passed to the component rendering the env field

Solution Description:

Screen shots / Gifs for design review:

n/a

Unit test coverage report:

unchanged

Test setup:

Install the Red Hat OpenShift Serverless and setup a Knative service

Then use @Lucifergene 's serverless example https://github.com/Lucifergene/oc-func

Browser conformance:

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Jun 13 '24 16:06 openshift-ci-robot

@logonoff Please add Unit & E2E tests once completed to prevent the issue resurface again later on :)

Lucifergene avatar Jun 14 '24 07:06 Lucifergene

/cc @Lucifergene

vikram-raj avatar Jun 19 '24 15:06 vikram-raj

@logonoff Please rebase this PR.

Lucifergene avatar Aug 02 '24 05:08 Lucifergene

Thanks for this bug fix! The Frontend tests are failing. You would need to fix the Frontend Unit Tests of all the forms that are using the schema you have updated. Once you fix those, you might also see the E2E tests failing for DevConsole. Need to fix those as well.

Lucifergene avatar Aug 05 '24 05:08 Lucifergene

/label tide/merge-method-squash

Lucifergene avatar Aug 21 '24 04:08 Lucifergene

/lgtm

Lucifergene avatar Aug 21 '24 12:08 Lucifergene

/cc @sanketpathak for any queries regarding the e2e tests as its affecting the main E2E.

Lucifergene avatar Aug 21 '24 12:08 Lucifergene

/retest

logonoff avatar Aug 26 '24 19:08 logonoff

/label acknowledge-critical-fixes-only

logonoff avatar Aug 26 '24 20:08 logonoff

/retest-required

Remaining retests: 0 against base HEAD 4351a55df1cc8d87af4f8ad4f8afc3627ea4ac15 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 26 '24 23:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 4351a55df1cc8d87af4f8ad4f8afc3627ea4ac15 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 27 '24 08:08 openshift-ci-robot

@logonoff The updated test is failing Screenshot 2024-08-27 at 3 31 50 AM

sanketpathak avatar Aug 27 '24 09:08 sanketpathak

/retest-required

Remaining retests: 0 against base HEAD 4351a55df1cc8d87af4f8ad4f8afc3627ea4ac15 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 27 '24 12:08 openshift-ci-robot

/retest

logonoff avatar Aug 27 '24 15:08 logonoff

/retest-required

Remaining retests: 0 against base HEAD af11c82c494d122a3fecca5ca364e85e1db9bd05 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 27 '24 20:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD ae8180c788ef40b62e506712dd6274a9bc76464a and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 28 '24 00:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD ae8180c788ef40b62e506712dd6274a9bc76464a and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 28 '24 06:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 7efe9105b4d34c50c377789ba5e32f9c8d224724 and 1 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 28 '24 11:08 openshift-ci-robot

/retest

logonoff avatar Aug 28 '24 14:08 logonoff

/retest-required

Remaining retests: 0 against base HEAD 7efe9105b4d34c50c377789ba5e32f9c8d224724 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 28 '24 20:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 46a28bad8f300acb589c11e075bdeb065f452290 and 2 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 29 '24 02:08 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD e7a7c24c827497fb3fc1f654ba86ec62a2581de2 and 1 for PR HEAD 66a673861c0f8b9c23457aad4ee8a8c409ea594e in total

openshift-ci-robot avatar Aug 29 '24 09:08 openshift-ci-robot

/lgtm /label qe-approved Tests work fine Screenshot 2024-08-28 at 7 48 45 PM

sanketpathak avatar Aug 29 '24 16:08 sanketpathak

@logonoff: This pull request references Jira Issue OCPBUGS-34764, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.18.0) matches configured target version for branch (4.18.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @sanketpathak

In response to this:

Fixes:

Maps with JIRA issue https://issues.redhat.com/browse/OCPBUGS-34764

Analysis / Root cause:

There is a data race between the environment variable editor component (which only takes the initial value) and the knative yaml parser. The env variable component loads first which sets the initial value as blank since the parser is still working. Then the parser is done, updates the prop, but is ignored because the env variable component is already loaded.

Delaying loading the env list for 1 second also fixes the issue...

Solution Description:

Block the env selector from loading until the func.yaml is finished fetching and parsing

Screen shots / Gifs for design review:

n/a

Unit test coverage report:

unchanged

Test setup:

Install the Red Hat OpenShift Serverless and setup a Knative service

Then use @Lucifergene 's serverless example https://github.com/Lucifergene/oc-func

Browser conformance:

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Aug 29 '24 16:08 openshift-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff, Lucifergene, sanketpathak, vikram-raj

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[bot] avatar Aug 29 '24 16:08 openshift-ci[bot]

/retest

logonoff avatar Aug 29 '24 16:08 logonoff

/retest-required

Remaining retests: 0 against base HEAD 253f7e2846fc81f26dd0fdb33a58ba4eb9731e76 and 2 for PR HEAD 906b99c874a41864960e75d7ccbde7d6c2a29546 in total

openshift-ci-robot avatar Aug 29 '24 21:08 openshift-ci-robot