Skip to content

blob: add Huawei Cloud OBS driver (WIP) - #3856

Draft
marcvlima wants to merge 2 commits into
google:masterfrom
marcvlima:feat/huaweiblob-obs-driver
Draft

marcvlima wants to merge 2 commits into
google:masterfrom
marcvlima:feat/huaweiblob-obs-driver

Conversation

@marcvlima

Copy link
Copy Markdown

WIP — do not merge. Delivered as-is per the founder's decision so the
implementation can continue in another code assistant.

Adds blob/huaweiblob, a blob driver for Huawei Cloud OBS over its
S3-compatible REST API (SigV4-compatible signing, service name obs),
including As hooks, key/metadata escaping and unit tests.

Current state:

  • go build, go vet, TestOpenBucket*, TestWithKey, TestObsErrorMessage
    and both examples pass.
  • TestConformance cannot run offline yet: 79 .replay goldens are missing
    (the local OBS mock / recording step is not done).
  • gofmt -s is dirty in 3 files; listnewpkgs.sh reports the package;
    examples.json and the how-to entry are not updated.
  • The holding quality-guard run could not produce a green marker: this fork
    has no quality-surfaces.yaml / .risegen harness installed. No
    --no-verify or override was used.
  • HANDOFF.md at the repo root carries the verified state, the ordered
    remaining work, pitfalls and the acceptance checklist. Remove it before merge.

HANDOFF.md section 3 lists the sequence: gofmt, local OBS mock, path-style
harness, record 79 goldens, green offline conformance, website/docs
registration, gates, then PR finalisation.

Adds the obs:// driver over the S3-compatible OBS REST API with
SigV4-compatible signing, driver.Bucket/Reader/Writer, As hooks,
key/metadata escaping and unit tests.

State: build, vet and unit tests pass. TestConformance cannot run offline
yet (79 .replay goldens missing). gofmt -s, website registration and the
holding quality gate are still pending. See HANDOFF.md for the full
checklist and the decisions taken at handoff time.
@google-cla

google-cla Bot commented Nov 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Record 79 TestConformance golden files against a local path-style OBS mock
so the driver tests run fully offline (18 groups pass; TestSignedURL skips
as Unimplemented). URL-encode x-copy-source so keys with 0x7F/% round-trip.
Add httptest coverage for versioning/lifecycle sub-resources. Register the
package in the website (_index, howto, examples, blank import).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant