Skip to content

Commit

Permalink
Merge branch 'ccip-develop' into fix/lbtc-observed-http
Browse files Browse the repository at this point in the history
  • Loading branch information
bukata-sa authored Dec 13, 2024
2 parents 9d7ed6f + 61344f3 commit e6d65c4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
8 changes: 3 additions & 5 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Most of the contracts are licensed under the [MIT](https://choosealicense.com/licenses/mit/) license.
An exception to this is the ccip folder, which defaults to be licensed under the [BUSL-1.1](./src/v0.8/ccip/LICENSE.md) license, however, there are a few exceptions

The CCIP repo is licensed under the [BUSL-1.1](./src/v0.8/ccip/LICENSE.md) license, however, there are a few exceptions

- `src/v0.8/ccip/applications/*` is licensed under the [MIT](./src/v0.8/ccip/LICENSE-MIT.md) license
- `src/v0.8/ccip/interfaces/*` is licensed under the [MIT](./src/v0.8/ccip/LICENSE-MIT.md) license
- `src/v0.8/ccip/libraries/{Client.sol, Internal.sol}` is licensed under the [MIT](./src/v0.8/ccip/LICENSE-MIT.md) license
- `src/v0.8/ccip/applications/*` is licensed under the [MIT](https://choosealicense.com/licenses/mit/) license
- `src/v0.8/ccip/interfaces/*` is licensed under the [MIT](https://choosealicense.com/licenses/mit/) license
- `src/v0.8/ccip/libraries/{Client.sol, Internal.sol}` is licensed under the [MIT](https://choosealicense.com/licenses/mit/) license
1 change: 0 additions & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"src/v0.8/vendor/Pausable.sol",
"abi/v0.8/",
"src/v0.8/ccip/LICENSE.md",
"src/v0.8/ccip/LICENSE-MIT.md",
"src/v0.8/ccip/v1.5-CCIP-License-grants.md",
"!src/v0.8/ccip/test/**/*",
"src/v0.8/ccip/test/mocks/**/*",
Expand Down
21 changes: 0 additions & 21 deletions contracts/src/v0.8/ccip/LICENSE-MIT.md

This file was deleted.

23 changes: 23 additions & 0 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/config"
"github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/environment"
"github.com/smartcontractkit/chainlink-testing-framework/lib/networks"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/osutil"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/testcontext"

integrationactions "github.com/smartcontractkit/chainlink/integration-tests/actions"
Expand Down Expand Up @@ -1386,6 +1387,10 @@ func (o *CCIPTestSetUpOutputs) CreateEnvironment(
t.Cleanup(func() {
if configureCLNode {
if ccipEnv.LocalCluster != nil {
if t.Failed() || (ccipEnv.LocalCluster.TestConfig.GetLoggingConfig() != nil && ccipEnv.LocalCluster.TestConfig.GetLoggingConfig().TestLogCollect != nil && *ccipEnv.LocalCluster.TestConfig.GetLoggingConfig().TestLogCollect) {
flushClLogs(*lggr, ccipEnv.LocalCluster)
}

err := ccipEnv.LocalCluster.Terminate()
require.NoError(t, err, "Local cluster termination shouldn't fail")
require.NoError(t, o.Reporter.SendReport(t, namespace, false), "Aggregating and sending report shouldn't fail")
Expand All @@ -1406,6 +1411,24 @@ func (o *CCIPTestSetUpOutputs) CreateEnvironment(
return chainByChainID
}

func flushClLogs(l zerolog.Logger, testEnv *test_env.CLClusterTestEnv) {
l.Info().Msg("Shutting down LogStream")
logPath, err := osutil.GetAbsoluteFolderPath("logs")
if err == nil {
l.Info().Str("Absolute path", logPath).Msg("LogStream logs folder location")
}

l.Info().Msg("Flushing LogStream logs")
// we can't do much if this fails, so we just log the error in LogStream
if err := testEnv.LogStream.FlushAndShutdown(); err != nil {
l.Error().Err(err).Msg("Error flushing and shutting down LogStream")
}
testEnv.LogStream.PrintLogTargetsLocations()
testEnv.LogStream.SaveLogLocationInTestSummary()

l.Info().Msg("Finished shutting down LogStream")
}

func createEnvironmentConfig(t *testing.T, envName string, testConfig *CCIPTestConfig, reportPath string) *environment.Config {
envConfig := &environment.Config{
NamespacePrefix: envName,
Expand Down

0 comments on commit e6d65c4

Please sign in to comment.