Skip to content

chore: add build:ci smoke test to verify webpack build#836

Merged
arbrandes merged 2 commits intoopenedx:frontend-basefrom
arbrandes:build-ci
Apr 23, 2026
Merged

chore: add build:ci smoke test to verify webpack build#836
arbrandes merged 2 commits intoopenedx:frontend-basefrom
arbrandes:build-ci

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

Description

Apps are distributed build-less, so npm run build only compiles the library dist/ via tsc and nothing in CI verifies that the app can actually be webpack-bundled as a deployable site. This PR adds an npm run build:ci script that exercises the real app graph through webpack, and wires it into the CI workflow after the existing build step.

Refs openedx/frontend-base#124.

Verifying the check

Introduce a typo in an import somewhere in src/ that is reached from the app's route/component graph (for example, rename a file import to a path that doesn't exist). npm run build still passes, but npm run build:ci fails with a module resolution error. Revert the typo and the build goes green again.

LLM usage notice

Built with assistance from Claude.

@arbrandes arbrandes changed the base branch from master to frontend-base April 22, 2026 21:29
@arbrandes arbrandes changed the title ci: add build:ci smoke test to verify webpack build chore: add build:ci smoke test to verify webpack build Apr 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (frontend-base@ad39800). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base     #836   +/-   ##
================================================
  Coverage                 ?   90.37%           
================================================
  Files                    ?      152           
  Lines                    ?     1288           
  Branches                 ?      272           
================================================
  Hits                     ?     1164           
  Misses                   ?      119           
  Partials                 ?        5           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Adds an npm run build:ci script that exercises the real app graph through webpack, and wires it into the CI workflow after the existing build step.

Co-Authored-By: Claude <noreply@anthropic.com>
Ports the CertificateBanner portion of 5e69cf8 (openedx#813). The
ResumeButton changes from that commit are already covered by
4a75852.

Co-Authored-By: Claude <noreply@anthropic.com>
<>
{' '}
<Hyperlink isInline destination={certificate.certPreviewUrl}>
<Hyperlink isInline destination={baseAppUrl(certificate.certPreviewUrl)}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wasn't sure where this change was coming from, looks like it landed in master with #813

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I snuck it in, sorry! 😅

@arbrandes arbrandes merged commit 56b971c into openedx:frontend-base Apr 23, 2026
6 checks passed
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants