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

increase soak time #305

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 2 additions & 24 deletions .github/workflows/e2e_custom_cl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,13 @@ jobs:
RUSTUP_HOME: "/root/.rustup"
FORCE_COLOR: 1
steps:
- name: Install latest Git version (>= 2.18.0) for actions/checkout
run: |
apt-get install software-properties-common -y
add-apt-repository ppa:git-core/ppa
apt update
apt install git -y
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1
- uses: smartcontractkit/tool-versions-to-env-action@v1.0.7
id: tool-versions
- name: Setup go ${{ steps.tool-versions.outputs.golang_version }}
uses: actions/setup-go@v2
with:
go-version: ${{ steps.tool-versions.outputs.golang_version }}
- run: echo "$HOME"
- run: echo "$PATH"
- run: yarn install --frozen-lockfile
- name: Generate build artifacts for go bindings check
run: anchor build
working-directory: contracts
- name: Check generated go bindings are up to date
run: |
go install github.com/gagliardetto/anchor-go@v0.2.3
./scripts/anchor-go-gen.sh
git diff --stat --exit-code
- name: Generate program_ids
run: ./scripts/programs-keys-gen.sh
- name: Generate build artifacts with custom program_ids
run: anchor build
- run: anchor build
working-directory: contracts
- name: Upload Artifacts
uses: actions/upload-artifact@master
Expand Down Expand Up @@ -144,4 +122,4 @@ jobs:
uses: actions/upload-artifact@v2.2.4
with:
name: test-logs
path: /home/runner/work/chainlink-solana/chainlink-solana/tests/e2e/logs
path: /home/runner/work/chainlink-solana/chainlink-solana/tests/e2e/logs
1 change: 1 addition & 0 deletions .github/workflows/soak.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: E2E Soak Test
on:
push:
schedule:
- cron: '0 */3 * * *'
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test_smoke:
SELECTED_NETWORKS=solana NETWORK_SETTINGS=$(shell pwd)/tests/e2e/networks.yaml ginkgo tests/e2e/smoke

test_ocr_soak:
SELECTED_NETWORKS=solana NETWORK_SETTINGS=$(shell pwd)/tests/e2e/networks.yaml ginkgo tests/e2e/soak
SELECTED_NETWORKS=solana NETWORK_SETTINGS=$(shell pwd)/tests/e2e/networks.yaml ginkgo --timeout=12h tests/e2e/soak

test_chaos:
SELECTED_NETWORKS=solana NETWORK_SETTINGS=$(shell pwd)/tests/e2e/networks.yaml ginkgo tests/e2e/chaos
4 changes: 2 additions & 2 deletions tests/e2e/soak/ocr2_soak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ var _ = Describe("Solana OCRv2 soak test @ocr2-soak", func() {
var state = common.NewOCRv2State(30, 5)
BeforeEach(func() {
By("Deploying OCRv2 cluster", func() {
state.DeployCluster(5, false, utils.ContractsDir)
state.DeployCluster(5, true, utils.ContractsDir)
state.SetAllAdapterResponsesToTheSameValue(10)
})
})
Describe("with Solana", func() {
It("performs OCR rounds", func() {
state.ValidateRoundsAfter(time.Now(), common.NewSoakRoundsCheckTimeout, 200)
state.ValidateRoundsAfter(time.Now(), common.NewSoakRoundsCheckTimeout, 2000)
})
})
AfterEach(func() {
Expand Down
12 changes: 11 additions & 1 deletion tests/e2e/solclient/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@ func NewChainlinkSolOCRv2(nodes int, stateful bool) *environment.Config {
if stateful {
env.Charts["chainlink"].Values["db"] = map[string]interface{}{
"stateful": true,
"capacity": "2Gi",
"capacity": "5Gi",
"resources": map[string]interface{}{
"requests": map[string]interface{}{
"cpu": "4000m",
"memory": "4000Mi",
},
"limits": map[string]interface{}{
"cpu": "4000m",
"memory": "4000Mi",
},
},
}
}
return env
Expand Down