OSS
Posts in OSS
Contributing to JUnit, Part 4: Writing the Release Note, Addressing the Maintainer's Review, and Getting Merged
—viewsI wrap up the last stretch of JUnit PR #6281. I added my change to the 6.2.0-M2 release notes, which are written in AsciiDoc, then added the cancellation scenario tests the maintainer asked for in the full review, until the PR got merged.
Contributing to Jetty, Part 2: Real Server Tests, Writing the Docs, and Opening the PR
—viewsI wrap up the remaining work on Jetty issue #14362. I tested that a real server using QueuedThreadPool with a virtual ThreadFactory handles 100 requests within the cap, then documented how to limit virtual thread creation with QueuedThreadPool and opened PR #16207.
Contributing to Hibernate ORM, Part 1: Analyzing the ClassCastException Caused by a Criteria Subquery Type Mismatch and Opening a PR
—viewsA record of analyzing Hibernate ORM issue HHH-18831 and opening a PR. I look at why, starting with Hibernate 6, a mismatch between a Criteria subquery's declared type and its actual select type blows up with a ClassCastException in an unrelated place, using the query processing structures of Hibernate 5 and 6 and the SQM tree, and then fix it so the subquery's select() reuses an existing validation utility and throws immediately.
Contributing to JUnit, Part 3: Addressing the First Review and Structuring Cancellation Checks with shouldContinue
—viewsI walk through how I addressed the first review on JUnit PR #6281. The reviewer pointed out that a cancellation check I'd left out, relying on the loop check, creates an implicit dependency, and that a user cancelling between steps can't be reproduced in a test, so I tied the entry conditions and the cancellation check together in a single shouldContinue.
Contributing to JUnit, Part 2: Adding Cancellation Checks to the Jupiter Lifecycle and Opening a PR
—viewsI walk through how I fixed JUnit issue #6268. I write a reproduction test, carry the CancellationToken in JupiterEngineExecutionContext so each lifecycle step checks for cancellation, then find the limits of checking only between steps, move the check into the common callback loops, and open PR #6281.
Contributing to JUnit, Part 1: Analyzing Why Test Cancellation Is Ignored While @BeforeEach Runs
—viewsI walk through how I picked up JUnit's up-for-grabs issue #6268 and analyze why a test still runs to the end when you press the stop button in IntelliJ while @BeforeEach is running. I look at CancellationToken's cooperative cancellation and the checkpoints in JUnit's execution structure, then lay out the fix direction of passing the token into the Jupiter context and the work plan.
Contributing to Jetty, Part 1: Exploring and Verifying the Virtual Thread Creation Limit Issue
—viewsFor my first open source contribution, I picked a Jetty issue about documenting how to limit the number of virtual threads created. I cover how I chose the issue, open source culture, and the #14330 discussion that started it, and record how I verified with tests the approach of plugging a virtual thread ThreadFactory into QueuedThreadPool.