Repository navigation
Update dependency dev.hegel:hegel to v0.14.3 - #186
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 13, 2026 17:41
a00b966 to
1a9a237
Compare
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 16, 2026 22:04
1a9a237 to
d18c6a7
Compare
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 18, 2026 21:32
d18c6a7 to
51e9259
Compare
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 19, 2026 19:56
51e9259 to
52b17cd
Compare
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 20, 2026 23:45
52b17cd to
d51fb5e
Compare
renovate
Bot
force-pushed
the
renovate/dev.hegel-hegel-0.x
branch
from
November 25, 2026 03:00
d51fb5e to
c36a16b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.11.1→0.14.3Release Notes
hegeldev/hegel (dev.hegel:hegel)
v0.14.3This release updates the bundled libhegel engine to 0.53.2.
v0.14.2This patch sets a lower bound for the probability of checking a sampled invariant.
v0.14.1This patch names a run of a
@HegelTestmethod after the test, its@DisplayNameor the method name.v0.14.0This release moves date and time generation into the engine, which draws time zones from this JVM's own zone rules or from a pinned IANA time zone database it bundles, gathers every date and time generator into the new
Generators.Temporalsclass under the names every Hegel frontend shares, and addsinstants(),zonedDatetimes()andspans()along with the date and time options every frontend shares. A few changes can break existing code or tests.The date and time factories are now static methods of the nested class
Generators.Temporals, so withimport static dev.hegel.Generators.*;they are writtenTemporals.dates(),Temporals.times(),Temporals.datetimes(),Temporals.zonedDatetimes(),Temporals.instants(),Temporals.offsets()(aZoneOffset),Temporals.zones()(aZoneId),Temporals.durations()(aDuration) andTemporals.spans()(aPeriod). Their generator classes and enums move to the packagedev.hegel.generators.temporal, named after the factories:DateGenerator,TimeGenerator,DateTimeGenerator,ZonedDateTimeGenerator,InstantGenerator,OffsetGenerator(wasdev.hegel.generators.ZoneOffsetGenerator),ZoneGenerator,DurationGenerator,SpanGenerator,OffsetGranularityandAmbiguous. The top-levelGenerators.dates(),times(),datetimes(),zoneOffsets(),zoneIds()anddurations(), andDateTimeGenerator.timezones(...)(nowzones(...)), keep working as deprecated aliases, but code that names one of the moved classes needs its import updated, and code compiled against an earlier version needs recompiling, since the aliases' return types moved with the classes:Temporals.durations()spans the whole signed rangeDurationrepresents, fromLong.MIN_VALUEtoLong.MAX_VALUEseconds, shrinking towardDuration.ZERO. Most of that range is beyond whatDuration.toNanos()andtoMillis()can return, so code that converts wants bounds. The deprecatedGenerators.durations()still draws what it always did, a non-negative duration of at mostLong.MAX_VALUEnanoseconds (about 292 years), and this is the same generator under the new name:The constructor
DurationGenerator(long minNanos, long maxNanos)is gone; usenew DurationGenerator(Duration min, Duration max)or theminandmaxmethods.Every generator of a value with a date in it draws years 1 to 9999 by default:
dates(),datetimes(),zonedDatetimes(),instants(), and theLocalDate,LocalDateTime,OffsetDateTime,ZonedDateTimeandInstantfieldsGenerators.forTypeand record derivation fill in. Explicit bounds reach the engine's whole range of years[-999999, 999999]. A bound that is not set stays at the default, so a lower bound beyond the year 9999 needs an upper bound as well, the two in either order, as indates().min(LocalDate.of(12000, 1, 1)).max(LocalDate.of(12999, 12, 31)); a generator made bydates().min(LocalDate.of(12000, 1, 1))alone fails its first draw with anIllegalArgumentExceptionthat says so.zones()(and the deprecatedzoneIds()) returns aZoneGeneratorrather than aGenerator<ZoneId>, and draws the namesZoneId.getAvailableZoneIds()lists; link names such asAsia/Calcuttaare included and legacy names such asEST5EDTexcluded by default. Code holding the result in aGenerator<ZoneId>variable still compiles; code that relied on legacy names appearing asks for them:Half the zone draws are weighted toward zones with a rare feature (a fractional offset, negative daylight saving, a skipped day), and a name shrinks toward
UTCthrough the zones a reader recognises, rather than alphabetically.The new
zonedDatetimes()draws aZonedDateTimeas a zone and a wall-clock time in one engine draw, anddatetimes().zones(zones)now returns one too: one draw in twenty on average lands within a second, an hour or a day of one of the zone's daylight-saving or offset transitions, or of a well-known instant such as the Unix epoch. A repeated wall time is drawn as either instant by default, or as the oneambiguous(Ambiguous.EARLIER)orLATERasks for, and a skipped wall time, which aZonedDateTimecannot hold, is never drawn. Bounds are either on the wall clock (min/maxof aLocalDateTime) or on the instant (min/maxof anInstantor aZonedDateTime); setting both kinds on one generator is anIllegalArgumentException.The engine targets each zone's transitions using the zone data of a
ZoneSource. The default,ZoneSource.javaTime(), uploads this JVM's ownZoneRulesthe first time a generator needs them, so drawn values agree exactly withjava.time.ZoneSource.bundled()is the engine's pinned IANA release (whose versionTemporals.tzdbVersion()reports), which aims draws at the same transitions on every JVM; a drawn value still means what this JVM's rules say, and a wall-clock time this JVM skips rejects the test case rather than failing it.ZoneSource.builder()assembles a source from other data, to aim draws at transitions this JVM's database does not have yet or to draw from fewer zones: TZif bytes,ZoneRules, a function from instants to offsets, links, and names declared up front and loaded on first use. Building a source uploads its data, so build one once, in a static field, and share it;version()reports the release a source holds:zones().source(source)andzonedDatetimes().source(source)set the source of one generator, andZoneSource.setDefault(source)the default for the process, returning the default it replaced so that a caller can put it back. A generator reads the default when it is created and keeps that source afterwards.zonedDatetimes()uses the source of thezones()generator it is given, and giving it both such a generator andsource(...)is anIllegalArgumentException. The zones of any other generator, such asjust(zone)or a filteredzones(), are looked up by name in the source given tosource(...), or else in the default, and a region zone that source does not know is anIllegalArgumentExceptionnaming it. AZoneOffsetneeds no zone data and is drawn in directly:dates()takesweekdays(DayOfWeek...)andmonths(Month...)to draw only, say, weekends or Februaries, moving a drawn date to the nearest allowed one rather than filtering, and targets the leap days nearest the bounds, the year boundaries, the 2038 and 2106 overflow days and ISO week 53 in one draw of twenty on average.times(),datetimes(),instants(),durations()andzonedDatetimes()take aprecision(ChronoUnit)ofNANOS(the default),MICROS,MILLIS,SECONDS,MINUTESorHOURS, so every drawn value is a whole number of that unit.offsets()takes agranularity(OffsetGranularity)of hours, quarter-hours, minutes or seconds and targets the offsets real zones have used. The newinstants()drawsInstantvalues, andspans()drawsPeriodvalues with each of years, months and days independently signed, ornonNegative(true); enabling a unit replaces the default of all three. By default each unit spans the wholeintrange, whichLocalDate.plus(Period)overflows for most draws, so a span that will be added to a date wants bounds:The fluent methods of every one of these generators can be called in any order: the same calls make the same generator, which works or fails the same way, however they are ordered. Settings that cannot work together are an
IllegalArgumentExceptionfrom the method that gives the last of them, as the date and time generators always reported them, never from the first draw: bounds in the wrong order, bounds with no date on an allowed weekday and month or no value at the precision, a zone name that the source given tosource(...)does not know or that its loader fails for. Sozones().names(...)takes names of whichever source the generator ends up with, andsource(...)may come before or after it.A setting that was not given counts as its default only when the generator first draws, so one that conflicts with nothing but a default, which a later call can still replace, is reported by the first draw, as an
IllegalArgumentExceptionthrown inside the test: aminbeyond the year 9999 with nomax, a zone name the default zone source lacks whensource(...)is never called, a zone source none of whose zonesallowLinksandallowLegacyadmit whennames(...)is never called.Generators.forTypeand record derivation now coverInstant,Period,Year,YearMonthandMonthDayas well asLocalDate,LocalTime,LocalDateTime,ZonedDateTime,OffsetDateTime,ZoneId,ZoneOffsetandDuration;DayOfWeekandMonthdraw as any enum does.The low-level
Libhegelbinding contract gains the engine's new functions:generateDatetakes a date options handle andgenerateTimeandgenerateDatetimea precision, andgenerateTimestamp,generateOffset,generateDuration,validateDate,validateTime,validateDatetime,validateTimestamp,validateOffset,validateDuration,generateTimezone,generateZonedDatetime,generateZonedDatetimeForZone,generateSpan, thedateOptions*,timezoneSpec*,zonedSpec*andspanSpec*handle functions (each spec with a*Validate),timezoneInfo,timezoneOffsetAt,timezoneResolve, thezoneSource*functions (zoneSourceSetLoadertakes a hook run when the engine releases the loader),setDefaultZoneSourceandtzdbVersionare new. A custom binding needs to implement them.v0.13.0This release moves to the engine's new test-case output protocol, in which libhegel decides what a test case's output is used for and prints it itself.
A run at
Verbosity.VERBOSEnow shows, through the run'sReporter.engineOutput, a one-line summary of each failing test case right after that case's draws and notes — the file and line of the test it was thrown from, then the exception, for exampleSortTest.java:23: java.lang.AssertionError: not sorted— and aTest case stopped: failed assumptionorTest case stopped: out of dataline for each case that was rejected or ran out of data. AtVerbosity.DEBUGeach failing test case shows its full stack trace instead. The stack trace is only rendered when the engine will use it. The default report of a failure is unchanged.TestCase.isFinal()is removed. The engine now decides which test cases' output it uses, and that set (every test case of a verbose run, and the executions a failure report is built from) no longer matches what the name promised. A frontend built ondev.hegel:hegel-lowlevelcan ask the engine directly withLibhegel.testCaseWantsOutput.Reporter.silent()now gives the engine no output destination, so a verbose or debug run with it renders nothing nobody would see.The
dev.hegel:hegel-lowlevelbinding contract changes with the C ABI:Libhegel.testCaseShouldCaptureis replaced byLibhegel.testCaseWantsOutputandLibhegel.testCaseWantsDetail,Libhegel.markCompletetakes a failure'ssummaryanddetailafter its origin, andLibhegel.failureOutputandLibhegel.failureDiagnosticare new. Anulloutput callback now means no destination rather than stderr; pass the newLibhegel.STDERRto have the engine print to stderr. The output callback passed toLibhegel.testCaseFromBlobis now kept alive until the test case is released withtestCaseFree, since the engine prints the replay's output when the test case completes.v0.12.5This release updates the bundled libhegel engine to 0.51.6.
v0.12.4This patch adds
pauseFaultsto@Invariant. An invariant declared with@Invariant(pauseFaults = true)is bracketed by the engine's newhegel_pause_faults/hegel_unpause_faultscalls every time it runs (on the initial state, at each sampled join point and on the final state, in both the sequential and the concurrent driver), and is unpaused even when it throws:The flag is meant for tests that run inside Antithesis, where it pauses fault injection for the duration of the invariant so a fault cannot land in the middle of the check. Outside Antithesis the flag has no effect.
The
dev.hegel:hegel-lowlevelbinding contract gains the matchingLibhegel.pauseFaultsandLibhegel.unpauseFaultsmethods.v0.12.3This release updates the bundled libhegel engine to 0.51.4.
v0.12.2This release updates the bundled libhegel engine to 0.51.3.
v0.12.1This release updates the bundled libhegel engine to 0.51.2.
v0.12.0This release adds
Hegel.main, for writing a test as a standalone program. A program runs one test case and takes its settings from the command line.--helplists the options.The process exits with status 0 if the test case passes, 1 if it fails or the run ends in an error, and 2 if the command line is invalid.
In
dev.hegel:hegel-lowlevel,LibhegelgainssettingsFromString(hegel_settings_set_from_string),setDefaultProfile(hegel_set_default_profile),settingsGetVerbosity(hegel_settings_get_verbosity) andsettingsGetSuppressHealthCheck(hegel_settings_get_suppress_health_check).v0.11.2This patch adds a weighted generator for booleans,
booleans(double p).Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.