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

Split artifact cleanup into prepare step before build #1618

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

andrewnester
Copy link
Contributor

Changes

Now prepare stage which does cleanup is execute once before every build, so artifacts built into the same folder are correctly kept

Fixes workaround 2 from this issue #1602

Tests

Added unit test

Copy link
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

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

Minor comment, approving to unblock.

Thanks!

@andrewnester andrewnester enabled auto-merge July 24, 2024 09:04
@andrewnester andrewnester added this pull request to the merge queue Jul 24, 2024
Merged via the queue into main with commit 39fc86e Jul 24, 2024
5 checks passed
@andrewnester andrewnester deleted the fix/no-dist-cleanup branch July 24, 2024 09:19
andrewnester added a commit that referenced this pull request Jul 25, 2024
Bundles:
 * Add UUID function to bundle template functions  ([#1612](#1612)).
 * Upgrade TF provider to 1.49.0 ([#1617](#1617)).
 * Upgrade TF provider to 1.49.1 ([#1626](#1626)).
 * Support multiple locations for diagnostics ([#1610](#1610)).
 * Split artifact cleanup into prepare step before build ([#1618](#1618)).
 * Move to a single prompt during bundle destroy ([#1583](#1583)).

Internal:
 * Add tests for the Workspace API readahead cache ([#1605](#1605)).
 * Update Python dependencies before install when upgrading a labs project ([#1624](#1624)).
@andrewnester andrewnester mentioned this pull request Jul 25, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 26, 2024
Bundles:
* Add UUID function to bundle template functions
([#1612](#1612)).
* Upgrade TF provider to 1.49.0
([#1617](#1617)).
* Upgrade TF provider to 1.49.1
([#1626](#1626)).
* Support multiple locations for diagnostics
([#1610](#1610)).
* Split artifact cleanup into prepare step before build
([#1618](#1618)).
* Move to a single prompt during bundle destroy
([#1583](#1583)).

Internal:
* Add tests for the Workspace API readahead cache
([#1605](#1605)).
* Update Python dependencies before install when upgrading a labs
project ([#1624](#1624)).
github-merge-queue bot pushed a commit that referenced this pull request Aug 6, 2024
## Changes
In #1618 we introduced prepare
step in which Python wheel folder was cleaned. Now it was cleaned
everytime instead of only when there is a build command how it is used
to work.

This PR fixes it by only cleaning up dist folder when there is a build
command for wheels.

Fixes #1638 

## Tests
Added regression test
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.

2 participants