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

Unify upload release handling to always check if skippable #586

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

nouseforaname
Copy link
Contributor

@nouseforaname nouseforaname commented Jan 25, 2022

[180980049]

To improve deployment times we looked into the upload release
section for local tarballs. we skipped the existing checks (that were
used for http/git urls for tarballs and opted to always reupload.

This PR changes this behaviour

The new behaviour will skip uploading releases IF the specified
name and version are available within the director.

--fix will still this override this behaviour

within the cli subcommand this will only be triggered if the
--name and --version flags are specified.

ubuntu@lighttaupe-ops-manager:~$ bosh upload-release file:///var/tempest/releases/pxc-0.39.0-ubuntu-xenial-621.192.tgz
Using environment '10.0.0.5' as client 'ops_manager'

[-----------------------------------------------------------------] 100.00%   0s
Task 125

Task 125 | 15:14:26 | Extracting release: Extracting release (00:00:00)
Task 125 | 15:14:26 | Verifying manifest: Verifying manifest (00:00:00)
Task 125 | 15:14:26 | Resolving package dependencies: Resolving package dependencies (00:00:00)
Task 125 | 15:14:26 | Processing 8 existing jobs: Processing 8 existing jobs (00:00:00)
Task 125 | 15:14:26 | Compiled Release has been created: pxc/0.39.0 (00:00:00)

Task 125 Started  Tue Jan 25 15:14:26 UTC 2022
Task 125 Finished Tue Jan 25 15:14:26 UTC 2022
Task 125 Duration 00:00:00
Task 125 done

Succeeded
ubuntu@lighttaupe-ops-manager:~$ bosh upload-release file:///var/tempest/releases/pxc-0.39.0-ubuntu-xenial-621.192.tgz --version 0.39.0 --name pxc
Using environment '10.0.0.5' as client 'ops_manager'

Release 'pxc/0.39.0' already exists.

Succeeded

we ran the full test suite.

Konstantin Kiess added 2 commits January 24, 2022 17:33
do the same as for git and http url releases and check if we need
to actually upload before uploading.

requires the sha1sum to be present in the release config.
https://www.pivotaltracker.com/story/show/180980049

To improve deployment times we looked into the upload release
section for local tarballs. we skipped the existing checks
for tarballs and opted to always reupload. This PR changes
this behaviour

The new behaviour will skip uploading releases IF the specified
name and version are available within the director.

--fix will this override this behaviour

within the cli subcommand (unlike when triggered through manifests)
this will only be triggered if the --name and --version flags
are specified.

```shell
ubuntu@lighttaupe-ops-manager:~$ bosh upload-release file:///var/tempest/releases/pxc-0.39.0-ubuntu-xenial-621.192.tgz
Using environment '10.0.0.5' as client 'ops_manager'

[-----------------------------------------------------------------] 100.00%   0s
Task 125

Task 125 | 15:14:26 | Extracting release: Extracting release (00:00:00)
Task 125 | 15:14:26 | Verifying manifest: Verifying manifest (00:00:00)
Task 125 | 15:14:26 | Resolving package dependencies: Resolving package dependencies (00:00:00)
Task 125 | 15:14:26 | Processing 8 existing jobs: Processing 8 existing jobs (00:00:00)
Task 125 | 15:14:26 | Compiled Release has been created: pxc/0.39.0 (00:00:00)

Task 125 Started  Tue Jan 25 15:14:26 UTC 2022
Task 125 Finished Tue Jan 25 15:14:26 UTC 2022
Task 125 Duration 00:00:00
Task 125 done

Succeeded
ubuntu@lighttaupe-ops-manager:~$ bosh upload-release file:///var/tempest/releases/pxc-0.39.0-ubuntu-xenial-621.192.tgz --version 0.39.0 --name pxc
Using environment '10.0.0.5' as client 'ops_manager'

Release 'pxc/0.39.0' already exists.

Succeeded
```

Signed-off-by: Long Nguyen <[email protected]>
@lnguyen lnguyen merged commit e75f6a6 into main Jan 25, 2022
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