Skip to content

Instantly share code, notes, and snippets.

View kohsuke's full-sized avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
#include <OWL.h>
#include <Dialog.h>
#include <Button.h>
#define HAIWIDTH (24) //牌の幅(Local)
#define HAIHEIGHT (30) //牌の高さ(Local)
#define STANDARDWIDTH (10*HAIWIDTH+64+192+16) //画面の幅
#define STANDARDHEIGHT (HAIHEIGHT*13+GetSystemMetrics(SM_CYMENU) \
+GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYBORDER)*2+32)
//画面の高さ
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="foo.FooTest" time="0" tests="3" errors="0" skipped="0" failures="1">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="/usr/local/jdk1.8.0_144/jre/lib/amd64"/>
<property name="java.vm.version" value="25.144-b01"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="maven.multiModuleProjectDirectory" value="/home/kohsuke/ws/launchable/test"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=":"/>
hello
[2019-11-20T20:24:13.550Z] + groovy -Dgrape.config=./grapeConfig.xml ./lib/runner.groovy jdk.groovy
[2019-11-20T20:24:16.390Z] loading dependencies...done
[2019-11-20T20:24:18.920Z] Nov 20, 2019 8:14:59 PM com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
[2019-11-20T20:24:18.920Z] WARNING: Script is not JavaScript (type: text/xml, language: ). Skipping execution.
[2019-11-20T20:24:19.179Z] Nov 20, 2019 8:14:59 PM com.gargoylesoftware.htmlunit.javascript.host.Document jsxFunction_createElement
[2019-11-20T20:24:19.179Z] SEVERE: Unexpected exception occurred while parsing HTML snippet
[2019-11-20T20:24:19.179Z] Nov 20, 2019 8:14:59 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
[2019-11-20T20:24:19.179Z] SEVERE: runtimeError: message=[Unexpected exception occurred while parsing HTML snippet: input name="x"] sourceName=[https://www.oracle.com/us/assets/prototype-1.7.2.0.js] line=[2092] lineSource=[null] lineOffset=[0]
[2019-11-20T20:24:19.438Z] Nov 20, 2019 8:14:59 PM
@kohsuke
kohsuke / stuck.log
Last active August 6, 2019 15:35
With surefire 2.20.1
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[INFO] Scanning for projects...
[INFO]
@kohsuke
kohsuke / release.log
Created August 6, 2019 04:51
2.188 stuck
% mvn test -Dtest=jenkins.triggers.TriggerTest
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[INFO] Scanning for projects...
@kohsuke
kohsuke / diff.patch
Last active September 17, 2018 22:40
diff --git a/distribution/client/package-lock.json b/distribution/client/package-lock.json
index d6222a0..d45aeee 100644
--- a/distribution/client/package-lock.json
+++ b/distribution/client/package-lock.json
@@ -6756,27 +6756,11 @@
}
},
"original": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/original/-/original-1.0.0.tgz",
@kohsuke
kohsuke / tree
Last active May 21, 2018 14:03
failure-0521.log
[INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] [INFO] Forking Jenkins cli 2.123
[INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] [INFO]
[INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:display-info (display-info) @ cli ---
[INFO] [INFO] Maven Version: 3.5.3
[INFO] [INFO] JDK Version: 1.8.0_144 normalized as: 1.8.0-144
[INFO] [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 4.4.0-121-generic
[INFO] [INFO]
[INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (display-info) @ cli ---
import java.util.concurrent.TimeUnit;
def c = 0;
def w = TimeUnit.DAYS.toMillis(3)
def threshold = new Date().time - w
Jenkins.instance.getAllItems(Job.class).each { j ->
for (b=j.lastBuild; b!=null; b=b.previousBuild) {
if (b.timeInMillis<threshold) break;
c += b.duration;
@kohsuke
kohsuke / Jenkins.java
Created September 2, 2017 22:38
Failure indicating the remoting is overridden
// TODO pending move to standard blacklist, or API to append filter
if (System.getProperty(ClassFilter.FILE_OVERRIDE_LOCATION_PROPERTY) == null) { // not using SystemProperties since ClassFilter does not either
try {
Field blacklistPatternsF = ClassFilter.DEFAULT.getClass().getDeclaredField("blacklistPatterns");
blacklistPatternsF.setAccessible(true);
Object[] blacklistPatternsA = (Object[]) blacklistPatternsF.get(ClassFilter.DEFAULT); // <<-- Line 911
boolean found = false;
for (int i = 0; i < blacklistPatternsA.length; i++) {
if (blacklistPatternsA[i] instanceof Pattern) {