Skip to content

Instantly share code, notes, and snippets.

View hennevogel's full-sized avatar
🍻
Ewiger Feierabend

Henne Vogelsang hennevogel

🍻
Ewiger Feierabend
View GitHub Profile
frontend@95ef00803962:/obs/src/api> git status|tail
deleted: spec/cassettes/Webui_SearchController/GET_owner/warns_about_short_search_text.yml
deleted: spec/cassettes/Worker_StatusController/GET_/index/1_1_1.yml
deleted: spec/cassettes/Worker_StatusController/GET_/index/1_1_2.yml
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: spec/models/bs_request_action_spec.rb
@hennevogel
hennevogel / idea2done.md
Last active October 16, 2019 09:12
IdeaToDone

Phases of Development in the Build Solutions Team

When we want address a new field of work together as a team we go through the phases below. We track progress on our Opportunity Backlog.

Opportunities

Our PO (plus however is neded) takes an opportunity and gathers understanding of what the customers want and how we’re helping them. With this knowledge we build a story map with all the things you would need for a MVP/Skateboard/Walking Skeleton.

to Discovery

require ["copy","fileinto","imap4flags"];
# rule:[alerts]
if anyof (header :contains "subject" "[obs-errors] (100) [OBS Frontend][production]", header :contains "subject" "(100) [api.suse.de][production]", exists "X-Errbit-Comment-Author", header :is "subject" "[obs-errors] Job obs-server has exited with state 'failed'", header :contains "subject" "[obs-errors] Build failed in openQA", header :contains "subject" "[obs-errors] Build incomplete in openQA")
{
fileinto :copy "INBOX/alerts";
fileinto "INBOX/notifications";
stop;
}
# rule:[alerts-package-opensuse]
13:30:48 clock.1 | E, [2020-10-13T13:30:48.021540 #829] ERROR -- : class or module required (TypeError)
13:30:48 clock.1 | /obs/src/api/app/lib/backend/logger.rb:28:in `instance_of?'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/logger.rb:28:in `info'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/connection.rb:30:in `get'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/connection_helper.rb:50:in `http_get'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/api/build_results/worker.rb:11:in `status'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/remember_location.rb:15:in `call'
13:30:48 clock.1 | /obs/src/api/app/lib/backend/remember_location.rb:15:in `block in singleton_method_added'
13:30:48 clock.1 | /obs/src/api/app/models/worker_status.rb:40:in `update_workerstatus_cache'
13:30:48 clock.1 | /obs/src/api/config/clock.rb:23:in `block in <module:Clockwork>'
pull-request: # The workflow name
runs_on: pull_request # limits this workflow to this Github/Gitlab event
project: home:hennevogel:myfirstproject:$PR_NUMBER # operates on this project
prjconf: dist/obs/prjconf # Will add the content of this file inside the SCM as prjconf
steps:
repositories: # runs @project.repositores.create(...)
- project: openSUSE_Factory
repo: standard
arch: x86_64
flags: # runs @project.flags.create(...)
@token = Token::Workflow.new(scm_access_token: '$GITHUB_ACCESS_TOKEN')
Webhook comes in from github
@token.call
-> branch
-> create EventSubscription
-> Event::BuildFail for package blah happens
-> notify github with @token.scm_access_token
@hennevogel
hennevogel / steps.md
Last active September 21, 2021 13:00
workflow:
  steps:
    - branch_package:
        source_project: OBS:Server:Unstable
        source_package: obs-server
        repositories:
          openSUSE_15.3:
            - x86_64
 openSUSE_Factory:
@hennevogel
hennevogel / who.rb
Created September 28, 2021 14:13
Get the information logins via SSH key
# frozen_string_literal: true
# journalctl -u sshd --utc -o json --since "6 hours ago" | ruby who.rb
# written by Victor Pereira <vpereira@suse.com>
require 'json'
require 'open3'
require 'optparse'
class JournalLog
def self.parse
return [] if STDIN.tty?
@hennevogel
hennevogel / pg-gem_make.out
Last active February 9, 2022 15:19
pg compile error
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20220209-7003-7jrib8pg-1.3.1/gems/pg-1.3.1/ext
/usr/bin/ruby.ruby3.1 -I /usr/lib64/ruby/3.1.0 -r ./siteconf20220209-7003-dspmoi.rb extconf.rb
Calling libpq with GVL unlocked
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for whether -Wl,-rpath,/usr/lib/postgresql12/lib64 is accepted as LDFLAGS... yes
Using libpq from /usr/lib/postgresql12/lib64
checking for libpq-fe.h... yes
[8] pry(main)> request.auto_accept
run_as BEFORE
#current in ["/srv/www/obs/api/app/models/user.rb:247:in `session'", "/srv/www/obs/api/app/models/user.rb:869:in `run_as'", "/srv/www/obs/api/app/models/bs_request.rb:889:in `block in auto_accept'", "/srv/www/obs/api/app/models/bs_request.rb:883:in `auto_accept'", "(pry):8:in `__pry__'", "bin/rails:4:in `require'", "bin/rails:4:in `<main>'"]
#session=
#current in ["/srv/www/obs/api/app/models/user.rb:247:in `session'", "/srv/www/obs/api/app/models/user.rb:240:in `session!'", "/srv/www/obs/api/app/models/bs_request.rb:890:in `block (2 levels) in auto_accept'", "/srv/www/obs/api/app/models/user.rb:872:in `run_as'", "/srv/www/obs/api/app/models/bs_request.rb:889:in `block in auto_accept'", "/srv/www/obs/api/app/models/bs_request.rb:883:in `auto_accept'", "(pry):8:in `__pry__'", "bin/rails:4:in `require'", "bin/rails:4:in `<main>'"]
#current in ["/srv/www/obs/api/app/models/user.rb:247:in `session'", "/srv/www/obs/api/app/models/user.rb:240:in `session!'", "/srv/ww