Skip to content

Commit

Permalink
[AUTO-5283] Fix automation benchmark, on-demands tests (#10640)
Browse files Browse the repository at this point in the history
* Increase DB disk space for benchmark test

Signed-off-by: anirudhwarrier <anirudhwarrier@users.noreply.github.com>

* update ondemand tests and benchmark test workflows

Signed-off-by: anirudhwarrier <anirudhwarrier@users.noreply.github.com>

* add keepers-team codeowners ondemand tests benchmark test workflows

Signed-off-by: anirudhwarrier <anirudhwarrier@users.noreply.github.com>

* update P2Pv2Bootstrapper - service name change in helm chart

---------

Signed-off-by: anirudhwarrier <anirudhwarrier@users.noreply.github.com>
Co-authored-by: anirudhwarrier <anirudhwarrier@users.noreply.github.com>
  • Loading branch information
anirudhwarrier and anirudhwarrier authored Oct 6, 2023
1 parent 05d7b5a commit 59cb265
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automation-benchmark-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
description: Chainlink image version to use
required: true
type: string
default: 2.0.0
default: 2.5.0
chainlinkImage:
description: Chainlink image repo to use
required: true
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/automation-ondemand-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ on:
description: Chainlink image repo to use (Leave empty to build from head/ref)
required: false
type: string
chainlinkVersionUpdate:
description: Chainlink image version to use initially for upgrade test
default: latest
required: true
type: string
chainlinkImageUpdate:
description: Chainlink image repo to use initially for upgrade test
required: true
default: public.ecr.aws/chainlink/chainlink
type: string

env:
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ github.sha }}
Expand Down Expand Up @@ -156,8 +166,8 @@ jobs:
echo "upgrade_version=${{ inputs.chainlinkVersion }}" >>$GITHUB_OUTPUT
fi
if [[ "${{ matrix.tests.name }}" == "upgrade" ]]; then
echo "image=${{ env.CHAINLINK_IMAGE }}" >>$GITHUB_OUTPUT
echo "version=develop" >>$GITHUB_OUTPUT
echo "image=${{ inputs.chainlinkImageUpdate }}" >>$GITHUB_OUTPUT
echo "version=${{ inputs.chainlinkVersionUpdate }}" >>$GITHUB_OUTPUT
fi
- name: Run Tests
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@eccde1970eca69f079d3efb3409938a72ade8497 # v2.2.13
Expand All @@ -174,6 +184,7 @@ jobs:
test_download_vendor_packages_command: cd ./integration-tests && go mod download
cl_repo: ${{ steps.determine-build.outputs.image }}
cl_image_tag: ${{ steps.determine-build.outputs.version }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_location: ./integration-tests/${{ matrix.tests.suite }}/logs
publish_check_name: Automation On Demand Results ${{ matrix.tests.name }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ contracts/test/v0.8/functions @smartcontractkit/functions
/.github/workflows/integration-chaos-tests.yml @smartcontractkit/test-tooling-team
/.github/workflows/integration-tests-publish.yml @smartcontractkit/test-tooling-team
/.github/workflows/performance-tests.yml @smartcontractkit/test-tooling-team
/.github/workflows/automation-ondemand-tests.yml @smartcontractkit/keepers
/.github/workflows/automation-benchmark-tests.yml @smartcontractkit/keepers

/core/chainlink.Dockerfile @smartcontractkit/prodsec-public

Expand Down
3 changes: 2 additions & 1 deletion integration-tests/actions/automation_ocr_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func CreateOCRKeeperJobs(
}
_, err = bootstrapNode.MustCreateJob(bootstrapSpec)
require.NoError(t, err, "Shouldn't fail creating bootstrap job on bootstrap node")
P2Pv2Bootstrapper := fmt.Sprintf("%s@%s:%d", bootstrapP2PId, bootstrapNode.Name(), 6690)
// TODO: Use service name returned by chainlink-env once that is available
P2Pv2Bootstrapper := fmt.Sprintf("%s@%s-node-1:%d", bootstrapP2PId, bootstrapNode.Name(), 6690)

for nodeIndex := 1; nodeIndex < len(chainlinkNodes); nodeIndex++ {
nodeTransmitterAddress, err := chainlinkNodes[nodeIndex].EthAddresses()
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/benchmark/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ LimitDefault = 5_000_000`
},
},
"stateful": true,
"capacity": "1Gi",
"capacity": "10Gi",
}

soakChainlinkResources = map[string]interface{}{
Expand All @@ -108,7 +108,7 @@ LimitDefault = 5_000_000`
},
},
"stateful": true,
"capacity": "1Gi",
"capacity": "10Gi",
}
)

Expand Down

0 comments on commit 59cb265

Please sign in to comment.