Commit Graph
14 Commits
Author SHA1 Message Date
cflmy a604405908 test: add a real HTTP-over-TCP loopback domain test
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Implement marqdo-ext-http#3: the explicit @http package now owns a real
loopback domain test instead of only pure encode/parse cases.

- tests/loopback.mq.md performs two real HTTP/1.1 exchanges in one program
  through the CLI's generic resource.open("tcp")/read/write/close, building
  requests with http.构建请求字节 and parsing responses with
  http.解析响应字节; non-ASCII bodies, explicit --allow-net 127.0.0.1 and
  --allow-env HTTP_TEST_PORT only.
- scripts/loopback_server.py is a deterministic one-request-per-connection
  server that records method/path/body and returns fixed status/bodies.
- scripts/run_cases.py supports kind=loopback (server lifecycle, port env,
  grants, request-record assertions) without changing the pure case path.
- tests/cases/loopback.json asserts GET /one -> 200 第一个 and
  POST /two -> 201 第二个 plus the request records.
- Evidence: docs/evidence-2026-11-30-loopback-domain-test.md (real CLI rc.6
  candidate + Bundle 0.3.0: 2 cases PASS).

No CLI/Host/other-component change, no new Host request, no release.
2026-11-30 16:10:35 +08:00
cflmy 8fe0bee24c Merge pull request #14
ci/woodpecker/push/ci Pipeline was successful
merge marqdo-ext-http #14
2026-11-30 12:29:02 +08:00
cflmy d0d654179e fix: allocate HTTP byte buffers by actual size and build headers once
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Fix marqdo-ext-http#13: `http.文本字节` allocated a fixed 8 MiB Memory region on
every call, and `http.构建请求字节` called it once for the request line and once
per header, so a 6-header request spent ~56 MiB of the default 64 MiB run
budget and a second request failed with `resource.exhausted`.

- `文本字节`: request the minimal page count for the actual text (4-byte
  UTF-8 worst case per codepoint, 128-page cap, 1 page minimum).
- `构建请求字节`: concatenate the request line and all headers into one text,
  encode once, then concatenate the body; per-header fixed allocations are gone.
- Public signatures and produced request bytes are unchanged (`构建请求` text
  API stays compatible).
- Regression case: under the default budget, build the same 6-header request 8
  times and assert the final byte length/request text; the old code failed on
  the second build.
- docs/evidence records the real CLI/Bundle run.

No CLI/Host change, no new Host request, no release; real loopback multi-request
exchange (#3) and the optional streaming response view remain open/UNVERIFIED.
2026-11-30 12:22:44 +08:00
cflmy 8651d588b1 Revert "ci: protected publish workflow (#10)"
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
This reverts commit b80df53cc5, reversing
changes made to a42db224e9.
2026-11-27 20:34:39 +08:00
cflmy b80df53cc5 ci: protected publish workflow (#10)
ci/woodpecker/push/ci Pipeline was successful
ci: protected publish workflow (#10)
2026-11-27 19:23:29 +08:00
cflmy a5c547fa6c ci: add protected component publish workflow and immutable release helpers
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Vendor the root component-release helpers, add source packaging plus
release-evidence, and split publish (tag/manual) from notify (release event).
2026-11-27 19:23:03 +08:00
marqdo-ci a42db224e9 ci: notify the root reconcile on a completed release
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
Release event fast path: validate the secret is present, then ask the root
manual `reconcile` workflow to check the authoritative Gitea release. The call
is only a hint; correctness and lost-notification recovery stay in the root
reconcile cron/script.
2026-11-27 14:18:19 +08:00
marqdo-ci 32a15fac65 ci: consume the shared shell CI image
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/manual/ci Pipeline is pending
2026-11-27 14:03:36 +08:00
marqdo-ci 586d57ff37 ci: avoid a shell-variable-looking token in the workflow comment
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/push/ci Pipeline was successful
Woodpecker parses shell-style variables throughout the command strings, including
comments; keep the pinned values literal so pipeline config parsing succeeds.
2026-11-27 13:45:02 +08:00
marqdo-ci 0dc23c7cad ci: keep the pinned archive path literal
Woodpecker expands ${...} in commands, which left the version empty. Use the
exact released archive path/SHA so the unified lane is reproducible.
2026-11-27 13:43:59 +08:00
marqdo-ci efbd9d275b ci: add the unified Woodpecker lane (published CLI/Bundle, one base image)
ci/woodpecker/manual/ci Pipeline is pending
Reuse the released marqdo rc.5 archive and Bundle with a pinned SHA-256 in
ubuntu:24.04; no Rust toolchain download, no CLI build, no sibling checkout.
This keeps component CI independent and cheap while testing the real CLI.
2026-11-27 13:37:49 +08:00
marqdo-norms 6efcbc8c8c docs: adopt the ecosystem repository development conventions
Add the repository AGENTS.md boundary and anti-bloat rules required by
marqdo docs/REPOSITORY-CONVENTIONS.md, with the marker and canonical link so
scripts/check-repo-conventions.py can enforce it.
2026-11-27 11:36:29 +08:00
cflmy 368b33d241 migrate: own the HTTP domain module as an explicit package
Move the pre-migration net/http.mq.md content into this repository's package
entry, replacing the bundle-relative utf8 import with the public std:text/utf8
dependency. The module leaves the default Bundle and is consumed through the
explicit @http package import; the original domain test and its baseline
terminal value are carried over unchanged.

Refs cflmy/marqdo#9, cflmy/marqdo-ext-http#1
2026-11-27 00:07:52 +08:00
cflmy f2dde4234c docs: initialize component development directory 2026-11-26 14:52:45 +08:00