Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add helper to build solana programs #15819

Draft
wants to merge 2 commits into
base: yn-solana
Choose a base branch
from
Draft

add helper to build solana programs #15819

wants to merge 2 commits into from

Conversation

tt-cll
Copy link

@tt-cll tt-cll commented Dec 30, 2024

time=2024-12-30T17:22:38.751-05:00 level=INFO msg="Building project with Anchor..."
    deploy_link_token_sol_test.go:306: Address: FYAaeKAywZncwzX6AhK3GiwaakysiGSTbf581wwATo3D
    deploy_link_token_sol_test.go:307: TypeAndVersion: ccip_router 1.0.0
    deploy_link_token_sol_test.go:306: Address: 6yE44W7gaRHs5G3ojM9sxz7Ztim7VhPqQv7q16Uz1Wmu
    deploy_link_token_sol_test.go:307: TypeAndVersion: external_program_cpi_stub 1.0.0
    deploy_link_token_sol_test.go:306: Address: 2hFfFuS9H76sczbHdnYpkh2GASZXQsrZqqFtPXYAVKq3
    deploy_link_token_sol_test.go:307: TypeAndVersion: mcm 1.0.0
    deploy_link_token_sol_test.go:306: Address: 47XUz59Q97CdMbzZmj9cvBtxsbD8HRiTkqmZoE7c7CSo
    deploy_link_token_sol_test.go:307: TypeAndVersion: timelock 1.0.0
    deploy_link_token_sol_test.go:306: Address: 22ZM4tUipUGZcrwsYh47HVTfJKADEqUiELoikkAwW2GV
    deploy_link_token_sol_test.go:307: TypeAndVersion: token_pool 1.0.0
    deploy_link_token_sol_test.go:306: Address: GjCUiFp4VsAmcLNGQ4n3zfQDsPnkPaZNpnA4L18QaHf5
    deploy_link_token_sol_test.go:307: TypeAndVersion: access_controller 1.0.0
    deploy_link_token_sol_test.go:306: Address: GpR4oEnpiPM6RGrz12WYbexhjF2sr1f2zrzfmH2XD1hu
    deploy_link_token_sol_test.go:307: TypeAndVersion: ccip_invalid_receiver 1.0.0
    deploy_link_token_sol_test.go:306: Address: 13LLS8XevVmRXFSBqaMWPMXjWqT7AJZUxhaAiPdE9hfC
    deploy_link_token_sol_test.go:307: TypeAndVersion: ccip_receiver 1.0.0

Copy link
Contributor

github-actions bot commented Dec 30, 2024

AER Report: CI Core

aer_workflow , commit , Detect Changes , Scheduled Run Frequency , Clean Go Tidy & Generate , Flakeguard Root Project / Get Tests To Run , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_fuzz) , Core Tests (go_core_race_tests) , GolangCI Lint (.) , GolangCI Lint (deployment) , test-scripts , Flakeguard Deployment Project / Get Tests To Run , Flakeguard Root Project / Run Tests , Flakeguard Root Project / Report , Flakeguard Deployment Project / Run Tests , Flakeguard Deployment Project / Report , lint , SonarQube Scan , Flakey Test Detection

1. Not enough arguments in call to deployment.NewEnvironment:[Golang Lint (deployment)]

Source of Error:
deployment/environment/crib/ccip_deployer.go:1: : # github.com/smartcontractkit/chainlink/deployment/environment/crib [github.com/smartcontractkit/chainlink/deployment/environment/crib.test]
environment/crib/types.go:37:59: not enough arguments in call to deployment.NewEnvironment
	have (string, "github.com/smartcontractkit/chainlink-common/pkg/logger".Logger, "github.com/smartcontractkit/chainlink/deployment".AddressBook, map[uint64]"github.com/smartcontractkit/chainlink/deployment".Chain, []string, nil, func() "context".Context, "github.com/smartcontractkit/chainlink/deployment".OCRSecrets)
	want (string, "github.com/smartcontractkit/chainlink-common/pkg/logger".Logger, "github.com/smartcontractkit/chainlink/deployment".AddressBook, map[uint64]"github.com/smartcontractkit/chainlink/deployment".Chain, map[uint64]"github.com/smartcontractkit/chainlink/deployment".SolChain, []string, "github.com/smartcontractkit/chainlink/deployment".OffchainClient, func() "context".Context, "github.com/smartcontractkit/chainlink/deployment".OCRSecrets) (typecheck)
**Why**: The function `deployment.NewEnvironment` is being called with fewer arguments than required. The function signature expects additional parameters, specifically `map[uint64]"github.com/smartcontractkit/chainlink/deployment".SolChain` and `"github.com/smartcontractkit/chainlink/deployment".OffchainClient`.

Suggested fix: Update the call to deployment.NewEnvironment to include the missing arguments as per the function's signature.

2. API server not ready yet:[Run tests]

Source of Error:
environment.go:198: API server not ready yet (attempt 1)
environment.go:198: API server not ready yet (attempt 2)
environment.go:198: API server not ready yet (attempt 3)
environment.go:198: API server not ready yet (attempt 4)
environment.go:198: API server not ready yet (attempt 5)
environment.go:198: API server not ready yet (attempt 6)
environment.go:198: solana-test-validator is ready at http://127.0.0.1:8899
**Why**: The Solana test validator's API server took multiple attempts to become ready, indicating potential delays or issues in the startup process.

Suggested fix: Investigate the startup process of the Solana test validator to ensure it initializes promptly. Consider adding more robust health checks or increasing the timeout duration.

3. Unable to bind faucet to address:[Run tests]

Source of Error:
stdout: Error: failed to start faucet: Unable to bind faucet to 0.0.0.0:8877, check the address is not already in use: Address already in use (os error 98)
**Why**: The faucet service failed to start because the address `0.0.0.0:8877` is already in use, likely due to another process binding to the same port.

Suggested fix: Ensure that the port 8877 is free before starting the faucet service. You can also configure the service to use a different port if necessary.

4. "exit status 1" does not contain "signal: killed":[Run tests]

Source of Error:
assertions.go:229: 
	Error Trace:	chain.go:125
			testing.go:1176
			testing.go:1354
			testing.go:1684
	Error:		"exit status 1" does not contain "signal: killed"
	Messages:	exit status 1
**Why**: The test expected an error message containing "signal: killed" but received "exit status 1" instead. This indicates a mismatch in the expected and actual error messages.

Suggested fix: Update the test assertions to match the actual error message or investigate why the expected "signal: killed" message is not being generated.

5. Updates to go.mod needed; to update it:[Clean Go Tidy & Generate]

Source of Error:
go: updates to go.mod needed; to update it:
	go mod tidy
error: exit status 1
**Why**: The `go.mod` file is out of date and requires updates to reflect the current dependencies.

Suggested fix: Run go mod tidy to update the go.mod file and ensure all dependencies are correctly listed.

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@cl-sonarqube-production
Copy link

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