Skip to content

Instantly share code, notes, and snippets.

View mockitoguy's full-sized avatar

Szczepan Faber mockitoguy

View GitHub Profile
@mockitoguy
mockitoguy / gist:bb35663ad7e008f73bcf
Created August 27, 2015 23:33
large logs interleaving with small logs
-rw-r--r-- 1 tester staff 32233 Aug 27 16:22 daemon-1143.out.log
-rw-r--r-- 1 tester staff 2554 Aug 27 16:21 registry.bin
-rw-r--r-- 1 tester staff 17 Aug 27 16:21 registry.bin.lock
-rw-r--r-- 1 tester staff 29622 Aug 27 16:14 daemon-15480.out.log
-rw-r--r-- 1 tester staff 103162100 Aug 27 16:13 daemon-2866.out.log
-rw-r--r-- 1 tester staff 29629 Aug 27 15:30 daemon-15661.out.log
-rw-r--r-- 1 tester staff 108478716 Aug 27 15:29 daemon-1163.out.log
-rw-r--r-- 1 tester staff 29819 Aug 27 14:52 daemon-15487.out.log
-rw-r--r-- 1 tester staff 108324669 Aug 27 14:51 daemon-1587.out.log
-rw-r--r-- 1 tester staff 28087 Aug 27 14:21 daemon-1253.out.log
@mockitoguy
mockitoguy / gist:5ae5cb3a4c544c4f97ca
Created August 27, 2015 23:34
minimal log - daemon created but no build request received
19:24:17.876 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[uid=5456e6dc-5c08-4944-9bb7-430ce9ccda76,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home,daemonRegistryDir=/export/home/tester/.gradle/daemon,pid=856,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
19:24:17.880 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] updating lastActivityAt to 1439519057880
19:24:17.908 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface awdl0
19:24:17.908 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
19:24:17.909 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
19:24:17.909 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFa
@mockitoguy
mockitoguy / gist:440cb4c3c70cd37e6759
Created August 28, 2015 14:32
last daemon log before the crash 12:24
12:24:40.057 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[uid=0d4ed252-ca18-4b70-bdc2-ea9da2449ef0,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home,daemonRegistryDir=/export/home/tester/.gradle/daemon,pid=15142,idleTimeout=120000,daemonOpts=-Xmx2g,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
12:24:40.061 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] updating lastActivityAt to 1440703480061
12:24:40.073 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface awdl0
12:24:40.074 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
12:24:40.074 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
12:24:40.074 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /fe80:0:0:0:811:c0ff:fe1f
@mockitoguy
mockitoguy / gist:1e41a7816f06e7560f95
Created August 28, 2015 16:27
setup.sh script that effectively calls 'ligradle reinit'
#!/bin/bash
PROD_BUILD_FLOW_FOR_WC_TEST_ENABLED=false
if cat product-spec.json | grep '"prodBuildFlowForWcTest": true'; then
PROD_BUILD_FLOW_FOR_WC_TEST_ENABLED=true
fi
# disable distributed tests and builds for wc-test to free up capacity
if [[ $BUILD_CATEGORY = "WC-TEST" ]] && ! $PROD_BUILD_FLOW_FOR_WC_TEST_ENABLED; then
./scripts/modify_product_spec.py --remove-distributed-pcs --remove-multi-variant-build
exit $?
@mockitoguy
mockitoguy / gist:18038c773dfad4867390
Created September 1, 2015 04:24
debug output from successful warming up the daemon
19:25:36.672 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface awdl0
19:25:36.673 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
19:25:36.676 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
19:25:36.677 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /fe80:0:0:0:48a8:7eff:fe32:e9d3%awdl0
19:25:36.677 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote multicast interface awdl0
19:25:36.678 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface en0
19:25:36.678 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
19:25:36.679 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
19:25:36.679 [
@mockitoguy
mockitoguy / gist:c7e5027292faaf7c26fe
Created September 2, 2015 16:50
debug and error output from the daemon issue
1. error output:
Warming up Gradle daemon to hunt down TOOLS-69512, writing output to ligradle-debug-output.log
[INFO] Using gradle version: 2.6, Rum version: 3.18.36, JDK version: 1.8.0_40
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
13:33:14.662 [ERROR] [org.gradle.BuildExceptionReporter]
13:33:14.663 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:33:14.663 [ERROR] [org.gradle.BuildExceptionReporter]
13:33:14.663 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
@mockitoguy
mockitoguy / gist:ad08cbd42928b732abe3
Created September 24, 2015 22:32
lh-performance build failure
[sfaber@sfaber-ld1 babylonia_trunk]$ ligradle -v
[INFO] Using gradle version: 2.8p, Rum version: 3.18.62-SNAPSHOT, JDK version: 1.8
[INFO] Using the 3.18.62-SNAPSHOT init script found in ~/local-repo
------------------------------------------------------------
Gradle 2.8-20150924215114+0000
------------------------------------------------------------
Build time: 2015-09-24 21:51:14 UTC
Build number: none
public class SelfConfiguredBeanDynamicObject extends BeanDynamicObject {
private final String name;
public SelfConfiguredBeanDynamicObject(String name, Object bean) {
super(bean);
this.name = name;
}
@Override
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -DintegTest.samplesdir=/Users/szczepan/gradle/gradle.src/subprojects/docs/build/samples -DintegTest.gradleHomeDir=/Users/szczepan/gradle/gradle.src/build/integ test -ea -Dorg.gradle.integtest.executer=embedded -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA 10 CE.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 10 CE.app/plugins/junit/lib/junit-rt.jar:/System/Library/Java/Support/CoreDeploy.bundle/Contents/Resources/Java/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/li
@mockitoguy
mockitoguy / gist:1654211
Created January 21, 2012 22:03
debug output from dependency resolution
18:14:48.977 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] <root> | com.linkedin.cloud#cloud-impl;1.1.0-SNAPSHOT(compile) -> com.linkedin.network.member2#member2-event-adapter-impl;0.0.1138-BR_REL_1138_332750([default]) | com.linkedin.network.member2#member2-event-adapter-impl;0.0.1138-BR_REL_1138_332750(default) -> com.linkedin.network.repdb#repdb-api;0.0.1138-BR_REL_1138_332750([compile(default), runtime(default), default]) | com.linkedin.network.repdb#repdb-api;0.0.1138-BR_REL_1138_332750(runtime) -> com.linkedin.network.member2#member2-databus-api;0.0.1138-BR_REL_1138_332750([compile(default), runtime(default)]) | com.linkedin.network.member2#member2-databus-api;0.0.1138-BR_REL_1138_332750(compile) -> com.linkedin.network.company#company-api;0.0.1138-BR_REL_1138_332750([compile(default)]) | com.linkedin.network.company#company-api;0.0.1138-BR_REL_1138_332750(compile) -> com.linkedin.network.company#company-bizprofile-dm-api;0.0.1138-BR_REL_1138_332750([compile