Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@okartau
Copy link
Contributor

@okartau okartau commented Feb 24, 2017

Sometimes detailed build logs contain important information
which gets lost after failed build phase because we stop the pipeline.
Let's run publish part always, trying to copy out whatever we can.

@okartau okartau force-pushed the publish-logs-on-build-failure branch 5 times, most recently from c2f6841 to dd5a099 Compare February 24, 2017 17:04
rsync -qzrl --prune-empty-dirs --include "log.*" --include "*/" --exclude "*" ${_BRESULT}/work*/* ${_RSYNC_DEST}/detailed-logs/${TARGET_MACHINE}/
if [ -d ${_BRESULT}/work ]; then
create_remote_dirs ${_RSYNC_DEST} detailed-logs/${TARGET_MACHINE}/
rsync -qzrl --prune-empty-dirs --include "log.*" --include "*/" --exclude "*" ${_BRESULT}/work*/* ${_RSYNC_DEST}/detailed-logs/${TARGET_MACHINE}/
Copy link
Contributor

@mythi mythi Feb 27, 2017

Choose a reason for hiding this comment

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

I wonder should it be --include "log.do_*". log.* copies some python logs that are not task logs.

@okartau okartau added the CI label Feb 27, 2017
@okartau okartau force-pushed the publish-logs-on-build-failure branch from dd5a099 to 62724cf Compare February 27, 2017 11:55
@mythi
Copy link
Contributor

mythi commented Feb 27, 2017

test this please

Sometimes detailed build logs contain important information
which gets lost after failed build phase because we stop the pipeline.
Let's run publish part always, trying to copy out whatever we can.
Publish script needs another check for workdir existence to handle
all states without trouble.
Make detailed logs publish mask more exact to exclude irrelevant logs.
@okartau okartau force-pushed the publish-logs-on-build-failure branch from 62724cf to 134b0c7 Compare February 27, 2017 12:33
@okartau
Copy link
Contributor Author

okartau commented Feb 27, 2017

should we mark such incomplete file set, for example by adding a flag file with explanation as its name THIS_SET_INCOMPLETE_some_more_explanation,
to avoid confusion why there are incomplete published sets on server

@mythi
Copy link
Contributor

mythi commented Feb 27, 2017

This is good as it is now.

@mythi mythi merged commit ebb61c6 into intel:master Feb 27, 2017
@okartau okartau deleted the publish-logs-on-build-failure branch May 22, 2017 05:02
nagineni pushed a commit to nagineni/intel-iot-refkit that referenced this pull request Jun 26, 2017
* meta-iot-web 1e515ff...775f6c2 (6):
  > Merge pull request intel#46 from nagineni/update_restserver
  > iot-rest-api-server.bb: Update iot-rest-api-server to v0.5.0
  > Merge pull request intel#45 from nagineni/node_gcc_7
  > nodejs: Fix Node.js build errors with gcc7
  > Merge pull request intel#43 from TizenTeam/sandbox/pcoval/on/master/latest
  > nodejs: Fix FTBFS by adding missing argument to d.getVar

Signed-off-by: Sudarsana Nagineni <sudarsana.nagineni@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants