Skip to content

Conversation

@maru-ava
Copy link
Contributor

@maru-ava maru-ava commented Nov 20, 2025

Why this should be merged

Migrates coreth CI to be able to run in this repo.

I highly recommend reviewing this commit by commit, since there's a lot of unrelated lint fixes in this PR. This helps you see the necessary scope

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

@maru-ava maru-ava self-assigned this Nov 20, 2025
@maru-ava maru-ava moved this to Ready 🚦 in avalanchego Nov 20, 2025
@maru-ava maru-ava linked an issue Nov 20, 2025 that may be closed by this pull request
9 tasks
# Load the constants
source "$CORETH_PATH"/scripts/constants.sh
REPO_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
source "$REPO_ROOT"/scripts/constants.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see any relevant configuration in the coreth version of this file that wasn't available in the avalanchego version, and figured it was better to use the same file.

@maru-ava maru-ava force-pushed the maru/migrate-coreth-5-ci branch 2 times, most recently from f21c6f2 to e607ec7 Compare November 20, 2025 18:16

EXCLUDED_TARGETS="| grep -v /mocks | grep -v proto | grep -v tests/e2e | grep -v tests/load/c | grep -v tests/upgrade | grep -v tests/fixture/bootstrapmonitor/e2e | grep -v tests/reexecute"

if [[ "$(go env GOOS)" == "windows" ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discovered while changing this file - we don't test on windows anymore

@@ -1,10 +0,0 @@
# - Will execute on entry to the containing directory only if authorized with `direnv allow`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No real reason to include this here but since I do use direnv I was getting annoyed at constantly being asked to allow it to load.

run:
description: "the bash script to run e.g. ./scripts/my-script.sh"
required: true
working_directory:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was required to allow usage of the action from the graft/coreth path.

# ./scripts/tests.e2e.sh
# ./scripts/tests.e2e.sh --ginkgo.label-filter=x # All arguments are supplied to ginkgo
# E2E_SERIAL=1 ./scripts/tests.e2e.sh # Run tests serially
# E2E_TARGET=./graft/coreth/tests/warp ./scripts/tests.e2e.sh # Run the warp e2e tests
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated this file to support reuse by the warp suite for consistency of execution across e2e suites

# Copy and download avalanche dependencies using go mod
COPY go.mod .
COPY go.sum .
COPY graft/coreth ./graft/coreth
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this the subsequent line fails due to the replace directive pointing to a local path

@maru-ava maru-ava force-pushed the maru/migrate-coreth-5-ci branch from 4be60d2 to 34bff07 Compare November 20, 2025 18:44
@maru-ava maru-ava requested a review from PlatCore November 20, 2025 18:45
@maru-ava maru-ava force-pushed the maru/migrate-coreth-5-ci branch from 34bff07 to ac2d18f Compare November 20, 2025 19:18
@maru-ava maru-ava force-pushed the maru/migrate-coreth-5-ci branch 2 times, most recently from eedd219 to af72459 Compare November 20, 2025 19:26
@alarso16 alarso16 force-pushed the maru/migrate-coreth-5-ci branch 2 times, most recently from 5e8d6e0 to 8b7b2f8 Compare November 20, 2025 21:40
@alarso16
Copy link
Contributor

The coreth unit test failures will be fixed with ava-labs/coreth#1421, but requires a tricky rebase on PR 2 after it's merged. So we can worry about that later

@alarso16 alarso16 force-pushed the maru/migrate-coreth-5-ci branch 3 times, most recently from 63b9def to 2764713 Compare November 21, 2025 20:50
@alarso16 alarso16 force-pushed the maru/migrate-coreth-5-ci branch from 2764713 to a7d7eff Compare November 21, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Ready 🚦

Development

Successfully merging this pull request may close these issues.

Migrate coreth repo to grafts/coreth

3 participants