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

Configure OBS instance to perform Clang builds #9

Merged
merged 11 commits into from Aug 22, 2018

Conversation

@athos-ribeiro
Copy link
Contributor

athos-ribeiro commented Aug 14, 2018

This commit ports the salt states available at
https://github.com/athos-ribeiro/salt-obs to provision
irill8.siege.inria.fr with capabilities to monitor Debian
archives and trigger builds for newly accepted packages
substituting GCC for Clang binaries.

athos-ribeiro and others added 2 commits Aug 14, 2018
This commit ports the salt states available at
https://github.com/athos-ribeiro/salt-obs to provision
irill8.siege.inria.fr with capabilities to monitor Debian
archives and trigger builds for newly accepted packages
substituting GCC for Clang binaries.
README.md Outdated
@@ -0,0 +1,17 @@
# Open Build Service at irill8.siege.inria.fr

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

This salt instance is doing other things. Please add something on the top of this file!

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

Done

@@ -1,4 +1,21 @@
install obs server packages:
/etc/apt/sources.list:

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

I don't think we want to do that. We should instead add the repo into
/etc/apt/sources.list.d/ instead

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

OK. I am looking into it

This comment has been minimized.

@sylvestre

sylvestre Aug 20, 2018 Contributor

ping?

host.present:
- ip: 127.0.0.1

refresh_packages_db:

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

This isn't necessary, add a repo the salt way will do it
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html

This comment has been minimized.

@sylvestre

sylvestre Aug 20, 2018 Contributor

ping?

- obs-build
- fromrepo: stretch-backports

install_libsolv_from_testing:

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

Please add a comment (or link to your blog post) explaining why we are doing that.

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

Done

- libsolvext0
- fromrepo: buster

/usr/share/obs/api/Gemfile:

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

ditto

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

Done

if (pkg['dist'] in ['unstable', 'sid']) and 'source' in pkg['arch']:
trigger_build(pkg)
# Uncomment the following lines if you want to remove the email afterwards
# M.store(num, '+FLAGS', '\\Deleted')

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

why we are not doing that? (removing the email)

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

No specific reason. I Just uncommented the lines :)

<configuration>
<title>Debian LLVM OBS builder</title>
<description> &lt;p class="description"&gt;
The Debian LLVM OBS builder is used to both distribute upstream LLVM .deb packages

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

you can trim the description just to keep your part!

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

Done

<disable_publish_for_branches>on</disable_publish_for_branches>
<admin_email>unconfigured@openbuildservice.org</admin_email>
<schedulers>
<arch>armv7l</arch>

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

you are also remove arm devices

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

Done

@@ -0,0 +1,7 @@
deb http://httpredir.debian.org/debian stretch main

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

please remove this file

This comment has been minimized.

@sylvestre

sylvestre Aug 20, 2018 Contributor

ping?

echo 'Preparing obs-service-clang-build package...'
mkdir obs-service-clang-build
cd obs-service-clang-build/
wget 'https://www.ime.usp.br/~athoscr/files/obs/obs-service-clang-build_0.1-1.debian.tar.xz'

This comment has been minimized.

@sylvestre

sylvestre Aug 14, 2018 Contributor

please add this to this repo and use that. I would like to avoid external dependencies

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 14, 2018 Author Contributor

is it ok to add the tarballs here then?

This comment has been minimized.

@sylvestre

sylvestre Aug 20, 2018 Contributor

yeah, better than on thirdparty website.

This comment has been minimized.

@athos-ribeiro

athos-ribeiro Aug 20, 2018 Author Contributor

Done.

@sylvestre sylvestre merged commit 30c7d48 into opencollab:master Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.