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

Make etc/ci/upload_nightly.sh responsible for putting datetimes into filenames #12163

Conversation

@imjacobclark
Copy link
Contributor

imjacobclark commented Jul 2, 2016

This is part of #11980, allowing for more reproducible builds, increasing the security and integrity of the release process.

This particular change ensures the date and time is on the files that are available for download from the nightly-release s3 bucket and removes that responsibility from the packager.

See #12128 for more details.

@aneeshusa


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #12128 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because they are part of the CI infrastructure

This change is Reviewable

@highfive
Copy link

highfive commented Jul 2, 2016

Heads up! This PR modifies the following files:

@imjacobclark imjacobclark force-pushed the imjacobclark:12128-uploadnightlysh-responsible-date-times branch from 534fea9 to 4d966ee Jul 2, 2016
imjacobclark added 3 commits Jul 2, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2016

The latest upstream changes (presumably #12156) made this pull request unmergeable. Please resolve the merge conflicts.

@aneeshusa
Copy link
Member

aneeshusa commented Jul 3, 2016

This should also incorporate the change in #12088/wait for that to merge.

upload() {
local package_filename
local package_filename current_date_time

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Jul 3, 2016

Member

Let's rename current_date_time to nightly_timestamp.

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Jul 3, 2016

Member

Also rename package_filename to nightly_filename since it'll include the timestamp per my other comment.

package_filename="$(basename "${2}")"
current_date_time="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Jul 3, 2016

Member

Put this line before the one that sets package_filename, and then include nightly_timestamp when you set package_filename.

…loadnightlysh-responsible-date-times

Conflicts:
	etc/ci/upload_nightly.sh
@imjacobclark
Copy link
Contributor Author

imjacobclark commented Jul 3, 2016

@aneeshusa Resolve the merge conflict and review comments, just need to wait on #12088 landing.

Is #12088 still relevant in that file if this PR moves the time/date logic into upload_nightly.sh?

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2016

The latest upstream changes (presumably #12088) made this pull request unmergeable. Please resolve the merge conflicts.

@aneeshusa
Copy link
Member

aneeshusa commented Jul 3, 2016

Well, it just merged, so that's a moot point now :)

That PR changes the colons in the timestamp to dashes because the tar command will interpret the filename with colons as containing a remote server address with the colons and try to connect out, instead of knowing that it is a local file. I wish tar would just get smarter, but in the meantime we're switching to dashes so tar doesn't get confused. Any replacement for that functionality also needs to incorporate that change.

@imjacobclark
Copy link
Contributor Author

imjacobclark commented Jul 6, 2016

@aneeshusa I will port the functionality from the Python into upload_nightly.sh, there seems to be a few conflicts on this PR too which I'll resolve shortly.

@aneeshusa
Copy link
Member

aneeshusa commented Aug 10, 2016

#12088 merged so this is no longer blocked.

@imjacobclark are you still working on this? Do you have any questions?

@imjacobclark
Copy link
Contributor Author

imjacobclark commented Aug 10, 2016

@aneeshusa still working on this, had a bit of a hectic few weeks, however will pick this up again now. Pretty straightforward, I'll catch up on IRC if there are any issues.

@KiChjang
Copy link
Member

KiChjang commented Oct 13, 2016

@imjacobclark Is this still being worked on?

@ducks
Copy link
Contributor

ducks commented Oct 18, 2016

I'd like to help finish this one if it's up for grabs.

It looks like the datetime got moved to the upload_nightly.sh but still uses colons.
Was that the only outstanding change needed besides a rebase?

@aneeshusa
Copy link
Member

aneeshusa commented Oct 27, 2016

@rjgoldsborough Yes, please feel free to submit a PR for this!

This needs a rebase, but if you look at python/servo/package_commands.py you'll see we replace colons by dashes, which is also behavior we need to keep.

@wafflespeanut
Copy link
Member

wafflespeanut commented Nov 4, 2016

Closing based on inactivity (@rjgoldsborough has started working on it in #14058)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

8 participants
You can’t perform that action at this time.