这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Jul 23, 2025

  • reverts back quit chan for app lifecycle -> reason this becomes real pain to manage stop start in tests
  • fixes babylon e2e not being run
  • makes rollup e2e run in parallel

build_args := $(BUILD_ARGS)

PACKAGES_E2E=$(shell go list ./... | grep '/itest')
PACKAGES_E2E=$(shell go list -tags=e2e_babylon ./... | grep '/itest')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was missing, e2e were not ran in CI

@@ -1,5 +1,4 @@
//go:build e2e_babylon
// +build e2e_babylon
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old style prior to go 1.17

@Lazar955 Lazar955 marked this pull request as ready for review July 23, 2025 13:32
Copilot AI review requested due to automatic review settings July 23, 2025 13:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the end-to-end test infrastructure by reverting to quit channels for app lifecycle management, fixing Babylon e2e test discovery, and enabling parallel execution for rollup e2e tests.

  • Reverts from context-based cancellation back to quit channels for finality provider lifecycle management
  • Fixes Babylon e2e tests by removing duplicate build tags that prevented test discovery
  • Enables parallel execution for rollup e2e tests with proper resource isolation

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
itest/test-manager/base_test_manager.go Updates EOTS manager configuration to use unique ports and shared client connections
itest/babylon/*.go Removes redundant build tags to fix test discovery
finality-provider/service/*.go Reverts to quit channel pattern for graceful shutdown handling
bsn/rollup-finality-provider/e2e/*.go Adds parallel test execution with unique port allocation
Makefile Fixes e2e test discovery by adding build tags
CHANGELOG.md Documents the changes

Comment on lines +767 to +769
// antipattern to set env in parallel tests but we only do it here
err := os.Setenv("HMAC_KEY", eotsCfg.HMACKey)
require.NoError(t, err)
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using os.Setenv in parallel tests can cause race conditions and affect other tests. Consider using a more isolated approach like passing the environment variable through test-specific context or configuration.

Suggested change
// antipattern to set env in parallel tests but we only do it here
err := os.Setenv("HMAC_KEY", eotsCfg.HMACKey)
require.NoError(t, err)
// Pass HMAC_KEY directly through configuration instead of setting it as an environment variable
eotsCfg.HMACKey = "some-hmac-key" // Ensure HMACKey is set in the configuration

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as noted in the comment bot

@Lazar955 Lazar955 requested a review from KonradStaniec July 23, 2025 13:51
@Lazar955 Lazar955 merged commit c4b449e into main Jul 23, 2025
18 checks passed
@Lazar955 Lazar955 deleted the lazar/rollup-e2e-parallel branch July 23, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants