Skip to content

fix: Adding fix for incorrect archived workflows URL redirecti… - #13

Closed
v-abhijeets wants to merge 1 commit into
zillow:feature/zgfrom
v-abhijeets:v-abhijeets/AIP-10019
Closed

v-abhijeets wants to merge 1 commit into
zillow:feature/zgfrom
v-abhijeets:v-abhijeets/AIP-10019

Conversation

@v-abhijeets

@v-abhijeets v-abhijeets commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Fixes #AIP-10019

Motivation

With BASE_HREF=/argo-ui/, the UI built URLs like
/argo-ui//archived-workflows/<ns>/<uid> because uiUrl / apiUrl naively concatenated the base href with paths that started with /. Archived-workflow links from train-and-evaluate (job 101830841) redirected to that broken URL.

The earlier fix attempt didn't ship: our .gitlab-ci.yml only built --target workflow-controller, but the UI is only compiled and embedded into the argocli image (used by the argo-server Deployment).

Modifications

  • ui/src/app/shared/base.ts: added joinBasePath (strips trailing / on base, leading / on path, joins with a single /) and routed uiUrl, uiUrlWithParams, apiUrl through it. Hardened baseUrl() to fall back to / when <base href> is missing.
  • ui/src/app/shared/base.test.ts (new): regression tests covering all combinations of trailing/leading slashes, empty paths, and the original /argo-ui//archived-workflows case.
  • .gitlab-ci.yml: parameterized --target via DOCKER_TARGET, dropped the redundant host-side make dist/workflow-controller, and added build:argo-server (target argocli, contains the UI) and build:argoexec jobs. Existing build:workflow-controller job keeps the argo-workflows artifact name for backwards compatibility.

Verification

  • Pipeline produces three image tags: argo-workflows, argo-server, argoexec (all v3.5.6-<slug>).
  • Paired with aip-k8s-manifests !666, which bumps the argo-server Deployment to the new argo-server tag
  • Re-run of train-and-evaluate in sandbox surfaces /argo-ui/archived-workflows/<ns>/<uid> (no //) and resolves correctly.

@v-abhijeets v-abhijeets changed the title AIP-10019: Adding fix for incorrect archived workflows URL redirecti… fix: Adding fix for incorrect archived workflows URL redirecti… May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant