Repository navigation
fix: 加固生产请求校验并发布 0.1.1 - #5
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
shootingfly
added a commit
that referenced
this pull request
Nov 30, 2026
Fix numeric constraint overflow and invalid-encoding input handling; add production boundary tests, a server integration example and automated release checks. All 79 tests passed in regular and optimized builds on four environments, along with installation, server build and load verification. Hosted jobs did not start because of a billing limit; see docs/validation-0.1.1.md. Co-Authored-By: Codex <noreply@openai.com>
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.
数值约束允许声明超出错误参数表示范围的整数边界,失败时会抛出溢出异常;非法编码的文本、标量参数和字段名也可能导致异常或非法响应。本次在编译期拒绝不安全数值边界,将非法编码转换为结构化校验错误,并准备发布 0.1.1。
补充带请求体大小限制、连接超时和敏感字段输出控制的网络服务示例;新增边界、错误集、随机整数往返和真实套接字集成测试。统一
make release-check,自动检查普通及优化构建、安装、版本一致性、服务构建、并发请求和内存预算。验证:macOS 15.3 / Crystal 1.22.3、Alpine / Crystal 1.22.0、Alpine / Crystal 1.22.3、Ubuntu 26.04.1 / Crystal 1.22.3 全部通过。每个环境普通和优化构建各 79 项测试全过;16 个并发客户端的 4,000 次请求全部匹配预期,50 轮每轮 10,000 个错误的收集、序列化与恢复检查通过,回收后存活内存增量均低于 33,554,432 字节。
托管自动化任务因账户账单限制未启动,未记作通过;本次发布依据已完成的四环境本机及一次性容器验证。完整结果见
docs/validation-0.1.1.md,日志将随发布附件保存。容器兼容层及共享主机上的性能数字不代表业务容量,生产调用方仍需配置请求、并发和超时边界。