Skip to content

pkg/settings/cresettings: add/use WASM limits#1629

Merged
jmank88 merged 2 commits intomainfrom
CRE-614-cap-limits-3
Oct 21, 2025
Merged

pkg/settings/cresettings: add/use WASM limits#1629
jmank88 merged 2 commits intomainfrom
CRE-614-cap-limits-3

Conversation

@jmank88
Copy link
Copy Markdown
Contributor

@jmank88 jmank88 commented Oct 20, 2025

https://smartcontract-it.atlassian.net/browse/CRE-614

Added:

  • WASMCompressedBinarySizeLimit
  • WASMConfigSizeLimit
  • WASMSecretsSizeLimit
  • WASMResponseSizeLimit

Supports:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 20, 2025

⚠️ API Diff Results - Breaking changes detected

📦 Module: github-com-smartcontractkit-chainlink-common

🔴 Breaking Changes (1)

pkg/workflows/wasm/host (1)
  • NewModule — Type changed:
func(
  + context.Context, 
  *ModuleConfig, 
  []byte, 
  ...func(*ModuleConfig)
)
(*module, error)

📄 View full apidiff report

}

func NewModule(modCfg *ModuleConfig, binary []byte, opts ...func(*ModuleConfig)) (*module, error) {
func NewModule(ctx context.Context, modCfg *ModuleConfig, binary []byte, opts ...func(*ModuleConfig)) (*module, error) {
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.

I tried to find a way to avoid breaking this signature, but there's not an elegant way around it without just introducing a new func to use instead. Happy to do that instead if folks prefer 🤷

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.

I suppose another variation would be to extract the binary size checks to be pre-construction in order to avoid the issue and simplify this implementation. The fact that we already check the binary size elsewhere suggests that we could simplify a bit too.

Comment thread pkg/settings/cresettings/settings.go Outdated
@jmank88 jmank88 marked this pull request as ready for review October 21, 2025 14:33
@jmank88 jmank88 requested review from a team as code owners October 21, 2025 14:33
@jmank88 jmank88 requested a review from patrickhuie19 October 21, 2025 19:45
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 4f51003 Previous: 1dea7be Ratio
BenchmarkKeystore_Sign/nop/in-process 742.6 ns/op 367.6 ns/op 2.02

This comment was automatically generated by workflow using github-action-benchmark.

@jmank88 jmank88 merged commit e0b8677 into main Oct 21, 2025
21 of 25 checks passed
@jmank88 jmank88 deleted the CRE-614-cap-limits-3 branch October 21, 2025 20:08
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