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

fix(build): slightly optimize UI tasks in kit tasks.yaml #13350

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

agilgur5
Copy link
Member

@agilgur5 agilgur5 commented Jul 16, 2024

Motivation

  • while the UI needs the server to connect to the API, it can start and run in parallel

    • it also has some small functionality independently of the Server; it'll just error on API requests
  • in particular, when I was working on the Server and UI simultaneously (e.g. fix(server): don't return undefined SA NS #13347), any Server change would cause the whole UI task to restart, even if I did not change the UI

    • this was pretty slow and inefficient as such, so remove the dep

Modifications

  • remove ui task's dependency on server task
  • remove unnecessary mutex: download

Verification

- remove dependency on server
  - while the UI needs the server to connect to the API, it can start and run in parallel
    - it also has some small functionality independently of the Server; it'll just error on API requests
  - in particular, when I was working on the Server and UI simultaneously, any Server change would cause the whole UI task to restart, even if I did not change the UI
    - this was pretty slow and inefficient as such, so remove the dep
- remove unncessary `mutex: download`
  - the two dep installations can run concurrently, they're in totally separate directories and use different tools (go vs yarn)

Signed-off-by: Anton Gilgur <[email protected]>
@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Jul 16, 2024
@agilgur5 agilgur5 added area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix and removed area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix labels Jul 16, 2024
Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

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

This works for me. I'd never really understood why the mutex was needed at all either. Thanks.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 25, 2024
@Joibel Joibel merged commit 092a43b into argoproj:main Jul 25, 2024
30 checks passed
@agilgur5 agilgur5 deleted the fix-tasks-optimize-ui branch July 25, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues lgtm This PR has been approved by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants