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

Cappl 3 ph #15125

Draft
wants to merge 21 commits into
base: develop
Choose a base branch
from
Draft

Cappl 3 ph #15125

wants to merge 21 commits into from

Conversation

patrickhuie19
Copy link
Contributor

Requires

Supports

justinkaseman and others added 6 commits November 5, 2024 14:52
Comment to build plugins

Updated

Use goreleaser for compute WASM artifacts
* Prep @chainlink/contracts v1.3.0 release

* Update contracts release date for v1.3.0
* Revert "fix: pinning goreleaser version to fix builds (#15108)"

This reverts commit 8bbff53.

* fix: arm64 dist directory
* adds OZ AccessControl support to the registry module

* [Bot] Update changeset file with jira issues

* fix snap

* update version

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Nov 5, 2024

Static analysis results are available

Hey @cedric-cordenier, you can view Slither reports in the job summary here or download them as artifact here.
Please check them before merging and make sure you have addressed all issues.

@justinkaseman justinkaseman added the build-publish Build and Publish image to SDLC label Nov 5, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

AER Report: CI Core

aer_workflow , commit , Detect Changes , Clean Go Tidy & Generate , Scheduled Run Frequency , Find New Flaky Tests In Root Project / Find Tests To Run , lint , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_race_tests) , Find New Flaky Tests In Deployment Project , Core Tests (go_core_fuzz) , Find New Flaky Tests In Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/workflows/store) , Find New Flaky Tests In Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/standardcapabilities) , Find New Flaky Tests In Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/workflows) , Flakey Test Detection , SonarQube Scan , Find New Flaky Tests In Root Project / Report

1. Race condition detected in tests:[go_core_race_tests]

Source of Error:
Run tests	2024-11-07T17:03:03.4906307Z + echo 'Race(s) detected'
Run tests	2024-11-07T17:03:03.4906884Z Race(s) detected
Run tests	2024-11-07T17:03:03.4907538Z + exit 1
Run tests	2024-11-07T17:03:03.4925478Z ##[error]Process completed with exit code 1.
**Why**: The test suite detected a race condition, which indicates that multiple threads or processes are accessing shared data concurrently without proper synchronization.

Suggested fix: Use synchronization mechanisms like mutexes or channels to ensure that shared data is accessed in a thread-safe manner.

2. Foreign key constraint violation:[github.com/smartcontractkit/chainlink/v2/core/services/workflows/store]

Source of Error:
Run tests with flakeguard	2024-11-07T16:58:33.3596355Z 	 	could not insert workflow execution 6ac237bf6b80d4236ea8829fc919694b4a7dea0a359c3a8c1102fd2441c4932b: ERROR: insert or update on table "workflow_executions" violates foreign key constraint "workflow_executions_workflow_id_fkey" (SQLSTATE 23503)
Run tests with flakeguard	2024-11-07T16:58:33.3598820Z 	Test: 	Test_StoreDB_GetUnfinishedSteps
Run tests with flakeguard	2024-11-07T16:58:33.3599828Z --- FAIL: Test_StoreDB_GetUnfinishedSteps (0.01s)
Run tests with flakeguard	2024-11-07T16:58:33.3600342Z 
Run tests with flakeguard	2024-11-07T16:58:33.3600672Z Summary: 6 passed, 0 skipped, 1 failed
Run tests with flakeguard	2024-11-07T16:58:33.3601532Z All test results saved to test-result.json
Run tests with flakeguard	2024-11-07T16:58:33.3620198Z ##[error]Process completed with exit code 1.
**Why**: The test failed because it attempted to insert a record into the `workflow_executions` table that references a non-existent `workflow_id`, violating the foreign key constraint.

Suggested fix: Ensure that the referenced workflow_id exists in the workflows table before attempting to insert the record.

3. Linting errors:[golangci-lint]

Source of Error:
Golang Lint	2024-11-07T17:00:34.8112214Z core/services/standardcapabilities/standard_capabilities_test.go:7: File is not `goimports`-ed with -local github.com/smartcontractkit/chainlink (goimports)
Golang Lint	2024-11-07T17:00:34.8179154Z ##[error]core/services/workflows/syncer/workflow_registry.go:36:2: field `wg` is unused (unused)
Golang Lint	2024-11-07T17:00:34.8180360Z 	wg sync.WaitGroup
Golang Lint	2024-11-07T17:00:34.8180848Z 	^
Golang Lint	2024-11-07T17:00:34.8182633Z ##[error]core/services/standardcapabilities/standard_capabilities_test.go:48:1: unnecessary trailing newline (whitespace)
Golang Lint	2024-11-07T17:00:34.8183720Z 
Golang Lint	2024-11-07T17:00:34.8183878Z ^
Golang Lint	2024-11-07T17:00:34.8186907Z ##[error]core/services/workflows/syncer/workflow_registry.go:95:18: printf: (github.com/smartcontractkit/chainlink/v2/core/logger.Logger).Errorf call has arguments but no formatting directives (govet)
Golang Lint	2024-11-07T17:00:34.8188939Z 		w.Logger.Errorf("failed to get workflow spec", err)
Golang Lint	2024-11-07T17:00:34.8189728Z 		 ^
Golang Lint	2024-11-07T17:00:34.8192834Z ##[error]core/services/workflows/syncer/workflow_registry.go:113:3: printf: (github.com/smartcontractkit/chainlink/v2/core/logger.Logger).Errorf does not support error-wrapping directive %w (govet)
Golang Lint	2024-11-07T17:00:34.8194827Z 		w.Logger.Errorf("failed to create engine: %w", err)
Golang Lint	2024-11-07T17:00:34.8195664Z 		^
Golang Lint	2024-11-07T17:00:34.8198600Z ##[error]core/services/workflows/syncer/workflow_registry.go:118:3: printf: (github.com/smartcontractkit/chainlink/v2/core/logger.Logger).Errorf does not support error-wrapping directive %w (govet)
Golang Lint	2024-11-07T17:00:34.8201398Z 		w.Logger.Errorf("failed to start hardcoded workflow: %w", err)
Golang Lint	2024-11-07T17:00:34.8202446Z 		^
Golang Lint	2024-11-07T17:00:34.8205640Z ##[error]core/services/workflows/syncer/workflow_registry.go:129:4: printf: (github.com/smartcontractkit/chainlink/v2/core/logger.Logger).Errorf does not support error-wrapping directive %w (govet)
Golang Lint	2024-11-07T17:00:34.8207763Z 			w.Logger.Errorf("could not close hardcoded engine: %w", err)
Golang Lint	2024-11-07T17:00:34.8208494Z 			^
**Why**: The linting errors include issues such as unused variables, improper formatting, and incorrect usage of logging functions.

Suggested fix:

  • Remove or use the unused wg field.
  • Format the file using goimports.
  • Remove unnecessary trailing newlines.
  • Correct the usage of Errorf by adding proper formatting directives or using the correct logging method.

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Flaky Test Detector for ./go.mod project has failed ❌

Ran new or updated tests between develop and 2744b82 (CAPPL-3-ph).

View Flaky Detector Details | Compare Changes

Failed Tests

Ran 51 tests in total for all affected test packages. Below are the tests identified as flaky, with a pass ratio lower than the 100% threshold:

TestPackage                                                             TestName                                     PassRatio  RunCount   Skipped
---------                                                               ---------                                    ---------  ---------  ---------
github.com/smartcontractkit/chainlink/v2/core/services/workflows/store  Test_StoreDB_GetUnfinishedSteps              0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_GracefulEarlyTermination          0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_GetsNodeInfoDuringInitialization  0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_TimesOutOldExecutions             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_MultiStepDependencies             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_ResumesPendingExecutions          0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_WrapsTargets                      0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableSuccessAfterRetries             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableErrorAfterMultipleRetries       0%         1          false

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Flaky Test Detector for ./go.mod project has failed ❌

Ran new or updated tests between develop and a69ca05 (CAPPL-3-ph).

View Flaky Detector Details | Compare Changes

Failed Tests

Ran 44 tests in total for all affected test packages. Below are the tests identified as flaky, with a pass ratio lower than the 100% threshold:

TestPackage                                                             TestName                                     PassRatio  RunCount   Skipped
---------                                                               ---------                                    ---------  ---------  ---------
github.com/smartcontractkit/chainlink/v2/core/services/workflows/store  Test_StoreDB_GetUnfinishedSteps              0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_ErrorsTheWorkflowIfAStepErrors    0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_GracefulEarlyTermination          0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_TimesOutOldExecutions             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableSuccessOnFirstAttempt           0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_ResumesPendingExecutions          0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_GetsNodeInfoDuringInitialization  0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableCancellationHandling            0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_WrapsTargets                      0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableZeroMaxRetries                  0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestParse_Graph                              0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_MultiStepDependencies             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestRetryableSuccessAfterRetries             0%         1          false

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Flaky Test Detector for ./go.mod project has failed ❌

Ran new or updated tests between develop and 3fc7c0d (CAPPL-3-ph).

View Flaky Detector Details | Compare Changes

Failed Tests

Ran 61 tests in total for all affected test packages. Below are the tests identified as flaky, with a pass ratio lower than the 100% threshold:

TestPackage                                                             TestName                                     PassRatio  RunCount   Skipped
---------                                                               ---------                                    ---------  ---------  ---------
github.com/smartcontractkit/chainlink/v2/core/services/workflows/store  Test_StoreDB_GetUnfinishedSteps              0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_GetsNodeInfoDuringInitialization  0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_TimesOutOldExecutions             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_WrapsTargets                      0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_MultiStepDependencies             0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_ResumesPendingExecutions          0%         1          false
github.com/smartcontractkit/chainlink/v2/core/services/workflows        TestEngine_ErrorsTheWorkflowIfAStepErrors    0%         1          false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-publish Build and Publish image to SDLC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants