-
Notifications
You must be signed in to change notification settings - Fork 86
Use versioneer to set PC/FidesJS version #6239
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This strategy looks very promising and I'm convinced there's a route here. Lots of suggestions 👍
206aab8
to
2757daa
Compare
ENV NODE_ENV=production | ||
ENV NEXT_TELEMETRY_DISABLED=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker was giving warnings about the deprecated support here, so I cleaned that up
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6239 +/- ##
=======================================
Coverage 86.77% 86.77%
=======================================
Files 448 448
Lines 28607 28607
Branches 3178 3178
=======================================
Hits 24823 24823
Misses 3050 3050
Partials 734 734 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2f1c4c0
to
4f77f3b
Compare
"version": "DEV", | ||
"comment": "Do not edit this file directly. It will be replaced during the Docker build process by an autogenerated version.json containing the Fides Python package version." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it out 👍
Include 'version' string in all log messages, and fix the peculiar formatting inconsistency caused by NextJS middleware using the 'edge' runtime for server-side middleware logging.
219890a
to
78f0f1f
Compare
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 50s |
Commit |
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
View all changes introduced in this branch ↗︎ |
Description Of Changes
Automatically inject
versioneer
-generated version into the Privacy Center and FidesJS build processes. The docker build system replaces a__RELEASE_VERSION__
placeholder innext.config.js
with the actual Git-based version during Docker build, ensuring version consistency across the entire application stack. It also writes to the version.json file for FidesJS to pick up and use during the rollup build process.Code Changes
built_frontend
stage to replace__RELEASE_VERSION__
placeholder with actual version as well as write it to theversion.json
fileprivacy-center/next.config.js
from "1.2.3" to__RELEASE_VERSION__
placeholderwindow.Fides.version
property to fides.js bundle for client-side version accessconsole.info
to Privacy Center to log the version on every page load.Steps to Confirm
docker build --target version_extractor -t test-version . && docker run --rm test-version cat /version.txt
docker build --target prod_pc -t test-pc . && docker run -d -p 3000:3000 test-pc
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works