Skip to content

Instantly share code, notes, and snippets.

View mbiarnes's full-sized avatar

Michael Biarnés Kiefer mbiarnes

  • Red Hat
  • Cardedeu - Barcelona
View GitHub Profile
mbiarnes@mbiarnes ~ $ KRB5_TRACE=/dev/stderr curl --negotiate -u: -v https://errata.devel.redhat.com/advisory/125515.json
* Trying 10.30.44.234:443...
* Connected to errata.devel.redhat.com (10.30.44.234) port 443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
* CApath: none
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
@mbiarnes
mbiarnes / error.log
Created November 20, 2023 09:26
error displayed before the merge
Traceback (most recent call last):
File "/usr/bin/doozer", line 33, in <module>
sys.exit(load_entry_point('rh-doozer==2.2.1.dev158+gfad87d91', 'console_scripts', 'doozer')())
File "/usr/bin/doozer", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
@mbiarnes
mbiarnes / response.json
Created November 20, 2023 09:22
response of curl: curl 'localhost:8080/api/v1/pipeline-image?starting_from=github&name=hypershift&version=4.10'
{
"status":"success",
"payload":{
"openshift_version":"4.10",
"github_repo":"hypershift",
"upstream_github_url":"https://github.com/openshift/hypershift",
"private_github_url":"https://github.com/openshift-priv/hypershift",
"distgit":[
{
@mbiarnes
mbiarnes / gist:802608d711a28e617e82b57115ea10a1
Created September 6, 2023 06:16
Jenkins asyncronous resource disposer
Also: java.nio.file.FileSystemException: /home/jenkins/workspace/KIE/kogito-2.x/2.x/nightly/kogito-apps.build-and-deploy_ws-cleanup_1693980503544/bc/kiegroup_kogito-apps/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/integration-tests-sw/target/classes/META-INF/resources/persistence/protobuf: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:254)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:276)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2080)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRe
{
"action": "opened",
"number": 3142,
"pull_request": {
"url": "https://api.github.com/repos/kiegroup/kogito-runtimes/pulls/3142",
"id": 1451433809,
"node_id": "PR_kwDOCmO1Vc5Wgx9R",
"html_url": "https://github.com/kiegroup/kogito-runtimes/pull/3142",
"diff_url": "https://github.com/kiegroup/kogito-runtimes/pull/3142.diff",
"patch_url": "https://github.com/kiegroup/kogito-runtimes/pull/3142.patch",
{
"url": "https://api.github.com/repos/kiegroup/kogito-runtimes/pulls/3123",
"id": 1436884613,
"node_id": "PR_kwDOCmO1Vc5VpR6F",
"html_url": "https://github.com/kiegroup/kogito-runtimes/pull/3123",
"diff_url": "https://github.com/kiegroup/kogito-runtimes/pull/3123.diff",
"patch_url": "https://github.com/kiegroup/kogito-runtimes/pull/3123.patch",
"issue_url": "https://api.github.com/repos/kiegroup/kogito-runtimes/issues/3123",
"number": 3123,
"state": "open",
}, powerstate=1, vmState=active, metadata={jenkins-template-name=rhos-d-kie-rhel8-large-osbs-podman, jenkins-identity=6cb8ffea7804417ba04925da76b6a9ec1627488d, jenkins-scope=node:rhos-d-kie-rhel8-large-osbs-podman-787:912528017, jenkins-instance=https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/, jenkins-cloud-name=rhos-d, jenkins-boot-source=Image kie-rhel8-podman-latest, jenkins-boot-image-id=255ce43b-4ec8-4123-86ce-0e80d80a7fb4}}
2023-07-21 06:45:19.479+0000 [id=39] INFO j.p.o.compute.JCloudsSlave#createComputer: Creating a new computer for rhos-d-kie-rhel8-large-osbs-podman-787
2023-07-21 06:45:19.485+0000 [id=39] INFO hudson.slaves.NodeProvisioner#update: rhos-d-kie-rhel8-large-osbs-podman provisioning successfully completed. We have now 20 computer(s)
[07/21/23 06:45:22] SSH Launch of rhos-d-kie-rhel8-large-osbs-podman-787 on 10.0.102.56 completed in 3,393 ms
2023-07-21 06:45:56.588+0000 [id=278228] INFO o.j.p.ghprb.GhprbRootAction#handleAction: Checking issue comment 'hydraUmb
{
"action": "created",
"issue": {
"url": "https://api.github.com/repos/kiegroup/kogito-runtimes/issues/3123",
"repository_url": "https://api.github.com/repos/kiegroup/kogito-runtimes",
"labels_url": "https://api.github.com/repos/kiegroup/kogito-runtimes/issues/3123/labels{/name}",
"comments_url": "https://api.github.com/repos/kiegroup/kogito-runtimes/issues/3123/comments",
"events_url": "https://api.github.com/repos/kiegroup/kogito-runtimes/issues/3123/events",
"html_url": "https://github.com/kiegroup/kogito-runtimes/pull/3123",
"id": 1807285760,
@mbiarnes
mbiarnes / gist:205ae76c987ad17b54358f71ac372aec
Last active July 19, 2023 06:57
used pipeline (copied from Jenkinsfle.buildchain)
@Library('jenkins-pipeline-shared-libraries')_
import org.kie.jenkins.MavenCommand
import org.kie.jenkins.MavenSettingsUtils
agentLabel = 'kie-rhel8-priority && !built-in'
timeoutValue = env.ADDITIONAL_TIMEOUT?.trim() ?: '180'
jdkTool = env.BUILD_JDK_TOOL
mavenTool = env.BUILD_MAVEN_TOOL
void umbToGHPRB(String umbMessage, String repositoryName, String pullRequestId) {
if(umbMessage?.trim()) {
def ghrprbToGHAPIPRMap = [
'ghprbSourceBranch' : 'head.ref',
'ghprbTargetBranch' : 'base.ref',
'ghprbPullId' : 'number',
'ghprbGhRepository' : 'repo.full_name',
'ghprbPullLink' : 'html_url',
'ghprbAuthorRepoGitUrl' : 'head.repo.clone_url',
'ghprbCommentBody' :'body',