-
Notifications
You must be signed in to change notification settings - Fork 2
Configure OBS instance to perform Clang builds #9
Conversation
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 |
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 salt instance is doing other things. Please add something on the top of this file!
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.
Done
obs-server.sls
Outdated
@@ -1,4 +1,21 @@ | |||
install obs server packages: | |||
/etc/apt/sources.list: |
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 don't think we want to do that. We should instead add the repo into
/etc/apt/sources.list.d/ instead
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.
and you should use https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html
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.
OK. I am looking into it
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.
ping?
obs-server.sls
Outdated
host.present: | ||
- ip: 127.0.0.1 | ||
|
||
refresh_packages_db: |
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 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
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.
ping?
obs-server.sls
Outdated
- obs-build | ||
- fromrepo: stretch-backports | ||
|
||
install_libsolv_from_testing: |
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.
Please add a comment (or link to your blog post) explaining why we are doing that.
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.
Done
obs-server.sls
Outdated
- libsolvext0 | ||
- fromrepo: buster | ||
|
||
/usr/share/obs/api/Gemfile: |
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.
ditto
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.
Done
obs-server/check_new_uploads
Outdated
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') |
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.
why we are not doing that? (removing the email)
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.
No specific reason. I Just uncommented the lines :)
<configuration> | ||
<title>Debian LLVM OBS builder</title> | ||
<description> <p class="description"> | ||
The Debian LLVM OBS builder is used to both distribute upstream LLVM .deb packages |
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.
you can trim the description just to keep your part!
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.
Done
<disable_publish_for_branches>on</disable_publish_for_branches> | ||
<admin_email>unconfigured@openbuildservice.org</admin_email> | ||
<schedulers> | ||
<arch>armv7l</arch> |
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.
you are also remove arm devices
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.
Done
obs-server/sources.list
Outdated
@@ -0,0 +1,7 @@ | |||
deb http://httpredir.debian.org/debian stretch main |
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.
please remove this file
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.
ping?
obs-server/trigger_clang_build
Outdated
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' |
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.
please add this to this repo and use that. I would like to avoid external dependencies
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.
is it ok to add the tarballs here then?
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.
yeah, better than on thirdparty website.
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.
Done.
We rather not depend on external links to fetch our dependencies, hence we add the package sources in our repository.
Since we are enabling backports and testing repositories, we want stretch to have a higher preference so other packages are installed in their stable version.
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.