Skip to content

Instantly share code, notes, and snippets.

View adamjez's full-sized avatar

Adam Jež adamjez

  • Notino
  • Brno
View GitHub Profile
@adamjez
adamjez / test-investigation_blog-post.md
Last active February 11, 2026 20:01
A Test Failure That Looked Like a Race Condition

A Test Failure That Looked Like a Race Condition

Generated by Opus 4.6

The Symptom

Our integration tests started failing. Not all of them, not consistently, and not when run individually. Only when multiple tests ran together, some would fail - some with unexpected HTTP status codes, others with assertion errors where the API returned different data than expected.

It looked like a classic race condition. It appeared out of nowhere. It worked on other developers' machines. It worked in CI pipelines. Only my local machine was affected.

@adamjez
adamjez / presence_light_blueprint.yaml
Last active December 15, 2024 21:19
Improved presence light blueprint
blueprint:
name: Presence Light
description: Turn on a light when presence is detected.
domain: automation
input:
presence_entity:
name: Presence Sensor
description: Presence sensor device
selector:
entity:
@adamjez
adamjez / presence_light_blueprint.yaml
Last active July 23, 2025 16:58
Home Assistant blueprint for Presence Activated Light automation
blueprint:
name: Presence Light
description: Turn on a light when presence is detected.
domain: automation
input:
presence_entity:
name: Presence Sensor
description: Presence sensor device
selector:
entity:
@adamjez
adamjez / resource-registration-dotvvm.md
Last active January 30, 2018 12:29
Fluent API Interface prototype for resource registration in DotVVM
public static class Program
{
    public static void Main(DotvvmResourceRepository resources)
    {
        // -----------------------------------------
        // ------------------ OLD ------------------
        // -----------------------------------------
        resources.Register("FeatureSamples_Resources_CdnScriptPriority", new ScriptResource {
            Location = new FileResourceLocation("~/Scripts/testResource.js"),
BenchmarkDotNet=v0.10.5, OS=ubuntu 16.04
Processor=Intel Xeon CPU E5-2660 0 2.20GHz, ProcessorCount=2
Frequency=1000000000 Hz, Resolution=1.0000 ns, Timer=UNKNOWN
dotnet cli version=2.0.0-preview2-005905
  [Host]     : .NET Core 4.6.25226.02, 64bit RyuJIT
  DefaultJob : .NET Core 4.6.25226.02, 64bit RyuJIT
BenchmarkDotNet=v0.10.5, OS=ubuntu 16.04
Processor=Intel Xeon CPU E5-2660 0 2.20GHz, ProcessorCount=2
Frequency=1000000000 Hz, Resolution=1.0000 ns, Timer=UNKNOWN
dotnet cli version=1.0.3
  [Host]     : .NET Core 4.6.25009.03, 64bit RyuJIT
  DefaultJob : .NET Core 4.6.25009.03, 64bit RyuJIT