-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rename .deb files to skip per-distro subdirectories in S3 #22471
base: master
Are you sure you want to change the base?
Rename .deb files to skip per-distro subdirectories in S3 #22471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 unresolved discussion, LGTM missing from assignee BetsyMcPhail, missing label for release notes (waiting on @tyler-yankee)
a discussion (no related file):
+@BetsyMcPhail for feature review
Note, keeping this ≤ 79 chars is preferred. Maybe move some of the RHS to a temporary |
Previously, mwoehlke-kitware (Matthew Woehlke) wrote…
Also, this is a path, not a file name; consider keeping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 3 unresolved discussions, LGTM missing from assignees mwoehlke-kitware,BetsyMcPhail, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits), missing label for release notes (waiting on @tyler-yankee)
a discussion (no related file):
Previously, tyler-yankee wrote…
+@BetsyMcPhail for feature review
+@mwoehlke-kitware for feature review please
tools/release_engineering/dev/push_release
line 107 at r2 (raw file):
# Add the Debian package to the aptly database. aptly repo add "drake-${platform}" "${filename}"
@mwoehlke-kitware - Should the filename here should remain the same as it is now with no platform? For example, drake-dev_1.37.0-1_amd64.deb
09e2067
to
066d088
Compare
Previously, mwoehlke-kitware (Matthew Woehlke) wrote…
Thanks, agreed. Fixed in the most recent commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 4 unresolved discussions, LGTM missing from assignee BetsyMcPhail, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits), missing label for release notes (waiting on @tyler-yankee)
a discussion (no related file):
Previously, BetsyMcPhail (Betsy McPhail) wrote…
+@mwoehlke-kitware for feature review please
aside from pending discussion on naming for aptly
.
tools/release_engineering/dev/push_release
line 107 at r2 (raw file):
Previously, BetsyMcPhail (Betsy McPhail) wrote…
@mwoehlke-kitware - Should the filename here should remain the same as it is now with no platform? For example,
drake-dev_1.37.0-1_amd64.deb
Are you asking if we should remove the platform from the file prior to aptly repo add
? I don't know... ask someone with more Debian packaging knowledge. 🙂
tools/release_engineering/dev/push_release.py
line 359 at r3 (raw file):
dest_path_suffix = f'{deb.version}_{deb.arch}-{deb.platform}.{deb.ext}' state.push_artifact(deb, _AWS_BUCKET, f'drake/release/drake-dev_{dest_path_suffix}')
Consider?
Suggestion:
dest_suffix = f'{deb.version}_{deb.arch}-{deb.platform}.{deb.ext}'
dest_path = f'drake/release/drake-dev_{dest_suffix}'
state.push_artifact(deb, _AWS_BUCKET, dest_path)
b9d66ac
to
493eecc
Compare
Previously, mwoehlke-kitware (Matthew Woehlke) wrote…
Yeah, looks like this is cleanest. |
Previously, mwoehlke-kitware (Matthew Woehlke) wrote…
I don't have knowledge here, but strictly speaking I feel like it should remain unchanged if we want to stick as close as possible to current behavior outside of the intended change (which this is). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, 1 of 2 files at r4, all commit messages.
Reviewable status: 4 unresolved discussions, LGTM missing from assignee BetsyMcPhail, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits), missing label for release notes (waiting on @tyler-yankee)
tools/release_engineering/dev/push_release
line 107 at r2 (raw file):
Previously, tyler-yankee wrote…
I don't have knowledge here, but strictly speaking I feel like it should remain unchanged if we want to stick as close as possible to current behavior outside of the intended change (which this is).
Sorry, my question wasn't clear. Prior to this change, the aptly repo add
command used a filename without the platform. With this change, the filename now includes the platform.
If it's searching for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4.
Reviewable status: 2 unresolved discussions, LGTM missing from assignee BetsyMcPhail, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits), missing label for release notes (waiting on @tyler-yankee)
tools/release_engineering/dev/push_release
line 107 at r2 (raw file):
Previously, tyler-yankee wrote…
From the docs (
aptly help repo add
):When importing from directory aptly would do recursive scan looking for all files matching *.[u]deb or *.dsc
patterns. Every file discovered would be analyzed to extract metadata, package would then be created and added
to the database.If it's searching for
*.deb
, then having the package name appended before.deb
might muck up the search, but I'm not sure without enough experience in the use case. I'll modify it so that the old filename is used for this step just to be safe (that's what I was trying to say above, but wasn't very clear).
We aren't importing from a directory, though, we're giving it a file name. The changed file name reflects that the file name from AWS (and thus, the file on disk after downloading from AWS) changed. The question seems to be whether the name of the .deb
on disk matters. The above-quoted documentation makes it sound like the on-disk .deb
could be named baz.deb
or <sha>.deb
and it wouldn't matter. But, sure, if we're paranoid, maybe something like:
readonly remote_filename="drake-dev_${source_version}-1_amd64-${platform}.deb"
readonly local_filename="drake-dev_${source_version}-1_amd64.deb"
curl --fail --location -o "${local_filename} \
"https://drake-packages.csail.mit.edu/drake/release/${remote_filename}"
This won't change the name of the file on disk... as a result, I'm fairly sure the subsequent |
37fe9a0
to
0d46fc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r6.
Reviewable status: 2 unresolved discussions, LGTM missing from assignee BetsyMcPhail, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits), missing label for release notes (waiting on @tyler-yankee)
a discussion (no related file):
Previously, tyler-yankee wrote…
I also just updated the README so it contains the new filename.
Previously, mwoehlke-kitware (Matthew Woehlke) wrote…
This won't change the name of the file on disk... as a result, I'm fairly sure the subsequent
aptly
invocation will fail.
Better!
Issue: #19735
_push_deb
inpush_release.py
to copy artifacts directly to thedrake_release
folder in S3, rather than the per-distro subdirectories. The platform name is hyphenated at the end of the filename.push_release
to copy the corresponding filename convention.This change is