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

Generate static UI files from within a container #6972

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Jul 17, 2023

What type of PR is this:
/area refactoring
/area dev

What does this PR do / why we need it:

CI started failing on #6970 - see https://github.com/redhat-developer/odo/actions/runs/5573055638/jobs/10179819175?pr=6970
But running make ui-static locally on my machine returned no diff. The behavior was different on CI and on other machines.
Similar behavior was noticed even on the main branch.

For some reason, Angular was not generating the same hash for the runtime*.js file (even with the same content), causing the 'check-ui-static-files' job to sometimes fail.

Leveraging a container (as we are already doing for the generate-apiserver and generate-apifront tasks) should allow for more stable output.

Which issue(s) this PR fixes:

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

make ui-static
# No changes to expect
git diff

rm3l and others added 2 commits July 17, 2023 17:31
…lity

For some reason, Angular was not generating the same hash
for the `runtime*.js` file (even with the same content),
causing the 'check-ui-static-files' job to sometimes fail.

Leveraging a container (as we are already doing for the
'generate-apiserver' and 'generate-apifront' tasks)
should allow for more predictable output.

Co-authored-by: Philippe Martin <phmartin@redhat.com>
@rm3l rm3l requested a review from feloy July 17, 2023 15:43
@openshift-ci openshift-ci bot added the area/refactoring Issues or PRs related to code refactoring label Jul 17, 2023
@netlify
Copy link

netlify bot commented Jul 17, 2023

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit 426529d
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/64b5618c07519d000899e69c

@openshift-ci openshift-ci bot added the area/dev Issues or PRs related to `odo dev` label Jul 17, 2023
@openshift-ci openshift-ci bot requested review from anandrkskd and valaparthvi July 17, 2023 15:43
@sonarqubecloud
Copy link

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 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@rm3l rm3l added this to the v3.13.0 🚀 milestone Jul 17, 2023
@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

Windows Tests (OCP) on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jul 17, 2023

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

Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 18, 2023
@openshift-merge-robot openshift-merge-robot merged commit 9fd65cd into redhat-developer:main Jul 18, 2023
@rm3l rm3l deleted the generate_static_ui_from_a_container branch July 18, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev Issues or PRs related to `odo dev` area/refactoring Issues or PRs related to code refactoring 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.

3 participants