Skip to content
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

(#2450) Enable configTransform and FilesSnapshot on non-Windows #2451

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

TheCakeIsNaOH
Copy link
Member

@TheCakeIsNaOH TheCakeIsNaOH commented Nov 13, 2021

Description Of Changes

This runs configTransformService and capture_package_files on
non-Windows platforms. Both appear to be fully functional, so there is
no reason not to run them. They were added to non-Windows side of the if/else instead of being
moved from the Windows side so as to not screw up the functionality of
create_ignore_files_for_executables.

Also re-enables the integration tests that validate the config transform
service on non-Windows platforms. These can be enabled now that the
config transform service runs on non-Windows platforms.

Motivation and Context

It would be good to get these two features working on non-Windows, as they both should be working.

It also lets more integration tests work on non-Windows

Testing

  1. Build choco on non-windows
  2. Run mono choco.exe install --allow-unofficial msi.template zip.template --verbose --debug
  3. Validate that file snapshots are created correctly under the appropriate subdirectories the .chocolatey directory.
  4. Uninstall the packages, make sure that the uninstall works.

The configTransform is tested in the when_installing_a_package_with_config_transforms test which is now enabled, along with the upgrade tests which pass.

Change Types Made

  • Bug fix (non-breaking change)
  • Feature / Enhancement (non-breaking change)
  • Breaking change (fix or feature that could cause existing functionality to change)

Related Issue

Fixes #2450
Depends on #2511

Change Checklist

  • Requires a change to the documentation
  • Documentation has been updated
  • Tests to cover my changes, have been added
  • All new and existing tests passed.

@TheCakeIsNaOH
Copy link
Member Author

I'm getting a failure in when_upgrading_a_package_with_config_transforms when running test.sh integration, but not when running the test individually in monodevelop.

That is why this is a draft for the moment.

@TheCakeIsNaOH TheCakeIsNaOH force-pushed the snapshot-transform branch 2 times, most recently from e874173 to e66c781 Compare January 6, 2022 20:10
@TheCakeIsNaOH TheCakeIsNaOH marked this pull request as ready for review January 6, 2022 20:18
@TheCakeIsNaOH
Copy link
Member Author

Rebased onto #2511, the tests are working now.

This runs configTransformService and capture_package_files on
non-Windows platforms. Both appear to be fully functional, so there is
no reason not to run them.

They were added to non-Windows side of the if/else instead of being
moved from the Windows side so as to not screw up the functionality of
create_ignore_files_for_executables.
Re-enables the integration tests that validate the config transform
service on non-Windows platforms. These can be enabled now that the
config transform service runs on non-Windows platforms.
@gep13 gep13 force-pushed the snapshot-transform branch from 1b93e99 to a256c27 Compare January 10, 2022 20:42
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gep13 gep13 merged commit f0040ca into chocolatey:develop Jan 10, 2022
@gep13
Copy link
Member

gep13 commented Jan 10, 2022

@TheCakeIsNaOH thanks for getting this added, this is a great addition!

@TheCakeIsNaOH TheCakeIsNaOH deleted the snapshot-transform branch January 10, 2022 23:22
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.

Snapshotting of files and config transform has been enabled on non-Windows systems
2 participants