Skip to content

Conversation

@JoshRosen
Copy link
Contributor

Due to the people.apache.org -> home.apache.org migration, we need to update our packaging scripts to publish artifacts to the new server. Because the new server only supports sftp instead of ssh, we need to update the scripts to use lftp instead of ssh + rsync.

@JoshRosen JoshRosen changed the title [SPARK-13474] Update packaging scripts to push artifacts to home.apache.org [SPARK-13474][PROJECT INFRA] Update packaging scripts to push artifacts to home.apache.org Feb 24, 2016
@SparkQA
Copy link

SparkQA commented Feb 24, 2016

Test build #51897 has finished for PR 11350 at commit 19d6e22.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 24, 2016

Test build #51900 has finished for PR 11350 at commit e43f7ac.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Argh, looks like I need to fix some LFTP problems. Hold off on merge or review for now.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #2580 has finished for PR 11350 at commit e43f7ac.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #51914 has finished for PR 11350 at commit 1bb9e02.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Feb 25, 2016

+1


if [ -n "$REMOTE_PARENT_MAX_LENGTH" ]; then
old_dirs=$($SSH $USER_HOST ls -t $REMOTE_PARENT_DIR | tail -n +$REMOTE_PARENT_MAX_LENGTH)
old_dirs=$(LFTP nlist $REMOTE_PARENT_DIR | sort | head -n +$REMOTE_PARENT_MAX_LENGTH)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It turns out that nlist will return ./ and ../, so we need to filter those out here.

$SSH $USER_HOST rm -f "$REMOTE_PARENT_DIR/latest"
$SSH $USER_HOST ln -s $dest_dir "$REMOTE_PARENT_DIR/latest"
LFTP rm -f "$REMOTE_PARENT_DIR/latest"
LFTP ln -s $dest_dir "$REMOTE_PARENT_DIR/latest"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The FTP protocol itself does not support symlinks and the older versions of lftp don't have the ln command. I'm going to work around this by uploading the binaries twice, once to the latest folder and once to the other one. With the symlink, at least the change to /latest appeared relatively atomic so you wouldn't see half-uploaded files in there. I'll try to work around this by uploading to dest_dir, moving, then uploading again. This isn't perfect but seems like a decent hack.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #51983 has finished for PR 11350 at commit 52fedd0.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

LFTP mv $dest_dir "$REMOTE_PARENT_DIR/latest"
# Re-upload a second time and leave the files in the timestamped upload directory:
LFTP mkdir -p $dest_dir
LFTP mput -O $dest_dir spark-*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I might need to quote the spark-* so that the parameter expansion is done by lftp rather than the shell.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #51986 has finished for PR 11350 at commit fc80ac7.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #51988 has finished for PR 11350 at commit 1aed97e.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 25, 2016

Test build #51995 has finished for PR 11350 at commit fde8346.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

This is now working for package snapshots; will test for doc snapshots soon. See https://home.apache.org/~pwendell/spark-nightly/spark-master-bin/ for what the results look like.

@SparkQA
Copy link

SparkQA commented Feb 26, 2016

Test build #51998 has finished for PR 11350 at commit 9ef4561.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 26, 2016

Test build #52004 has finished for PR 11350 at commit 36c3466.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 26, 2016

Test build #52020 has finished for PR 11350 at commit e448ae6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Woohoo! Doc publishing seems to be working now (albeit slowly), so this should be ready for a final sign-off and merge.

@SparkQA
Copy link

SparkQA commented Feb 26, 2016

Test build #52024 has finished for PR 11350 at commit dd2766a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Ping @marmbrus for sign-off, since this impacts your 1.6.1 RC. I'll backport this change to branch-1.6 so you can cut that branch.

@marmbrus
Copy link
Contributor

LGTM. Thanks for doing this!

@JoshRosen
Copy link
Contributor Author

I'm going to merge this into master and branch-1.6 so that I can begin packaging a 1.6.1 release candidate.

asfgit pushed a commit that referenced this pull request Feb 27, 2016
…ts to home.apache.org

Due to the people.apache.org -> home.apache.org migration, we need to update our packaging scripts to publish artifacts to the new server. Because the new server only supports sftp instead of ssh, we need to update the scripts to use lftp instead of ssh + rsync.

Author: Josh Rosen <[email protected]>

Closes #11350 from JoshRosen/update-release-scripts-for-apache-home.

(cherry picked from commit f77dc4e)
Signed-off-by: Josh Rosen <[email protected]>
@asfgit asfgit closed this in f77dc4e Feb 27, 2016
@JoshRosen JoshRosen deleted the update-release-scripts-for-apache-home branch February 27, 2016 02:42
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.

4 participants