Skip to content

Windows test fixes - #1

Merged
huitseeker merged 2 commits into
MystenLabs:mainfrom
huitseeker:windows-fixes
Nov 10, 2021
Merged

huitseeker merged 2 commits into
MystenLabs:mainfrom
huitseeker:windows-fixes

Conversation

@huitseeker

Copy link
Copy Markdown
Contributor

All work from @gdanezis .

@huitseeker
huitseeker requested review from gdanezis and oxade November 10, 2021 17:45
@huitseeker
huitseeker merged commit 89c1f54 into MystenLabs:main Nov 10, 2021
lxfind added a commit that referenced this pull request Jan 31, 2022
[Object Ownership #1] Add Authenticator
mwtian pushed a commit that referenced this pull request Sep 12, 2022
mwtian pushed a commit that referenced this pull request Sep 12, 2022
williamrobertson13 added a commit that referenced this pull request Jul 27, 2023
…primitives (#13160)

## Description 

This PR adds the new "Protect Account" screen used when clicking "Create
a new account" button and as the second step of the "Import Passphrase"
and "Import Private Key" flows. As part of this, I attempted to create
some new form primitives to make building forms more manageable (all of
the existing components aren't quite up to spec, use Formik, and aren't
fully accessible). I ended up following an approach similar to
https://www.brendonovich.dev/blog/the-ultimate-form-abstraction which
gave some creds to @Jordan-Mysten 😆

As a rough outline, we have generic, non-form-library-specific input
controls like `TextArea`, `Input`, `PasswordInput`, `Checkbox` which are
used to create `react-hook-form` specific controls such as `TextField`,
`TextAreaField`, `CheckboxField`, and so forth. We also have some helper
components like `Form` and `FormField` to help abstract away some
specific form details such as error states when using react-hook-form. I
considered using the Radix form primitives, but I didn't really see the
immediate value 🤷🏼

Additional note #1: Some of these pages are used in different flows and
have different submission logic depending on the usage context. I think
I might need to brainstorm on the best way to handle that and tackle it
in a follow-up PR

Additional note #2: the auto-lock input is still a WIP on the design
side, so I have a TODO to add that once it's ready.

Checkbox in Figma -
https://www.figma.com/file/T06obgYVOUD2JDGXM8QEDX?node-id=341%3A378&main-component=1&fuid=1209977329759347633

Input in Figma -
https://www.figma.com/file/T06obgYVOUD2JDGXM8QEDX/01-Components-%3A-Shared?node-id=19%3A312&mode=dev

<img width="631" alt="image"
src="https://github.com/MystenLabs/sui/assets/7453188/4c851808-b751-412a-b25e-06d4660b5fa3">

## Test Plan 
- Manual testing (error states, successful submission, accessibility,
focus/disabled/hover states, etc.)
- CI

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
ebmifa pushed a commit that referenced this pull request Aug 10, 2023
…primitives (#13160)

## Description 

This PR adds the new "Protect Account" screen used when clicking "Create
a new account" button and as the second step of the "Import Passphrase"
and "Import Private Key" flows. As part of this, I attempted to create
some new form primitives to make building forms more manageable (all of
the existing components aren't quite up to spec, use Formik, and aren't
fully accessible). I ended up following an approach similar to
https://www.brendonovich.dev/blog/the-ultimate-form-abstraction which
gave some creds to @Jordan-Mysten 😆

As a rough outline, we have generic, non-form-library-specific input
controls like `TextArea`, `Input`, `PasswordInput`, `Checkbox` which are
used to create `react-hook-form` specific controls such as `TextField`,
`TextAreaField`, `CheckboxField`, and so forth. We also have some helper
components like `Form` and `FormField` to help abstract away some
specific form details such as error states when using react-hook-form. I
considered using the Radix form primitives, but I didn't really see the
immediate value 🤷🏼

Additional note #1: Some of these pages are used in different flows and
have different submission logic depending on the usage context. I think
I might need to brainstorm on the best way to handle that and tackle it
in a follow-up PR

Additional note #2: the auto-lock input is still a WIP on the design
side, so I have a TODO to add that once it's ready.

Checkbox in Figma -
https://www.figma.com/file/T06obgYVOUD2JDGXM8QEDX?node-id=341%3A378&main-component=1&fuid=1209977329759347633

Input in Figma -
https://www.figma.com/file/T06obgYVOUD2JDGXM8QEDX/01-Components-%3A-Shared?node-id=19%3A312&mode=dev

<img width="631" alt="image"
src="https://github.com/MystenLabs/sui/assets/7453188/4c851808-b751-412a-b25e-06d4660b5fa3">

## Test Plan 
- Manual testing (error states, successful submission, accessibility,
focus/disabled/hover states, etc.)
- CI

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
ebmifa added a commit that referenced this pull request May 25, 2024
@stefan-mysten stefan-mysten mentioned this pull request Jul 11, 2024
7 tasks
wlmyng added a commit that referenced this pull request Oct 18, 2024
#19919)

…9902)

## Description 

This PR fixes a bug where events queries in descending order without a
cursor return no results

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:

## Description 

Describe the changes or additions included in this PR.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
wlmyng added a commit that referenced this pull request Oct 23, 2024
#19981)

…9980)

## Description 

Describe the changes or additions included in this PR.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
@Akagi201 Akagi201 mentioned this pull request Aug 15, 2025
1 of 7 tasks
sblackshear added a commit that referenced this pull request Jan 30, 2026
Add graceful fallback for control flow we cannot decompule yet introducing an
Unstructured AST node that supports goto-based representation. This fixes
the #1 failure mode (73.4% of all decompilation failures on mainnet_most_used) where the
structuring algorithm panicked on Jump/JumpIf nodes that couldn't be
eliminated. This is not ideal (obviously we'd prefer to decompile everything), but is a
pragmatic compromise to continue decompiling without failures. This won't produce code
that will compile, but it can (e.g.) be passed to a LLM which will probably do fine with
the gotos.

The implementation adds a hybrid AST design where structured control flow
is preferred, but unstructured (goto-based) control flow is used as a
fallback when the structuring algorithm cannot eliminate all Jump nodes.

Key design principles:
- Goto/labeled blocks exist ONLY inside Unstructured containers
- Bidirectional nesting: structured nodes can appear inside unstructured
  regions and vice versa
- Single-node fallback strategy: each Jump converts to standalone Goto
- Move-like label syntax: 'label_N: for labels, goto 'label_N; for gotos

- Added Exp::Unstructured(Vec<UnstructuredNode>) variant
- Defined Label = u64 type for direct mapping from NodeIndex
- Created UnstructuredNode enum with three variants:
  - Labeled(Label, Box<Exp>) for labeled blocks
  - Statement(Box<Exp>) for unlabeled statements
  - Goto(Label) for goto statements
- Updated contains_break() and contains_continue() to recursively
  handle unstructured nodes
- Added Display implementation for debugging output

- Replaced panic at line 274 with graceful fallback logic
- Jump(target) → Unstructured([Goto(target.index())])
- JumpIf(code, t, e) → IfElse(cond,
                               Unstructured([Goto(t)]),
                               Unstructured([Goto(e)]))
- No longer panics on "Jump nodes should not be present"

- Extended Refine trait to recursively process Unstructured nodes
- Ensures all refinement passes (flatten_seq, introduce_while,
  loop_to_seq, remove_trailing_continue) work with unstructured regions
- Labeled and Statement nodes get refined, Goto nodes pass through

- Fixed panic when loop successor nodes aren't structured yet
- Changed from unwrap_or_else(|| panic!(...)) to if let Some(...)
- Allows structuring to complete even when successor nodes are
  unreachable due to irreducible control flow

Verified on mainnet_most_used corpus:
- Packages in 0x01 that previously panicked now succeed
- 16 test packages (0x00-0x0f): 7 successful, 0 failed
- No regressions: existing structured output unchanged

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
jessiemongeon1 added a commit that referenced this pull request May 7, 2026
## Summary

Automated documentation fixes based on the weekly docs audit report.

### Fixed issues

- 🔴 **#1** [HIGH]: CLI: `send-funds` command missing from docs snippet
- 🔴 **#2** [HIGH]: Move CLI: `sui move new` generated `Move.toml` is
completely outdated
- 🔴 **#3** [HIGH]: Move CLI: Directory listing shows `Sources` (capital
S) instead of `sources`
- 🟡 **#20** [MEDIUM]: Move build output mentions `UPDATING GIT
DEPENDENCY`
- 🟡 **#21** [MEDIUM]: Move coverage: Claims debug build is required
- 🔴 **#4** [HIGH]: Exchange Integration: `sui_getEvents` API used with
wrong signature
- 🔴 **#5** [HIGH]: Exchange Integration: Variable name bug in curl
example
- 🔴 **#6** [HIGH]: Exchange Integration: Uses devnet URLs for production
guidance
- 🔴 **#9** [HIGH]: Duplicate exchange integration docs
- 🔴 **#10** [HIGH]: Exchange Integration: Rust SDK examples use
deprecated `SuiClientBuilder` with JSON-RPC
- 🟡 **#22** [MEDIUM]: Exchange Integration: `read_api().get_balance()`
pattern
- 🔴 **#7** [HIGH]: Validator CLI: Missing commands in docs
- 🔴 **#8** [HIGH]: Research Papers: Outdated consensus description
- 🟡 **#11** [MEDIUM]: GraphQL: Hardcoded version number `1.56.1`
- 🟡 **#12** [MEDIUM]: External Signers: Hardcoded minimum version
- 🟡 **#13** [MEDIUM]: Package Management: Hardcoded `toolchain-version =
"1.64.0"`
- 🟡 **#14** [MEDIUM]: Full Node Config: `enable-event-processing` in
template but not in NodeConfig
- 🟡 **#15** [MEDIUM]: Full Node Config: `rpc.enable-indexing` not
prominently documented
- 🟢 **#28** [LOW]: Full node setup: Genesis blob URLs use `curl -fLJO`
- 🟡 **#16** [MEDIUM]: Consensus: Performance numbers may be stale
- 🟡 **#17** [MEDIUM]: `client.mdx`: Dynamic field example shows
`SuiSystemStateInnerV2`
- 🟡 **#18** [MEDIUM]: Release Notes: Broken external URL
- 🟡 **#19** [MEDIUM]: DeepBook Margin SDK: Hardcoded fullnode URLs
- 🟢 **#25** [LOW]: Observability doc is marked as draft
- 🟢 **#26** [LOW]: Tokenized Asset docs reference `UPDATING GIT
DEPENDENCY`
- 🟢 **#27** [LOW]: Install from source: `--features tracing`
documentation

### Files changed

- `docs/content/snippets/console-output/sui-client-help.mdx`
- `docs/content/references/cli/move.mdx`
- `docs/content/operators/exchange-integration.mdx`
- `docs/content/references/exchange-integration-guide.mdx`
- `docs/content/references/cli/validator.mdx`
- `docs/content/references/research-papers.mdx`
- `docs/content/develop/accessing-data/using-events.mdx`
- `docs/content/develop/accessing-data/graphql/query-with-graphql.mdx`
- `docs/content/references/cli/external-signers.mdx`
- `docs/content/develop/manage-packages/move-package-management.mdx`
- `docs/content/operators/full-node/sui-full-node.mdx`
- `docs/content/develop/sui-architecture/consensus.mdx`
- `docs/content/references/cli/client.mdx`
- `docs/content/references/release-notes.mdx`
-
`docs/content/onchain-finance/deepbook-margin-sdk/deepbook-margin-sdk.mdx`
- `docs/content/operators/observability.mdx`
-
`docs/content/onchain-finance/tokenized-assets/deploy-tokenized-asset.mdx`
- `docs/content/getting-started/onboarding/install-source.mdx`

### Skipped (manual action needed)

- 🟢 **#23** [LOW]: `completion` subcommand not independently documented
- 🟢 **#24** [LOW]: `fire-drill` subcommand not documented

---

*This PR was automatically generated by the Docs Audit Fixer. Please
review the changes carefully before merging.*
jessiemongeon1 added a commit that referenced this pull request May 11, 2026
## Summary

Automated documentation fixes based on the weekly docs audit report.

### Fixed issues

- 🔴 **#1** [HIGH]: zkLogin Integration: Devnet hardcoded as the example
RPC URL
- 🟡 **#2** [MEDIUM]: Gasless Stablecoin Transfers: Eligible stablecoins
linked to a merged PR, not stable docs
- 🟡 **#3** [MEDIUM]: `references/cli.mdx`: Wrong capitalization in suiup
GitHub URL
- 🟡 **#4** [MEDIUM]: `references/cli.mdx`: `external-keys` command not
listed in CLI overview
- 🟡 **#5** [MEDIUM]: DeepBook Predict docs: pinned to feature branch
`predict-testnet-4-16` — will go stale
- 🟡 **#6** [MEDIUM]: Client CLI: Several newer commands have no examples
in `client.mdx`
- 🟡 **#7** [MEDIUM]: zkLogin demo: VITE_NETWORK=devnet in .env example
- 🟢 **#10** [LOW]: indexer `build.mdx`: "Recommended" pattern still
starts with 30-day-retention HTTPS endpoint
- 🟢 **#11** [LOW]: DeepBook Predict server URL not in main contract
information page
- 🟢 **#12** [LOW]: `references/sui-move.mdx` links to `move-summary`
snippet that may need updating

### Files changed

- `docs/content/sui-stack/zklogin-integration/index.mdx`
-
`docs/content/develop/transaction-payment/gasless-stablecoin-transfers.mdx`
- `docs/content/references/cli.mdx`
- `docs/content/onchain-finance/deepbook-predict/deepbook-predict.mdx`
- `docs/content/references/cli/client.mdx`
- `docs/content/sui-stack/zklogin-integration/zklogin-demo.mdx`
- `docs/content/develop/accessing-data/custom-indexer/build.mdx`
-
`docs/content/onchain-finance/deepbook-predict/contract-information.mdx`
- `docs/content/references/sui-move.mdx`

### Skipped (manual action needed)

- 🟢 **#8** [LOW]: `completion` subcommand still not documented
- 🟢 **#9** [LOW]: `fire-drill` subcommand still not documented

---

*This PR was automatically generated by the Docs Audit Fixer. Please
review the changes carefully before merging.*

---------

Co-authored-by: wlmyng <[email protected]>
ebmifa added a commit that referenced this pull request May 14, 2026
## Summary

Pass `"build_arm64": "false"` in the `tag-docker-images`
repository_dispatch client-payload that `trigger-builds.yml` sends to
sui-operations on every devnet/testnet/mainnet push.

This is **PR 2 of 2**. PR 1 (MystenLabs/sui-operations#7938) added the
`build_arm64` input on the receiving side (default `"true"` for
back-compat). This PR activates it for the network-branch push path.

## Why

Today, every push to devnet/testnet/mainnet fires arm64 builds via two
parallel paths:

1. `pre-build-images.yml` → `prebuild-sui-images` repository_dispatch
with `build_arm64=true` (arm64 enabled on these branches after #26653)
2. `trigger-builds.yml` → `tag-docker-images` repository_dispatch →
`tag-upload-docker-image.yml` → calls `prebuild-sui-images.yml` with
`build_arm64="true"` (hardcoded today, parameterized in
sui-operations#7938)

The arm64 rows in path #2 are mostly deduped against path #1 by mp3's
atomic-dedup logic, but ~17% slip through the dedup window when both
dispatches fire within seconds (measured against
`sui-indexer-alt-consistent-store` duplicate rate over an 18-hour
window).

With this change, path #2 stops requesting arm64 — pre-build-images.yml
is the single source of truth for arm64 image production on
network-branch push. The downstream DockerHub tagging
(`mysten/sui-node:testnet`, etc.) then re-tags the images that already
exist in GAR/DockerHub, no rebuild needed.

## What this does NOT change

- `pre-build-images.yml` (this repo) still passes `build_arm64=true` for
devnet/testnet/mainnet pushes (per #26653). Network-branch arm64
production unchanged.
- `release.yml` (this repo) still fires `tag-docker-images` without
specifying `build_arm64`, so it falls through to
`tag-upload-docker-image.yml`'s default `"true"` at release-tag
creation. Release-tag arm64 flow unchanged.
- `release.yml`'s own arm64 binary builds on `ubuntu-arm64` runners (the
`Build & Publish Binaries` matrix) — unrelated to mp3, unchanged.

## Test plan

- [x] `git diff` shows a single-line client-payload JSON change
- [x] sui-operations#7938 has landed (or will land before this) and
tag-upload-docker-image.yml now reads `client_payload.build_arm64`
- [ ] CI passes
- [ ] Post-merge: confirm next push to devnet/testnet/mainnet — arm64
builds fire from `pre-build-images.yml` only, not from
`tag-upload-docker-image.yml` rebuild path. Verify in mp3 by looking for
a single `sui-node-arm64` build entry per SHA instead of two
near-duplicate dispatches.
- [ ] Post-merge: confirm DockerHub still gets
`mysten/sui-node:testnet-arm64` tag updated (the tag-images job re-tags
existing GAR/DockerHub artifacts; no rebuild needed).

## Pass-if criteria

Within 24h of merge on the next devnet/testnet/mainnet push, mp3 should
show exactly one arm64 build dispatch per (image, SHA) tuple, sourced
from `pre-build-images.yml`. The `tag-docker-images` dispatch from this
workflow should still apply DockerHub tags but produce zero new arm64
build rows.

Depends on: MystenLabs/sui-operations#7938

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
jessiemongeon1 added a commit that referenced this pull request May 26, 2026
## Summary

Automated documentation fixes based on the weekly docs audit report.

### Fixed issues

- 🟡 **#4** [MEDIUM]: Custom indexer docs still make the 30-day HTTPS
checkpoint endpoint part of the canonical “recommended” startup command

### Files changed

- `docs/content/develop/accessing-data/custom-indexer/build.mdx`

### Skipped (manual action needed)

- 🟡 **#1** [MEDIUM]: Full node docs still point to the YAML template for
the “complete list” of `rpc` options, but the template does not contain
that list
- 🟡 **#2** [MEDIUM]: `client.mdx` still omits examples for several
commands that ship in `sui client --help`
- 🟡 **#3** [MEDIUM]: zkLogin demo still defaults to Devnet even though
the main zkLogin guide was corrected to Testnet
- 🟡 **#5** [MEDIUM]: DeepBook Predict docs still carry a stale freshness
marker and remain pinned to a dated Testnet branch
- 🟡 **#6** [MEDIUM]: New v2alpha ledger-history list APIs and their
required full-node knobs are effectively undocumented
- 🟢 **#7** [LOW]: `completion` still has no dedicated docs page
- 🟢 **#8** [LOW]: `fire-drill` still has no docs page or “internal-only”
note
- 🟢 **#9** [LOW]: `MystenLabs` GitHub URL casing is still inconsistent
in multiple docs

---

*This PR was automatically generated by the Docs Audit Fixer. Please
review the changes carefully before merging.*
ebmifa added a commit that referenced this pull request Jun 8, 2026
…extensions excluded

- release.yml sccache: not a tag-trust gap — env:release makes the sub
  environment:release, so *-v* tag trust is irrelevant; documented the two
  Phase-5 options (role #1 also trusts environment:release, or split the build
  job out of the environment).
- releases/sui-*-release: ADDED to role #1 trust (2026-06-08).
- extensions: excluded (branch 404 = unused attack surface).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ebmifa added a commit that referenced this pull request Jun 9, 2026
First trusted-branch-batch caller. Mixed-trigger (push+pull_request+dispatch),
so per the inventory it flips per event/ref via a dual-pass:

- New workflow-level SCCACHE_ROLE: the sui-sccache-rw-github ARN on trusted refs
  (main/devnet/testnet/mainnet + releases/sui-*-release), empty elsewhere.
- Both sccache jobs (clippy, test) pass role-to-assume: ${{ env.SCCACHE_ROLE }}
  AND keep the static keys. setup-sccache prefers the role when set:
    trusted push/dispatch-from-main → OIDC RW
    same-repo PR (empty role)       → static-key fallback = unchanged behavior
    fork PR                         → no creds → local cache
- Job-level id-token: write on the two sccache jobs only (diff/rustfmt untouched).

Role #1 trust was extended to releases/sui-*-release to cover release-branch CI.
PR path stays on static keys until Phase 4 (A/B/C); keys deleted in Phase 7.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ebmifa added a commit that referenced this pull request Jun 9, 2026
…extensions excluded

- release.yml sccache: not a tag-trust gap — env:release makes the sub
  environment:release, so *-v* tag trust is irrelevant; documented the two
  Phase-5 options (role #1 also trusts environment:release, or split the build
  job out of the environment).
- releases/sui-*-release: ADDED to role #1 trust (2026-06-08).
- extensions: excluded (branch 404 = unused attack surface).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ebmifa added a commit that referenced this pull request Jun 10, 2026
**Phase 3 pilot** — first of the mixed-trigger `setup-sccache` callers,
flipped with the **dual-pass** mechanic from
[`AWS_OIDC_MIGRATION_INVENTORY.md`](https://github.com/MystenLabs/sui/blob/main/.github/AWS_OIDC_MIGRATION_INVENTORY.md).
`bridge.yml` is the pilot because it's small (2 sccache jobs) **and**
has `workflow_dispatch` for immediate post-merge OIDC validation.
`rust.yml` (11) + `external.yml` (2) follow once this validates.

### Mechanic
- New **workflow-level `SCCACHE_ROLE`**: resolves to
`arn:…:role/sui-sccache-rw-github` on **trusted refs**
(`main`/`devnet`/`testnet`/`mainnet` + `releases/sui-*-release`), empty
elsewhere. Kept in sync with the role's trust policy.
- Both sccache jobs (`clippy`, `test`) pass **`role-to-assume: ${{
env.SCCACHE_ROLE }}` *and* keep the static keys**. `setup-sccache`
prefers the role when set:
  | Context | Behavior |
  |---|---|
| trusted `push` / dispatch-from-`main` | **OIDC RW** (no static keys) |
  | same-repo PR (empty role) | static-key fallback = **unchanged** |
  | fork PR | no creds → local cache |
- **Job-level `id-token: write`** on the two sccache jobs only
(`diff`/`rustfmt` keep the default — risk-scanned: no job here uses the
token for anything but checkout).

### Dependencies already in place
- Role #1 trust extended to `releases/sui-*-release` (2026-06-08) so
release-branch CI gets cache.
- The PR path stays on static keys until **Phase 4** (A/B/C decision);
static keys are deleted in **Phase 7**.

### Test plan
> **Correction:** `bridge.yml`'s `clippy`/`test` are gated on
> `needs.diff.outputs.isRust == 'true'`. This PR touches only a workflow
file, so the
> diff detector reports no Rust change and **both sccache jobs skip** —
the new path is
> **NOT exercised pre-merge** (the green checks here do not cover it).

Validation is therefore **post-merge**:
- [ ] `workflow_dispatch` from **main**, no `sui_repo_ref` →
`SCCACHE_ROLE` = ARN → OIDC; CloudTrail `AssumeRoleWithWebIdentity` for
`sui-sccache-rw-github`; sccache S3 hits.
- [ ] (negative — validates the override guard) `workflow_dispatch` from
**main** **with** `sui_repo_ref=<feature>` → `SCCACHE_ROLE` empty →
**no** assume; build uses static-key/local cache.
- [ ] Next real Rust PR → `clippy`/`test` run on `pull_request` →
static-key fallback (same-repo PR behavior unchanged).
- [ ] Next `push` to `main` → OIDC.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
ebmifa added a commit that referenced this pull request Jun 11, 2026
…extensions excluded

- release.yml sccache: not a tag-trust gap — env:release makes the sub
  environment:release, so *-v* tag trust is irrelevant; documented the two
  Phase-5 options (role #1 also trusts environment:release, or split the build
  job out of the environment).
- releases/sui-*-release: ADDED to role #1 trust (2026-06-08).
- extensions: excluded (branch 404 = unused attack surface).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ebmifa added a commit that referenced this pull request Jun 11, 2026
…tion (#26926)

Companion to `AWS_OIDC_ROLES.md` — the inventory/classification step
before flipping the remaining `setup-sccache` callers. Makes the
per-call-site, per-event/ref split explicit (mixed-trigger workflows are
trusted on protected-branch push, untrusted on PR — so it's not a clean
"these files now, those later").

### Contents
- **Status table** — warmup + nightly are OIDC ✅; remaining static-key
callers: `rust.yml` (11), `external.yml` (2), `bridge.yml` (2),
`release.yml` (1).
- **Event/ref → `sub` → "can assume RW role #1 today?" matrix** — the
core decision table.
- **Per-call-site map** (job, line, key-prefix) for all 16 remaining
sites.
- **Trust-policy gaps** that silently drop to local cache until fixed:
`releases/sui-*-release` + `extensions` branches, `*-v*` tags.
- **Phase-3 dual-pass mechanic** — pass a trusted-ref-gated
`role-to-assume` **and** keep the static keys, so trusted refs move to
OIDC immediately while same-repo PR behavior is unchanged until Phase 4.
A/B/C only changes the Phase-4 follow-up and when static keys can be
deleted.
- `release.yml` documented as **Phase 5** (credential sequencing +
tag-trust gap); the `release` GitHub Environment for its role now
exists.

Doc-only — no workflow/behavior change. Decision still needed to finish
the mixed callers: PR-cache option **A/B/C**.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
cgswords added a commit that referenced this pull request Jun 26, 2026
`Formula::classify` (BDD) already handled `from_guarded_items`. Route
`implied_by` through the same path (the conjunction is unsatisfiable
iff `classify` returns `Some(false)`) and replace
`is_disjunction_of_atoms` with a `self <-> OR(allowed ∩ self.atoms())`
BDD equivalence check. With nothing left calling `Formula::simplify`,
drop the QM module, the `SIMPLIFY_CACHE`, the `SIMPLIFY_ATOM_LIMIT`
ceiling, and the `quine-mc_cluskey` dependency.

Snapshot impact: `metadata.mv` only. `has_chunk_of_type` (the let-hoist
regression future-work #1 documented) goes back to the source-form
inline `if (l36 == &l2) { if (l38 == 1u32) {...} }` chain, and its
tautological `if (HUGE_DISJUNCTION) { return false }` wrapper collapses
to `return false`. The BDD-backed `implied_by` / `is_disjunction_of_atoms`
catch relationships the QM versions missed at the atom-count cap, which
lets the refinement pipeline fire where it previously couldn't.
stefan-mysten added a commit that referenced this pull request Jul 22, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
stefan-mysten added a commit that referenced this pull request Jul 23, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
stefan-mysten added a commit that referenced this pull request Jul 24, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
stefan-mysten added a commit that referenced this pull request Jul 30, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
stefan-mysten added a commit that referenced this pull request Jul 31, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
stefan-mysten added a commit that referenced this pull request Aug 6, 2026
… indexes

Resolves the write-once TODO on apply_local_object_diff and review finding #1
(two writers per derived index). Local execution now synchronously writes only
canonical data: object version rows and tombstones plus the live-state pointer
per transaction, and checkpoint/transaction/effects/events rows at seal time -
the rows the executor needs for read-your-writes and the embedded indexer
ingests each sealed checkpoint from. All derived indexes (owner, type,
package-version, balance, bitmaps) are written by the indexer alone.

This is safe because checkpoint publication already blocks on
ForkRuntime::wait_for_indexed_checkpoint, so RPC reads issued after an
execution returns always see fully indexed state. Pre-fork materialization
(seed and inventory saves) keeps its synchronous index writes: the indexer
only processes post-fork checkpoints. The contract is documented on
apply_local_object_diff.

Test rework:
- New e2e test_indexer_populates_derived_indexes_for_local_execution proves
  owner and balance rows for a locally executed transfer are served through
  the stock reader right after execution returns (indexer-written, publication
  gated), via a new known-recipient transfer helper.
- local_diff_moves_owner_and_type_indexes inverted into
  local_diff_leaves_derived_indexes_to_the_indexer (contract test).
- seed_save_does_not_resurrect_transferred_object now asserts the stale
  version is neither re-indexed nor made current (recipient rows are the
  indexer's job).
- Owner-index regression tests that seeded state through update_objects now
  exercise the surviving synchronous path (seed/inventory saves):
  owned_objects moves across owners, ConsensusAddressOwner collapse and
  Immutable transition clearing, pagination/filtering, and the shared
  snapshot-guard test. test_owned_objects_removes_non_address_owned_
  transitions folded into the consensus-owner test.
- test_unwrapped_write_clears_wrapped_latest keeps the live-state semantics;
  index assertions dropped. Inventory-resurrection test now asserts the
  pre-indexer contract (index empty, canonical reads serve the transfer).

sui-fork: 104 passed, 2 skipped; cargo xclippy and fmt clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
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.

3 participants