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

handle save_y2logs when content modified when creating tarball #1145

Merged
merged 4 commits into from Mar 8, 2021

Conversation

jreidinger
Copy link
Member

@jreidinger jreidinger commented Mar 8, 2021

How it looks now ( easy to reproduce with Y2DEBUG=1 and slide show ):
save_y2logs_modified

@coveralls
Copy link

coveralls commented Mar 8, 2021

Coverage Status

Coverage remained the same at 40.522% when pulling 5d9267a on fix_save_y2logs into 0f5b704 on master.

err=$?

rm -rf $TMPDIR

# tar returns 1 when content of tarball is older then current system. Happen when something still writting to logs or memsampler (bsc#1182710#c2)
[ $err == 1 ] && echo "Warning: logs modified during save. Yast is probably running. Content of tarball can be older then current content." >&2 && err=0
Copy link
Contributor

Choose a reason for hiding this comment

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

older than
(user message, so not just NP)

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, will fix

err=$?

rm -rf $TMPDIR

# tar returns 1 when content of tarball is older then current system. Happen when something still writting to logs or memsampler (bsc#1182710#c2)
Copy link
Contributor

Choose a reason for hiding this comment

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

NP: older than the current system

Copy link
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

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

LGTM

@jreidinger jreidinger merged commit b07191c into master Mar 8, 2021
@jreidinger jreidinger deleted the fix_save_y2logs branch March 8, 2021 16:54
@yast-bot
Copy link
Contributor

yast-bot commented Mar 8, 2021

✔️ Public Jenkins job #289 successfully finished
✔️ Created OBS submit request #877785

@yast-bot
Copy link
Contributor

yast-bot commented Mar 8, 2021

✔️ Internal Jenkins job #149 successfully finished
✔️ Created IBS submit request #237604

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.

None yet

4 participants