test: make compliance golden tests "thoughtful" and clean up state (#525) The compliance tests now evaluate test verdicts hierarchically (Pass > Warn > Fail > Error) rather than enforcing strict JSON equality against the goldens. Previously, if the underlying Dart SDK fixed a bug and caused a test to improve (e.g., from Warn to Pass), the strict equality check would fail the test suite. Now, the tests will: - Fail the build if a test regresses (e.g., Pass to Fail). - Pass the build but emit a GitHub Actions `::warning::` if a test improves or changes benignly, prompting maintainers to update the goldens (`tool/update_goldens.dart`) to tighten them. Additionally, the markdown summary check no longer fails the build if the summary changed due to test improvements or benign differences, provided there are no regressions in the suite. Finally, this removes the redundant `_updateGoldens` constant and its branching logic from `compliance_test.dart` since golden updates are now handled entirely by the standalone `tool/update_goldens.dart` script.
Shelf makes it easy to create and compose web servers and parts of web servers. How?
It was inspired by Connect for NodeJS and Rack for Ruby.
See the package:shelf readme for more information.
| Package | Description | Issues | Version |
|---|---|---|---|
| shelf | A model for web server middleware that encourages composition and easy reuse. | ||
| shelf_packages_handler | A shelf handler for serving a packages/ directory. | ||
| shelf_proxy | A shelf handler for proxying HTTP requests to another server. | ||
| shelf_router | A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. | ||
| shelf_router_generator | A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. | ||
| shelf_static | Static file server support for the shelf package and ecosystem. | ||
| shelf_test_handler | A Shelf handler that makes it easy to test HTTP interactions. | ||
| shelf_web_socket | A shelf handler that wires up a listener for every connection. | ||
| _shelf_compliance | HTTP/1.1 compliance and hardening tests. | (not published) |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.