[PR #7204] [MERGED] Verify integrity of bundled assets in CI #13219

Closed
opened 2025-12-29 22:26:03 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7204
Author: @thatmattlove
Created: 9/8/2021
Status: Merged
Merged: 9/8/2021
Merged by: @jeremystretch

Base: developHead: 7202-verify-static-assets


📝 Commits (2)

  • 9d99ede Fixes #7202: Verify integrity of bundled assets in CI
  • 513ecd7 Merge branch 'develop' into 7202-verify-static-assets

📊 Changes

3 files changed (+46 additions, -0 deletions)

View changed files

📝 .github/workflows/ci.yml (+3 -0)
📝 docs/release-notes/version-3.0.md (+2 -0)
scripts/verify-bundles.sh (+41 -0)

📄 Description

Fixes: #7202

  • Added a bash script to run the bundler and check for changed files via git diff. If there are any changes, produce an error.
  • Update CI config
  • Update docs

This does rely on git being available in ubuntu-latest, which I'm not 100% sure of. If it's not, we could do a shasum check of the files in netbox/project-static/dist/ before and after, but I figured this would be simpler.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/7204 **Author:** [@thatmattlove](https://github.com/thatmattlove) **Created:** 9/8/2021 **Status:** ✅ Merged **Merged:** 9/8/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `7202-verify-static-assets` --- ### 📝 Commits (2) - [`9d99ede`](https://github.com/netbox-community/netbox/commit/9d99ede024218bf8d46584449e223c9e21270bca) Fixes #7202: Verify integrity of bundled assets in CI - [`513ecd7`](https://github.com/netbox-community/netbox/commit/513ecd7e2609271dcb576734d5d156677d7c75dd) Merge branch 'develop' into 7202-verify-static-assets ### 📊 Changes **3 files changed** (+46 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+3 -0) 📝 `docs/release-notes/version-3.0.md` (+2 -0) ➕ `scripts/verify-bundles.sh` (+41 -0) </details> ### 📄 Description ### Fixes: #7202 - Added a bash script to run the bundler and check for changed files via `git diff`. If there are any changes, produce an error. - Update CI config - Update docs This _does_ rely on `git` being available in `ubuntu-latest`, which I'm not 100% sure of. If it's not, we could do a `shasum` check of the files in `netbox/project-static/dist/` before and after, but I figured this would be simpler. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:26:03 +01:00
adam closed this issue 2025-12-29 22:26:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13219