Skip to content

update ctf framework and sui version#937

Closed
FelixFan1992 wants to merge 7 commits intomainfrom
update-ctf-framework
Closed

update ctf framework and sui version#937
FelixFan1992 wants to merge 7 commits intomainfrom
update-ctf-framework

Conversation

@FelixFan1992
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 16, 2026 14:34
@FelixFan1992 FelixFan1992 requested a review from a team as a code owner April 16, 2026 14:34
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 16, 2026

🦋 Changeset detected

Latest commit: a39edf0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s Go dependencies (notably CTF framework + Sui-related modules) and bumps the default Sui CTF Docker image tag used for non-arm64 environments.

Changes:

  • Bump chainlink-testing-framework/framework from v0.15.13 to v0.15.16.
  • Update Sui-related dependencies (e.g., chainlink-sui, chainlink-common, chainlink-protos/cre) and related indirect deps.
  • Update the default Sui tools Docker image tag from mysten/sui-tools:devnet-v1.61.0 to devnet-v1.69.0 in the Sui CTF provider.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
go.mod Updates required/indirect module versions to newer CTF framework + Sui ecosystem versions.
go.sum Syncs module checksums with the updated dependency graph.
chain/sui/provider/ctf_provider.go Pins the non-arm64 default Sui tools image to devnet-v1.69.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chain/sui/provider/ctf_provider.go Outdated
Copilot AI review requested due to automatic review settings April 16, 2026 15:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chain/sui/provider/ctf_provider.go Outdated
Comment thread chain/sui/provider/ctf_sui_blockchain.go Outdated
Comment thread chain/sui/provider/ctf_sui_blockchain.go Outdated
Comment on lines +89 to +92
key, err := parseSuiKeytoolGenerateJSON(keyOut)
if err != nil {
return nil, fmt.Errorf("%w (raw output: %.300q)", err, keyOut)
}
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On parse failure, the returned error wraps and includes raw output: ... from sui keytool generate --json. That raw output can contain mnemonics / key material, so including it in an error risks leaking secrets when errors are logged upstream. Prefer returning a redacted/structured error (e.g., include only a truncated, sanitized snippet or just the container command / exit status).

Copilot uses AI. Check for mistakes.
Comment thread chain/sui/provider/ctf_provider.go Outdated
}
}

// newSuiCTFBlockchainNetwork mirrors CTF blockchain.newSui but uses generateKeyDataCTF so
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can't we use/patch CTF instead? I don't think we should have this much container management inside CLDF unless we really must.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will address this in CTF first

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, if we bake this is CTF, then more people can benefit it too?

Copilot AI review requested due to automatic review settings April 16, 2026 18:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chain/sui/provider/ctf_sui_blockchain.go
Comment on lines +29 to +30
// multiplexed stream format (first byte 1=stdout / 2=stderr). Must run before stripping 0x01,
// which appears in stream headers and would corrupt the stream if removed globally.
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment mentions stripping 0x01, but this code doesn't strip 0x01 anywhere (it strips \x00 later in parseSuiKeytoolGenerateJSON). Please update the comment to reflect the actual behavior/requirement so future changes don't optimize around a nonexistent constraint.

Suggested change
// multiplexed stream format (first byte 1=stdout / 2=stderr). Must run before stripping 0x01,
// which appears in stream headers and would corrupt the stream if removed globally.
// multiplexed stream format (first byte 1=stdout / 2=stderr). This must run before any later
// output sanitization/parsing because those leading bytes are part of Docker's stream headers;
// parseSuiKeytoolGenerateJSON later strips only "\x00" bytes after the stream has been demuxed.

Copilot uses AI. Check for mistakes.
@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
78.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@FelixFan1992 FelixFan1992 deleted the update-ctf-framework branch April 20, 2026 21:27
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.

4 participants