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

Adding cypress image #1427

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

metalice
Copy link
Collaborator

@metalice metalice commented Jan 6, 2025

Adding cypress image and expanding start script to support mac

@metalice metalice force-pushed the adding-cypress-image branch 4 times, most recently from 2d1d392 to 8d8fbf0 Compare January 7, 2025 06:13
@metalice metalice changed the title [WIP] Adding cypress image Adding cypress image Jan 7, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.20%. Comparing base (13484d0) to head (c363d22).
Report is 180 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1427      +/-   ##
==========================================
- Coverage   36.81%   36.20%   -0.62%     
==========================================
  Files         158      159       +1     
  Lines        2548     2580      +32     
  Branches      599      590       -9     
==========================================
- Hits          938      934       -4     
- Misses       1428     1644     +216     
+ Partials      182        2     -180     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@sgratch sgratch left a comment

Choose a reason for hiding this comment

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

I run it on my env. and it looks ok.

Few comments:

  1. Can you please separate/divide this changes to cypress support and macOS support? It will help tracking changes in the future.
  2. UX dev asked for macOS support as well and posted a PR Add --arch when running podman to allow running on ARM machines #1380 already so I wonder why it's not working for you and is working for them now.
  3. two more small comments below

@@ -7,9 +7,19 @@ source ${script_dir}/configure/openshift.sh
CONSOLE_CONTAINER_NAME=okd-console
FORKLIFT_NAMESPACE=konveyor-forklift

PLUGIN_NAME="forklift-console-plugin"
PLUGIN_URL=${PLUGIN_URL:-"http://localhost:9001"}
BASE_HOST_URL=${BASE_HOST_URL:-"http://localhost"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be https and not always http?

Suggested change
BASE_HOST_URL=${BASE_HOST_URL:-"http://localhost"}
BASE_HOST_URL=${BASE_HOST_URL:-"https://localhost"}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the base host used before my changes is http

Copy link
Collaborator

Choose a reason for hiding this comment

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

@@ -19,7 +19,7 @@
"clean:all": "yarn clean ./node_modules ./.rollup.cache",
"i18n": "i18next \"./src/**/*.{js,jsx,ts,tsx}\" [-oc] -c ./i18next-parser.config.js",
"build": "NODE_ENV=production webpack",
"start": "NODE_ENV=development webpack serve",
"start": "NODE_ENV=development webpack serve --progress",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we omit the --progress flag before merging?
It makes the webpack output longer which is .annoying...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, of course, I can omit it. I've added it :) It's just to know the percentage progress when u sit and wait to 100% to start working. with all other projects we do have it with progress

Copy link
Collaborator

Choose a reason for hiding this comment

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

And isn't it extending the build running time? It seems like it is for me :)
https://webpack.js.org/guides/build-performance/#progress-plugin

@metalice
Copy link
Collaborator Author

metalice commented Jan 8, 2025

I run it on my env. and it looks ok.

Few comments:

  1. Can you please separate/divide this changes to cypress support and macOS support? It will help tracking changes in the future.
  2. UX dev asked for macOS support as well and posted a PR Add --arch when running podman to allow running on ARM machines #1380 already so I wonder why it's not working for you and is working for them now.
  3. two more small comments below
  1. Dont know why its not working now or if it ever worked - podman and network setting on mac has issue

Comment on lines +34 to +35
INVENTORY_SERVER_HOST=${INVENTORY_SERVER_HOST:-"$BASE_HOST_URL:30444"}
SERVICES_API_SERVER_HOST=${SERVICES_API_SERVER_HOST:-"$BASE_HOST_URL:30446"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here the urls were set by default before the fix to https://localhost and not to http://localhost, so you may need two variables or just set the HOST part..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed to https thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not working now, since the console doesn't find the plugin. It is searching for the plugin on https://localhost and the plugin is running using http://localhost.
The original line was:

PLUGIN_URL=${PLUGIN_URL:-"http://localhost:9001"}

You need to use different schema for each:
for PLUGIN_URL - http
for BASE_HOST_URL - https

@metalice metalice force-pushed the adding-cypress-image branch from 8d8fbf0 to c363d22 Compare January 8, 2025 12:50
Copy link

sonarqubecloud bot commented Jan 8, 2025

@metalice
Copy link
Collaborator Author

/hold
I'm keeping this on hold currently as I've published image to quay, and we are trying to make it work D/S (some technical issues with URL's) - once we have a happy path, D/S will circle back to it. @sgratch

@sgratch sgratch added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants