IDEMSInternational / open-app-builder

PLH App Frontend
GNU General Public License v3.0
5 stars 24 forks source link

Fix: test visual ci action #2144

Closed chrismclarke closed 10 months ago

chrismclarke commented 10 months ago

PR Checklist

Description

Whilst bumping axios as part of #2142 it was identified that test-visual workflow is currently broken as it relies on the plh_global deployment that is no longer included in the repo. Whilst the action does use the common build action that does have support for pulling remote repos, there is an extra deployment set as part of the follow-up process required to pull the contents.json list of app sheets from deployment src code.

Main changes

Additional changes

Review Notes

Should be able to run locally following instructions updated in readme

yarn build
yarn workspace test-visual start compare --clean

Git Issues

Closes #2142

Screenshots/Videos

If useful, provide screenshot or capture to highlight main changes

github-actions[bot] commented 10 months ago

Visual Test Summary new : 0 different : 3 same : 326

Largest Differences 1 | 0.3 % | feature_parent_point_box 2 | 0.1 % | example_calc 3 | 0.1 % | example_calc_date

Download Link https://nightly.link/IDEMSInternational/parenting-app-ui/actions/runs/6886971608

Run Details https://github.com/IDEMSInternational/parenting-app-ui/actions/runs/6886971608

chrismclarke commented 10 months ago

Great, all looks good.

I can run the test-visual start compare workflow locally (although by default macOS uses port 5000 for some reason 🙃)

I hardcoded port 5000 just to not confuse with dev app potentially running on 4200, so not a mac thing this time

jfmcquade commented 10 months ago

I hardcoded port 5000 just to not confuse with dev app potentially running on 4200, so not a mac thing this time

I meant that by default on Mac, port 5000 is already in use (for receiving AirPlay) so the workflow doesn't succeed unless I turn off that functionality. I feel like 5000 is a port that's pretty commonly used by developers, so I'm not sure why macOS doesn't use another more obscure one

chrismclarke commented 9 months ago

I meant that by default on Mac, port 5000 is already in use (for receiving AirPlay) so the workflow doesn't succeed unless I turn off that functionality. I feel like 5000 is a port that's pretty commonly used by developers, so I'm not sure why macOS doesn't use another more obscure one

Ah, that makes sense (the issue, not why the port is in use). Yeah I know firebase serve uses 5000 and I think vercel serve might also (or perhaps they previously did and then swapped to 3000...). In any case, if it becomes bothersome feel free to either change the hardcoded value or just expose an extra variable in commander to specify port (but guessing the action will be run very rarely locally)