Skip to content

Instantly share code, notes, and snippets.

Avatar
🍻
Ewiger Feierabend

Henne Vogelsang hennevogel

🍻
Ewiger Feierabend
View GitHub Profile
View Sprint 48.md
@hennevogel
hennevogel / Scrum2StoryMap.md
Last active Sep 13, 2018
From SCRUM to Story Mapping
View Scrum2StoryMap.md

Definition of Understood

When have we really understood something? What do we need at least to talk about?

  • Really talk about who
  • Really talk about what
  • Really talk about why
  • Talk about what’s going on outside the software
  • Talk about what can go wrong
  • Talk about questions and assumptions
  • Talk about best solutions
@hennevogel
hennevogel / status-api.md
Last active Aug 28, 2018
Status API Design
View status-api.md

For simplicity I have abbreviated $BUCKET. For instance a Repository get's published a lot of times so it has many $BUCKETs (called Status::RepositoryPublished currently). Checks for a certain Package commit would need the same pattern. On the other hand a BsRequest only get's created once, so it is the $BUCKET.

Use existing routing...

This is how we are currently would do it. We have some special $BUCKET called _status.

Repository

  • GET /build/:project_name/:repository_name/_status -> Status::Checks for latest $BUCKET for Repository
  • GET /build/:project_name/:repository_name/_status/:bucket_id -> List Status::Checks for $BUCKET
  • PUT /build/:project_name/:repository_name/_status/:bucket_id -> Create Status::Checks for $BUCKET
View gist:54788e29fdd8ad68ca0cf6ac4c7eca16
our $publish_fvogt = '/srv/obs/bin/publish_fvogt';
our $publish_hennevogel = '/srv/obs/bin/publish_hennevogel';
our $publishedhook = {
};
{
my @all_dists = qw(openSUSE_Leap_15.0 SLE_15);
foreach my $repo (qw(home:fvogt)) {
View publish_hooks.pl
our $publish_whatever = '/usr/local/bin/publish_to_whatever';
our $publishedhook = {
};
{
my @all_dists = qw(openSUSE_Tumbleweed SLE12-SP3);
foreach my $repo (qw(some:project some:other:project)) {
foreach my $dist (@all_dists) {
$publishedhook->{$repo.'/'.$dist} = $publish_whatever;
View EventSubscriptions.rb
Event::CommentForProject
Event::Subscription -> Event::CommentForProject
-> User/Group
Event.all each do | event |
Event::CommentForProject > Event::Subscription > *User* > do something
end
View zypper-ref.log
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypper] main.cc(main):74 ===== Hi, me zypper 1.13.28
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypper] main.cc(main):75 ===== 'zypper' 'ref' '-f' =====
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(_autodetectSystemArchitecture):73 Uname architecture is 'x86_64'
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(_autodetectTextLocale):209 Default text locale is 'en'
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(Impl):341 libzypp: 16.13.0
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypp] IniParser.cc(parse):84 Start parsing /etc/zypp/zypp.conf[g___]
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zypp] IniParser.cc(parse):138 Done parsing /etc/zypp/zypp.conf[_eF_]
2017-09-05 10:03:41 <1> 0242a1142d89(563) [Progress++] ProgressData.cc(report):88 {#1|/etc/zypp/zypp.conf}END
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfig.cc(Impl):605 ZConfig singleton created.
2017-09-05 10:03:41 <1> 0242a1142d89(563) [zconfig] ZConfi
View zypper.log
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypper] main.cc(main):74 ===== Hi, me zypper 1.13.28
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypper] main.cc(main):75 ===== 'zypper' '-n' 'install' '--no-recommends' '--replacefiles' 'obs-server' 'obs-signd' 'obs-service-download_src_package' 'obs-service-download_files' 'obs-service-download_url' 'obs-service-format_spec_file' 'obs-service-kiwi_import' 'perl-Devel-Cover' 'osc' =====
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(_autodetectSystemArchitecture):73 Uname architecture is 'x86_64'
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(_autodetectTextLocale):209 Default text locale is 'en'
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zconfig] ZConfig.cc(Impl):341 libzypp: 16.13.0
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypp] IniParser.cc(parse):84 Start parsing /etc/zypp/zypp.conf[g___]
2017-09-05 09:47:35 <1> 0242a1142d89(41) [zypp] IniParser.cc(parse):138 Done parsing /etc/zypp/zypp.conf[_eF_]
2017-09-05 09:47:35 <1> 0242a1142d89(4
View blah.pl
use Net::Domain;
use Socket;
my $frontend="frontend";
# If defined, restrict access to the backend servers (bs_repserver, bs_srcserver, bs_service)
our $ipaccess = {
'127\..*' => 'rw', # only the localhost can write to the backend
"^$ip" => 'rw', # Permit IP of FQDN
'.*' => 'worker', # build results can be delivered from any client in the network
@hennevogel
hennevogel / ESADO.v2.md
Last active Jul 20, 2017 — forked from mdeniz/ESADO.md
Event System Architectural Design Options