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

osc:build: Avoid piping "yes" when build root is broken #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mvidner
Copy link
Member

@mvidner mvidner commented Aug 15, 2017

@mvidner
Copy link
Member Author

mvidner commented Aug 15, 2017

If you wonder about the other yes | left in the code, see 1cb27bc.

command << " --root=/var/tmp/build-root-#{build_dist}"
command << " --root=#{broot}"
# avoid an interactive question, bsc#1053839
if File.exist?("#{broot}/not-ready")
Copy link
Member

Choose a reason for hiding this comment

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

ugh, what? who create file? where it is documented? any documentation for that not-ready file would be good. Do not forget that this packaging rake tasks is used for multiple projects, not only libstorage or yast.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I see your point.

This PR replaces a yes | workaround by something which is still a workaround. not-ready is an implementation detail of init_buildsystem, which is part of build.rpm, on which osc depends.

I considered init_buildsystem a more stable thing than osc. Do you think we should press to have https://bugzilla.suse.com/show_bug.cgi?id=1053839 fixed instead?

Copy link
Member

Choose a reason for hiding this comment

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

upstream fixes is always nice to have :), but if you document this, I am, also fine with this File exists stuff

@@ -159,12 +159,17 @@ namespace :osc do
Dir.chdir osc_checkout_dir do
puts "building package..." if verbose

# pipe yes to osc build to automatic rebuild broken build root if it happen
command = "yes | osc -A '#{obs_api}' build"
# have separated roots per target system, so sharing is more efficient
Copy link
Member

Choose a reason for hiding this comment

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

I see twice identical comment, see line 167

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

2 participants