-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: check ecobalyse-data sync for PR #915
Conversation
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.
Great initiative! I’ve added some comments that I would like to be addressed before merging. Don't hesitate if you want to discuss about it.
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.
Great idea. I've mostly thumbed up @vjousse review comments here.
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.
LGTM! 👍
## [4.0.0](https://github.com/MTES-MCT/ecobalyse/compare/v3.1.0..v4.0.0) (2025-03-03) ### 🚀 Features - Add pre-treatments and update bleaching process ([#898](#898)) - *(textile,ui)* Apply default trims on product category change ([#910](#910)) - Add link to docs in trims section. ([#911](#911)) - Update finishing ([#906](#906)) - *(textile)* Add pre-treatments at the ennobling step. ([#916](#916)) - Update aquatic pollution and pre-treatments computations ([#928](#928)) - [**breaking**] Replace dyeing medium parameter with dyeing process type. ([#941](#941)) - *(food)* Add transport cooling column to ingredients explorer. ([#950](#950)) ### 🪲 Bug Fixes - Include trims impacts to score without durability. ([#912](#912)) - *(security)* Upgrade sentry libs to v8.49.0 ([#918](#918)) - Remove the sourceId from the explorer ([#947](#947)) ### 📚 Documentation - Add FAQ entry about security & self-hosting. ([#919](#919)) ### ⚙️ Miscellaneous Tasks - *(data)* Update fast fashion examples nb of references. ([#908](#908)) - For bleaching set etf to 0 ([#914](#914)) - Check ecobalyse-data sync for PR ([#915](#915)) - Sync ecobalyse-data after bw update ([#920](#920)) - Doubts on the lamb, hide it for now ([#927](#927)) - Upgrade dependencies, 2025, Feb 12. ([#938](#938)) - *(textile)* Remove obsolete waste for material ([#940](#940)) - Use new deployment stack `scalingo-22` ([#939](#939)) - WFLDB export from simapro ([#942](#942)) - Sync from ecobalyse-data#48 ([#944](#944)) - Update wool "nouvelle filière" with new impacts ([#943](#943)) - Convert to camelCase json keys ([#946](#946)) - Enable all verticals in review apps ([#953](#953)) - Update ingredient name in score history ([#948](#948)) <!-- generated by git-cliff --> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🔧 Problem
We have 2 repos
ecobalyse-data
andecobalyse
so we have out of sync issues.I experienced them and it's quite annoying.
We agreed upon a workflow with the following rules :
ecobalyse-data
PR should be merged firstecobalyse
PR can be mergedWith this workflow,
ecobalyse-data/main
should always be sync withecobalyse/branch_a
when doing a PR onecobalyse
:🍰 Solution
In every
ecobalyse
PR add a check that verifies ifecobalyse-data
andecobalyse
are in sync for the generatedecobalyse-data
files :🚨 Points to watch/comments
As
ecobalyse/master
might be temporarily behindecobalyse-data/main
, this check should not apply in the CI onecobalyse/master
. Only on PR toecobalyse/master
If someone merge a json-changing PR in
ecobalyse-data
and he doesn't merge the corresponding PR onecobalyse
, then this check is going to block allecobalyse
PR because they will all be out of sync. But that's kind of the point, it forces us to always syncecobalyse-data
andecobalyse
I didn't add
public/data/textile/processes_impacts.json
to the check as it was more complicated with the encryption. Any modification toprocesses_impacts.json
should normally modifyprocesses.json
so it's not that importantUnit testing check-ecobalyse-data-sync.sh would be nice
🏝️ How to test
Success
./check-ecobalyse-data-sync.sh
should succeed (if this is sync toecobalyse-data
)Failure
./check-ecobalyse-data-sync.sh
should fail and display the diff