You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Habushu user, I want to be able to have my wheels installed to the local cache separately from the package step, so I have more control over the build lifecycle.
Goal
To add more control over the new cacheWheels habushu-maven-plugin configuration.
Testing Approach
Configure the Habushu-Mixology project to use the cacheWheels configuration and confirm the wheel is cached as expected during the Install lifecycle phase.
Solution details
Creating a new cacheWheelsMojo that will execute during the install phase.
Testing Steps
Test 1: Confirm Habushu-Mixology builds as expected when cacheWheels is set to true.
In order to test this change we will need to invoke the new configuration: cacheWheels:boolean. Testing this change against the habushu/habushu-mixology/pom.xml's implementation of the habushu-maven-plugin.
Set cacheWheels to TRUE : Expect the wheel file to be added to the poetry cache location; post build.
Confirm the habushu-mixology wheel file is in the poetry cache directory
expected directory location: ${poetry-cache-dir}/cache/repositories/${artifact-id}/
the follow command finds your local cache directory.
poetry config cache-dir
Test 2: Confirm Habushu-Mixology builds as expected with no configuration set.
Clear poetry cache
(this clears out previous run's cache results)
poetry cache clear --all .
Testing no configuration to confirm default behavior; expect no caching of wheel
Remove configuration completely : Expect the wheel file NOT to be added to the poetry cache location post build.
mvn clean install -pl :habushu-mixology -Dmaven.build.cache.enabled=false
4. Expect the wheel file NOT to be added to the poetry cache location post build.
Test 3: Confirm Habushu-Mixology builds as expected when cacheWheels is set to false.
Testing the configuration false setting
Set cacheWheels to FALSE : Expect the wheel file NOT to be added to the poetry cache location post build.
Clear poetry cache
(this clears out previous run's cache results)
poetry cache clear --all .
3. Run/Build Habushu to test the new configuration.
mvn clean install -pl :habushu-mixology -Dmaven.build.cache.enabled=false
4. Confirm the habushu-mixology wheel file is NOT in the poetry cache directory
expected directory location: ${poetry-cache-dir}/cache/repositories/${artifact-id}/
the follow command finds your local cache directory.
poetry config cache-dir
The text was updated successfully, but these errors were encountered:
JeffreyRoss
changed the title
move <cacheWheels> configuration implementation from <package> phase to <install> phase
move cacheWheels configuration implementation from package phase to install phase
Jan 5, 2024
As a Habushu user, I want to be able to have my wheels installed to the local cache separately from the package step, so I have more control over the build lifecycle.
Goal
To add more control over the new cacheWheels habushu-maven-plugin configuration.
Testing Approach
Configure the Habushu-Mixology project to use the cacheWheels configuration and confirm the wheel is cached as expected during the Install lifecycle phase.
Solution details
Creating a new cacheWheelsMojo that will execute during the install phase.
Testing Steps
Test 1: Confirm Habushu-Mixology builds as expected when cacheWheels is set to true.
Set cacheWheels to TRUE : Expect the wheel file to be added to the poetry cache location; post build.
expected directory location: ${poetry-cache-dir}/cache/repositories/${artifact-id}/
the follow command finds your local cache directory.
poetry config cache-dir
Test 2: Confirm Habushu-Mixology builds as expected with no configuration set.
(this clears out previous run's cache results)
poetry cache clear --all .
Remove configuration completely : Expect the wheel file NOT to be added to the poetry cache location post build.
mvn clean install -pl :habushu-mixology -Dmaven.build.cache.enabled=false
4. Expect the wheel file NOT to be added to the poetry cache location post build.
Test 3: Confirm Habushu-Mixology builds as expected when cacheWheels is set to false.
Set cacheWheels to FALSE : Expect the wheel file NOT to be added to the poetry cache location post build.
(this clears out previous run's cache results)
poetry cache clear --all .
3. Run/Build Habushu to test the new configuration.
mvn clean install -pl :habushu-mixology -Dmaven.build.cache.enabled=false
4. Confirm the habushu-mixology wheel file is NOT in the poetry cache directory
expected directory location: ${poetry-cache-dir}/cache/repositories/${artifact-id}/
the follow command finds your local cache directory.
poetry config cache-dir
The text was updated successfully, but these errors were encountered: