Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ DEVNET_IMAGE=aptoslabs/tools:aptos-node-v1.18.0
DEVNET_WS_PORT=8081
DEVNET_HTTP_PORT=8080
DEVNET_FAUCET_PORT=8081
DEVNET_CHAIN_ID="localnet"
DEVNET_CHAIN_ID=4

# Core config
CORE_NODE_COUNT=6
CORE_NODE_COUNT=5
CORE_IMAGE=chainlink-aptos
CORE_VERSION=latest
CORE_REPO="https://github.com/smartcontractkit/chainlink.git"
CORE_HTTP_PORT=6688
CORE_P2P_PORT=6690

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/aptos-run-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Build chainlink image
working-directory: temp/chainlink
run: |
# TODO(gg): is this still needed?
docker buildx build --build-arg COMMIT_SHA=$(git rev-parse HEAD) -t local_chainlink -f plugins/chainlink.Dockerfile .

- name: Build chainlink-aptos image
Expand Down Expand Up @@ -111,9 +112,6 @@ jobs:
run: |
set -e
cd integration-tests
# TODO: remove if scripts get fixed, see https://github.com/smartcontractkit/chainlink/commit/71f72665217bc17325c27109c107fb93b96e2607
echo "replace github.com/smartcontractkit/chainlink/core/scripts => ../temp/chainlink/core/scripts" >> go.mod
echo "replace github.com/smartcontractkit/chainlink/v2 => ../temp/chainlink" >> go.mod
go mod tidy
TEST_LOG_LEVEL=${{env.TEST_LOG_LEVEL}} go test -timeout 24h -count=1 -run TestOCR3Keystone ./smoke

Expand Down
6 changes: 5 additions & 1 deletion integration-tests/deploy/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func New(lggr *zerolog.Logger) *Deployer {
if err != nil {
panic("Could not create docker network")
}
lggr.Info().Msgf("Created docker network: %s", network)
return &Deployer{
lggr: lggr,
Network: network,
Expand Down Expand Up @@ -282,10 +283,12 @@ func (d *Deployer) DeployCore() error {
d.lggr.Info().Msg(buf.String())

dbUrl = fmt.Sprintf("postgresql://%s:%s@%s:%s/%s", d.Postgres.Config.Env["POSTGRES_USER"], d.Postgres.Config.Env["POSTGRES_PASSWORD"], d.Postgres.Config.Name, d.Postgres.Config.Ports[0], dbName)
d.lggr.Info().Msgf("Database URL: %s", dbUrl)
d.lggr.Info().Msgf("api_credentials: %s %s", coreConfig.Email, coreConfig.Password)
req := testcontainers.ContainerRequest{
Image: coreConfig.Image,
ExposedPorts: coreConfig.Ports,
WaitingFor: wait.ForLog("Listening and serving HTTP"),
WaitingFor: wait.ForLog("Listening and serving HTTP").WithStartupTimeout(10 * time.Minute),
Networks: []string{d.Network},
NetworkAliases: map[string][]string{
d.Network: {containerName},
Expand All @@ -296,6 +299,7 @@ func (d *Deployer) DeployCore() error {
"CL_CONFIG": tomlString,
"CL_DATABASE_URL": fmt.Sprintf("%s?sslmode=disable", dbUrl),
"CL_PASSWORD_KEYSTORE": "notastrongpassword",
"CL_EVM_CMD": "", // Disable LOOPP mode for EVM to enable ReplayFromBlock
},
Entrypoint: []string{"bash", "-c", fmt.Sprintf("echo -e \"%s\\n%s\" > /tmp/api_credentials && chainlink node start --api /tmp/api_credentials", coreConfig.Email, coreConfig.Password)},
}
Expand Down
2 changes: 2 additions & 0 deletions integration-tests/deploy/devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func (d *Deployer) DeployDevnet() error {
"run-local-testnet",
"--with-faucet",
"--force-restart",
"--test-dir",
"/testnet",
"--bind-to",
"0.0.0.0",
},
Expand Down
170 changes: 62 additions & 108 deletions integration-tests/go.mod

Large diffs are not rendered by default.

312 changes: 171 additions & 141 deletions integration-tests/go.sum

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions integration-tests/templates/ocr_config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"OracleConfig": {
"MaxQueryLengthBytes": 1000000,
"MaxObservationLengthBytes": 1000000,
"MaxReportLengthBytes": 1000000,
"MaxRequestBatchSize": 1000,
"UniqueReports": true,
"DeltaProgressMillis": 5000,
"DeltaResendMillis": 5000,
Expand All @@ -13,14 +9,18 @@
"DeltaCertifiedCommitRequestMillis": 1000,
"DeltaStageMillis": 30000,
"MaxRoundsPerEpoch": 10,
"TransmissionSchedule": [
4
],
"TransmissionSchedule": [4],
"MaxDurationQueryMillis": 1000,
"MaxDurationObservationMillis": 1000,
"MaxDurationReportMillis": 1000,
"MaxDurationAcceptMillis": 1000,
"MaxDurationTransmitMillis": 1000,
"MaxFaultyOracles": 1
"MaxDurationShouldAcceptMillis": 1000,
"MaxDurationShouldTransmitMillis": 1000,
"MaxFaultyOracles": 1,
"ConsensusCapOffchainConfig": {
"MaxQueryLengthBytes": 1000000,
"MaxObservationLengthBytes": 1000000,
"MaxReportLengthBytes": 1000000,
"MaxBatchSize": 1000,
"RequestTimeout": "30s"
}
}
}
Loading