Skip to content

Add ability to have deterministic bundle builds on all platforms#996

Merged
carneyweb merged 21 commits intodevelopmentfrom
deterministic-win64-bundle-builds
Apr 4, 2024
Merged

Add ability to have deterministic bundle builds on all platforms#996
carneyweb merged 21 commits intodevelopmentfrom
deterministic-win64-bundle-builds

Conversation

@achristoforides
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.60%. Comparing base (63c8cc1) to head (cf38838).

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #996      +/-   ##
===============================================
- Coverage        88.86%   88.60%   -0.26%     
===============================================
  Files              222      221       -1     
  Lines            12533    12545      +12     
===============================================
- Hits             11137    11116      -21     
- Misses            1396     1429      +33     
Files Coverage Δ
tools/rc/ResourceCompiler.cpp 87.72% <100.00%> (+0.22%) ⬆️

... and 18 files with indirect coverage changes

Copy link
Copy Markdown
Member

@jeffdiclemente jeffdiclemente left a comment

Choose a reason for hiding this comment

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

there needs to be tests to make sure the timestamps are what is expected.

also, what about file ordering within the zip? I would think that if clients add more files to their meta data ZIP files, this will also be a problem for reproducible builds. See https://reproducible-builds.org/docs/archives/

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@tcormackMW tcormackMW closed this Mar 19, 2024
@tcormackMW tcormackMW reopened this Mar 19, 2024
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@jeffdiclemente jeffdiclemente force-pushed the deterministic-win64-bundle-builds branch from 22b8a7e to b242be6 Compare March 27, 2024 12:11
Comment thread third_party/patches/miniz_3.0.2.patch Outdated
Comment thread tools/rc/ResourceCompiler.cpp
Comment thread .github/workflows/build_and_test_nix.yml Outdated
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
Comment thread third_party/miniz.c
Comment thread third_party/miniz.c
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

Comment thread maci64_link.sh
Comment thread tools/rc/test/basic_test.sh
Comment thread tools/rc/test/basic_test.bat
@github-actions
Copy link
Copy Markdown
Contributor

No warnings, LGTM!

@carneyweb carneyweb merged commit baca396 into development Apr 4, 2024
RobertLauferElektrobit pushed a commit to insi-eb/CppMicroServices-cpp14 that referenced this pull request Jul 24, 2025
…MicroServices#996)

* Added CMake option and associated miniz changes to facilitate deterministic builds on win64

* Added support for maci64

* Some more updates

* Fixed up stuff for maci

* Updated comments and other things

* Added support for deterministic locales when building

* Updated LC_* variables to simply use LC_ALL instead

* Add in test to validate deterministic zip file creation.

* add deterministic zip file tests to build configurations for github.

* fix syntax issue in yml file

* restore old version of some code.

* Try this.

* add support for deterministic bundle linking on maci64

* got the CMAKE_CXX_LINK_LAUNCHER to work for linking deterministic

on maci64.

* deterministic testing

* Fixed issues with .bat test for deterministic bundles on win64

* updated basic_test.sh with new format and removed old rc_tests.cmake

* Added some comments describing the changes.

* respond to code review requests.

* fixed a typo.

* respond to code review feedback.

---------

Co-authored-by: alchrist <alchrist@mathworks.com>
Co-authored-by: Michael Carney <mike@carneyweb.com>
jeffdiclemente pushed a commit that referenced this pull request Jul 25, 2025
… (#1148)

* Added CMake option and associated miniz changes to facilitate deterministic builds on win64

* Added support for maci64

* Some more updates

* Fixed up stuff for maci

* Updated comments and other things

* Added support for deterministic locales when building

* Updated LC_* variables to simply use LC_ALL instead

* Add in test to validate deterministic zip file creation.

* add deterministic zip file tests to build configurations for github.

* fix syntax issue in yml file

* restore old version of some code.

* Try this.

* add support for deterministic bundle linking on maci64

* got the CMAKE_CXX_LINK_LAUNCHER to work for linking deterministic

on maci64.

* deterministic testing

* Fixed issues with .bat test for deterministic bundles on win64

* updated basic_test.sh with new format and removed old rc_tests.cmake

* Added some comments describing the changes.

* respond to code review requests.

* fixed a typo.

* respond to code review feedback.

---------

Co-authored-by: Alexander Christoforides <38366659+achristoforides@users.noreply.github.com>
Co-authored-by: alchrist <alchrist@mathworks.com>
Co-authored-by: Michael Carney <mike@carneyweb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants