Runway 1.0.1

This commit is contained in:
Runway committed 2026-10-21 13:49:47 -06:00
1 parent dcf819146b
commit ce217fc952
259 files changed
+22226 -206

No files matched your search

@@ -16,14 +16,14 @@ import org.junit.jupiter.api.Test;
* The shipped descriptor declares the SPI floor the plugin's code actually needs.
*
* <h2>Why</h2>
* The installer (on every upgrade since 1.0.0-rc1; before that with {@code --update-essential-plugins}) replaces the
* The installer (on every upgrade) replaces the
* protection jar in the version-independent
* {@code external/plugins/protection/}, so after an upgrade the jar outlives the kernel it came with: a rollback
* is a symlink flip that puts an older kernel in front of the newer jar. From 1.5.0 the plugin links
* is a symlink flip that puts an older kernel in front of the newer jar. The plugin links
* {@code spi.service.RequestContext} (SPI 0.5.0) and {@code spi.service.ConsoleScreen} (SPI 0.6.0). A kernel
* without them registered the plugin and then failed to start with {@code NoClassDefFoundError: …RequestContext}
* — the essential plugin, so nothing came up, and nothing named the plugin. The {@code requiresSpi} floor makes
* every kernel since 0.5.0-beta10 refuse it with a reason instead.
* without them would register the plugin and then fail to start with {@code NoClassDefFoundError: …RequestContext}
* — the essential plugin, so nothing comes up, and nothing names the plugin. The {@code requiresSpi} floor makes
* every kernel that reads it refuse the plugin with a reason instead.
*/
class DescriptorSpiFloorTest {
@@ -35,7 +35,7 @@ class ProtectionDescriptorK4Test {
PluginDescriptor descriptor = shipped();
assertEquals("protection", descriptor.id());
assertTrue(descriptor.isEssential());
assertEquals("1.0.0", descriptor.version(), "versioned on the kernel's line from rc1");
assertEquals("1.0.1", descriptor.version(), "versioned on the kernel's line");
assertEquals(PluginVersion.parse("1.0.0"), descriptor.spiFloor());
assertEquals(PluginVersion.parse(RunwaySpi.VERSION).major(), descriptor.spiFloor().major(),
"the floor names the kernel's own SPI major line");
@@ -41,7 +41,7 @@ class RateLimitEdgeGuardTest {
}
/**
* Loopback is NOT exempt from the rate limit (the descriptor said it was until rc1): behind a same-host proxy whose
* Loopback is NOT exempt from the rate limit: behind a same-host proxy whose
* forwarded address is not trusted, every client arrives as {@code 127.0.0.1}, and an implicit exemption would
* switch the limit off for the whole internet. What loopback does get is never being BLOCKED, so its throttles
* never escalate — the safety rail against auto-blocking the operator's own proxy or probe.