Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Apr 16, 2024
1 parent c04cbff commit 3f0c6f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ jobs:
if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@1877ccce17d03bd8cb3a0644df598833d5e5470f
with:
test_command_to_run: cd ./integration-tests && go test -timeout 30m -count=1 -json -test.parallel=${{ matrix.product.nodes }} ${{ steps.build-go-test-command.outputs.run_command }} 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci -singlepackage
test_command_to_run: cd ./integration-tests && go test -timeout 30m -count=1 -json -test.parallel=${{ matrix.product.nodes }} ${{ steps.build-go-test-command.outputs.run_command }} 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci -singlepackage -onlyerrors=false
test_download_vendor_packages_command: cd ./integration-tests && go mod download
cl_repo: ${{ env.CHAINLINK_IMAGE }}
cl_image_tag: ${{ inputs.evm-ref || github.sha }}${{ matrix.product.tag_suffix }}
Expand All @@ -686,14 +686,14 @@ jobs:
publish_check_name: ${{ matrix.product.name }}
token: ${{ secrets.GITHUB_TOKEN }}
go_mod_path: ./integration-tests/go.mod
go_coverage_dir: ./integration-tests/go-coverage
go_coverage_dir: ${{ github.workspace }}/integration-tests/go-coverage
cache_key_id: core-e2e-${{ env.MOD_CACHE_VERSION }}
cache_restore_only: "true"
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_KUBECONFIG: ""
should_tidy: "false"

- name: Upload Go Coverage Directory
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions integration-tests/docker/test_env/test_env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"math/big"
"os"
"path/filepath"
"testing"

"github.com/rs/zerolog"
Expand Down Expand Up @@ -261,6 +262,11 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) {
baseCoverageDir := os.Getenv("GO_COVERAGE_DIR")
if baseCoverageDir != "" {
testCoverageDir := fmt.Sprintf("%s/%s", baseCoverageDir, b.t.Name())
absolutePath, err := filepath.Abs(testCoverageDir)
if err != nil {
b.l.Err(err).Msg("Error getting absolute path")
}
b.l.Info().Str("testCoverageDir", testCoverageDir).Str("absolutePath", absolutePath).Msg("Saving coverage files for chainlink nodes")
if err := os.MkdirAll(testCoverageDir, 0755); err != nil {
b.l.Error().Err(err).Str("coverageDir", testCoverageDir).Msg("Failed to create test coverage directory")
}
Expand Down

0 comments on commit 3f0c6f1

Please sign in to comment.