Commit ad80611
authored
infra: consolidate interface spec files, add team ownership and CI workflows (#220)
## Summary
- **Content audit**: Verified all 7 `ic-interface-spec` split files are
1:1 with the portal source. All 4 attachment files are byte-for-byte
identical. No content was lost; the only differences from the portal are
expected frontmatter, cross-file link rewrites, and one intentional
adaptation (dead `internetcomputer.org/docs/` links replaced with live
local paths).
- **Inline Candid interface**: Restored the portal's inline `ic.did`
embed in the management canister spec
(`docs/references/ic-interface-spec/management-canister.md`). A new
`plugins/remark-include-file.mjs` remark plugin handles
`file=<rootDir>/...` code fence attributes at build time, using the
project's own `unist-util-visit@5` (avoids the version conflict from
`remark-code-import`).
- **File consolidation**: Moved all interface spec attachments into a
single flat `public/references/` directory:
- `public/reference/ic.did` → `public/references/ic.did`
- `public/references/_attachments/certificates.cddl` →
`public/references/certificates.cddl`
- `public/references/_attachments/requests.cddl` →
`public/references/requests.cddl`
- `public/references/_attachments/http-gateway.did` →
`public/references/http-gateway.did`
- **File rename**: `docs/references/http-gateway-spec.md` →
`docs/references/http-gateway-protocol-spec.md` (matches portal
filename; all internal links and sidebar updated).
- **CODEOWNERS**: Added required reviewers for spec files and
attachments:
- `docs/references/ic-interface-spec/*` — `@dfinity/interface-spec
@dfinity/team-dsm @dfinity/consensus @dfinity/dx`
- `docs/references/http-gateway-protocol-spec.md` — same
- `docs/references/management-canister.md` — same
- `docs/references/execution-errors.md` — `@dfinity/team-dsm
@dfinity/dx`
- All four files in `public/references/` individually — same as
interface-spec
- **CI workflows** (ported and adapted from `dfinity/portal`):
- `interface-spec.yml` — validates `.cddl` files (docker cddl-cli) and
`.did` files (didc) on every PR touching spec files, and on push to
`main`
- `interface-spec-tag.yml` — labels any PR that touches spec files with
`interface-spec`; creates the label automatically on first run
(idempotent)
- `interface-spec-slack.yml` — posts to `#interface-spec` on Slack when
a non-draft PR is opened or marked ready for review (requires
`SLACK_API_TOKEN` secret)
## Notes
- `SLACK_API_TOKEN` secret needs to be added to the repo for the Slack
workflow to function.
- One numeric claim in `docs/references/execution-errors.md` needs
DSM/Consensus confirmation: "wasm64 modules can use up to 6 GiB of heap
memory." This appears in `portal/canisters.mdx` and our
`cycles-costs.md` but not in `portal/resource-limits.mdx`. Please verify
against the runtime implementation before merging.
## Sync recommendation
`informed by dfinity/portal — .github/workflows/interface-spec.yml,
.github/workflows/interface-spec-tag.yml,
.github/workflows/interface-spec-slack.yml`1 parent 51834c6 commit ad80611
19 files changed
Lines changed: 193 additions & 16 deletions
File tree
- .github
- workflows
- docs
- guides/frontends
- references
- ic-interface-spec
- plugins
- public/references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
| 738 | + | |
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments