Skip to content

Bug 2057679 - Update docker build process to pull in latest builds of vendered javascript libraries needed by the client - #2683

Open
dklawren wants to merge 3 commits into
mozilla-bteam:masterfrom
dklawren:2057679
Open

Bug 2057679 - Update docker build process to pull in latest builds of vendered javascript libraries needed by the client#2683
dklawren wants to merge 3 commits into
mozilla-bteam:masterfrom
dklawren:2057679

Conversation

@dklawren

Copy link
Copy Markdown
Collaborator

No description provided.

… vendered javascript libraries needed by the client
@dklawren
dklawren requested review from cgsheeh and Copilot July 24, 2026 22:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dklawren
dklawren requested a review from Copilot July 25, 2026 01:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dklawren
dklawren requested a review from Copilot July 28, 2026 18:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread package.json Outdated
@dklawren
dklawren requested review from cgsheeh and Copilot July 29, 2026 18:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dklawren
dklawren requested review from Xzzz and a balanced review from Copilot August 6, 2026 21:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 42 changed files in this pull request and generated no new comments.

Suppressed comments (1)

scripts/build-frontend.mjs:119

  • TARGET_DIRS is documented here and in the README as copying a whole asset directory, but this loop silently skips every nested directory. A library with assets below one level will therefore build successfully while shipping broken URLs. Recurse into directory entries (or use a recursive copy API) so the implementation matches that contract.

@Xzzz Xzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, nice cleanup and the design logic is already settled in-thread with Connor.

Few things I specifically checked:

  • Dockerfile ordering: COPY --from=assets /build/out /app/js lands before the chown -R app:app /app, and after COPY . /app, so permissions are correct
  • .gitignore entries line up exactly with TARGETS/TARGET_DIRS in build-frontend.mjs: no risk to see a generated file to be integrated into a commit
  • js/duo-min.js is deleted with nothing replacing it: grepped for duo-min/DuoWeb across the repo => no template or JS references it. The Duo MFA flow is server-side OAuth redirect (Bugzilla/MFA/Duo.pm), not the old client-side SDK, so this is well dead-code removal
  • The earlier Copilot comment about TARGET_DIRS not recursing into subdirectories has been correctly addressed: copyDir() in the current version does recurse now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants