-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-4000][BUILD] Sends archived unit tests logs to Jenkins master #2845
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
Conversation
QA tests have started for PR 2845 at commit
|
QA tests have finished for PR 2845 at commit
|
Test FAILed. |
echo "$log_files" | xargs tar czf ${log_archive} | ||
|
||
local jenkins_build_dir=${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER} | ||
local scp_output=$(scp ${log_archive} amp-jenkins-master:${jenkins_build_dir}/${log_archive}) |
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.
It's not good to hardcode Jenkins master hostname here. Should inject an extra environment variable $MASTER_NODE_NAME
in Jenkins configurations.
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.
I'm confused actually - is "amp-jenkins-master" the current hostname of the master machine?
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.
This hostname is accessible from Jenkins slave nodes.
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.
@liancheng I should be able to modify our pull request builders to inject this variable as JENKINS_MASTER_HOSTNAME
.
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.
Cool, thanks :)
QA tests have started for PR 2845 at commit
|
QA tests have finished for PR 2845 at commit
|
Test PASSed. |
Verified that the log archive was uploaded to the correct location in Jenkins master node. |
echo "> No log files found." >&2 | ||
else | ||
local log_archive="unit-tests-logs.tar.gz" | ||
echo "$log_files" | xargs tar czf ${log_archive} |
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.
Just wondering, will these appear in the tarfile under the full path (e.g. streaming/target/unit-tests.log)? That's ideal.
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.
Yes.
Overall this looks good, had a few minor questions. One thing we can do next is that we could scp the logs to a web server that we control (e.g. something under people.apache.org) and clean up the old ones every time we copy something over. |
Test build #21898 has started for PR 2845 at commit
|
Test build #21898 has finished for PR 2845 at commit
|
Test PASSed. |
@pwendell This should be ready to go. |
This looks good to me. @pwendell, any more feedback? I'd like to get this merged soon in order to help debug a few Jenkins failures. |
Alright, I've modified the pull request builder job to inject the master hostname as |
Merge away! On Thu, Oct 23, 2014 at 10:10 PM, Josh Rosen [email protected]
|
Alright, I'm going to merge this now and I'll hotfix the |
Shortcut / reminder for folks like me who don't know where JEKNINS_HOME is offhand: the paths to individual logs are like
|
This is a follow up of apache#2845. In addition to unit-tests.log files, also upload failure output files generated by `HiveCompatibilitySuite` to Jenkins master. These files can be very helpful to debug Hive compatibility test failures. /cc pwendell marmbrus Author: Cheng Lian <[email protected]> Closes apache#2993 from liancheng/upload-hive-compat-logs and squashes the following commits: 8e6247f [Cheng Lian] Uploads HiveCompatibilitySuite logs
This is a follow up of apache#2845. In addition to unit-tests.log files, also upload failure output files generated by `HiveCompatibilitySuite` to Jenkins master. These files can be very helpful to debug Hive compatibility test failures. /cc pwendell marmbrus Author: Cheng Lian <[email protected]> Closes apache#2993 from liancheng/upload-hive-compat-logs and squashes the following commits: 8e6247f [Cheng Lian] Uploads HiveCompatibilitySuite logs
This is a follow up of apache#2845. In addition to unit-tests.log files, also upload failure output files generated by `HiveCompatibilitySuite` to Jenkins master. These files can be very helpful to debug Hive compatibility test failures. /cc pwendell marmbrus Author: Cheng Lian <[email protected]> Closes apache#2993 from liancheng/upload-hive-compat-logs and squashes the following commits: 8e6247f [Cheng Lian] Uploads HiveCompatibilitySuite logs
This is a follow up of apache#2845. In addition to unit-tests.log files, also upload failure output files generated by `HiveCompatibilitySuite` to Jenkins master. These files can be very helpful to debug Hive compatibility test failures. /cc pwendell marmbrus Author: Cheng Lian <[email protected]> Closes apache#2993 from liancheng/upload-hive-compat-logs and squashes the following commits: 8e6247f [Cheng Lian] Uploads HiveCompatibilitySuite logs
This PR sends archived unit tests logs to the build history directory in Jenkins master, so that we can serve it via HTTP later to help debugging Jenkins build failures.
@pwendell @JoshRosen Please help review, thanks!