Skip to content

Instantly share code, notes, and snippets.

View mockitoguy's full-sized avatar

Szczepan Faber mockitoguy

View GitHub Profile
mockito-scala$ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment Corretto-8.252.09.1 (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM Corretto-8.252.09.1 (build 25.252-b09, mixed mode)
mockito-scala$ ./build.sh
[info] Loading project definition from /Users/sfaber/mockito/mockito-scala/project
[info] Loading settings from build.sbt ...
[info] Set current project to root (in build file:/Users/sfaber/mockito/mockito-scala/)
@mockitoguy
mockitoguy / gist:2613e6c5dca705b9a1807fd07ca35226
Created January 16, 2017 15:17
Unable to find a usable idle daemon problem
mint build | [INFO] Running tabby-mctabface 'ligradle -Prelease=true -PallArtifacts build'
[INFO] Executing: -Prelease=true -PallArtifacts build
[INFO] Using versions:
[INFO] Environment: Gradle 2.12, JDK 1.8.0_40
[INFO] Gradle Plugins: gradle-python:1.1.3, ligradle-jvm:2.0.11
FAILURE: Build failed with an exception.
* What went wrong:
Unable to find a usable idle daemon. I have connected to 100 different daemons but I could not use any of them to run build: Build{id=03f3c492-230a-4020-a057-f2f700e44e0b.1, currentDir=/export/home/tester/hudson/data/workspace/MP_TRUNKDEV_MP_DEP/tabby-mctabface_c468178919b2d14cf31b1aa50fe6d9752daeb78a}. BuildActionParameters were DefaultBuildActionParameters{, currentDir=/export/home/tester/hudson/data/workspace/MP_TRUNKDEV_MP_DEP/tabby-mctabface_c468178919b2d14cf31b1aa50fe6d9752daeb78a, systemProperties size=53, envVariables size=116, logLevel=LIFECYCLE, daemonUsage=EXPLICITLY_ENABLED, continuous=false, interactive=false, injectedPluginClasspath=[]}.
@mockitoguy
mockitoguy / Shipkit Vision.md
Last active December 15, 2020 03:47
Shipkit Vision

Vision

Software developers spend all their creative energy on productive work. There is absolutely zero release overhead because all software is released automatically.

Mission

Encourage and help software developers set up their releases to be fully automated.

@mockitoguy
mockitoguy / gist:b5b5fb3d172ee2374d5c603edb0151ea
Created June 11, 2020 21:24
Gradle bug with incrementalScalaAnalysis
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':gobblin-kafka-streaming-validation-flows:incrementalScalaAnalysisFormain'.
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.wrapException(ErrorHandlingConfigurationResolver.java:104)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.access$000(ErrorHandlingConfigurationResolver.java:48)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver$ErrorHandlingResolutionResult.getRoot(ErrorHandlingConfigurationResolver.java:203)
at org.gradle.api.internal.artifacts.configurations.ResolveConfigurationResolutionBuildOperationResult.getRootComponent(ResolveConfigurationResolutionBuildOperationResult.java:60)
at com.gradle.scan.plugin.internal.b.e.a.h$a.b(SourceFile:116)
at com.gradle.scan.plugin.internal.b.e.a.h$a.a(SourceFile:70)
at com.gradle.scan.plugin.internal.b.e.a.h.a
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.gobblin</groupId>
<artifactId>gobblin-runtime</artifactId>
<version>0.15.0</version>
<name>Apache Gobblin (incubating)</name>
<description>A distributed data integration framework for streaming and batch data ecosystems.</description>
<url>https://gobblin.apache.org/</url>
<licenses>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.gobblin</groupId>
<artifactId>gobblin-all</artifactId>
<version>0.15.0</version>
<name>Apache Gobblin (incubating)</name>
<description>A distributed data integration framework for streaming and batch data ecosystems.</description>
<url>https://gobblin.apache.org/</url>
<licenses>
@mockitoguy
mockitoguy / gist:9490306af1bd082b2da78f75228e299d
Created February 10, 2020 14:31
BreadMoirai / github-release-gradle-plugin dependencies
Dependencies of BreadMoirai / github-release-gradle-plugin Gradle plugin:
> Task :buildEnvironment
------------------------------------------------------------
Root project
------------------------------------------------------------
classpath
\--- com.github.breadmoirai.github-release:com.github.breadmoirai.github-release.gradle.plugin:2.2.9
@mockitoguy
mockitoguy / gist:9138fb7373e6431be7a5fb063e711a40
Created February 9, 2017 18:48
Unable to find a usable idle daemon. I have connected to 100 different daemons
mint setup | [INFO] Running voyager-ios './scripts/setup.sh'
[INFO] Executing: clean reinit generate-static-app-def -Prelease=true
[INFO] Using versions:
[INFO] Environment: Gradle 3.3, JDK 1.8.0_40
[INFO] Gradle Plugins: client-typed-urn-generator:1.0.18, ligradle-jvm:2.0.22, lix-cleanup-plugin:0.1.20, mntf-ios-plugins:1.0.0, rum-ios:3.0.63, tracking-constants:0.1.4
FAILURE: Build failed with an exception.
* What went wrong:
Unable to find a usable idle daemon. I have connected to 100 different daemons but I could not use any of them to run the build. BuildActionParameters were DefaultBuildActionParameters{, currentDir=/export/home/tester/hudson/data/workspace/MP_TRUNKDEV_MP_DEP/voyager-ios_92b43ac4cc8751cc3fe08defaa544e0cc376caf8, systemProperties size=55, envVariables size=104, logLevel=LIFECYCLE, useDaemon=true, continuous=false, interactive=false, injectedPluginClasspath=[]}.
@mockitoguy
mockitoguy / gist:095a7f42ae1cd0c6b5e4420034fcfd05
Created November 28, 2018 20:59
Gradle dependency resolution bug
Result of "dependencyInsight" task:
com.fasterxml.jackson.core:jackson-core:2.8.3 (selected by rule)
variant "default" [
org.gradle.status = integration (not requested)
Requested attributes not found in the selected variant:
com.android.build.api.attributes.BuildTypeAttr = debug
org.gradle.usage = java-runtime
com.android.build.gradle.internal.dependency.AndroidTypeAttr = Aar
]
@mockitoguy
mockitoguy / 100K builds at LinkedIn.md
Created May 16, 2018 14:26
CodeOne '18 talk: "100K builds per day at LinkedIn"

100K builds per day at LinkedIn

Fast and reliable builds enable quicker commit-to-production cycles which are essential for developer productivity.

Build infrastructure at LinkedIn handles 100K builds daily, including local and CI builds. There are 3K engineers running builds, 5K machines (CI+local), 6K codebases, 500 Gradle Plugins. We never stop optimizing the speed, reliability and maintainability of our builds.

In this talk we zoom into:

  • common build infrastructure for diverse technology stacks
  • fast, reliable builds in large projects