Skip to content

Conversation

@marun
Copy link

@marun marun commented Sep 20, 2024

Why this should be merged

#1318 added image build validation, but only included support for testing against published avalanchego versions. Since subnet-evm CI frequently needs to target unmerged avalanchego commits, this oversight can break CI for version bump PRs.

How this works

Updates the test to build the avalanchego image locally if it cannot be pulled. The logic that maintained the local avalanchego clone was extracted from the antithesis test script for reuse in the image build test script.

How this was tested

CI validates against regression, and the changes in this PR were validated by rebasing the changes against the latest bump PR that targets an unmerged avalanchego commit and confirming that the test still passed.

How is this documented

Code comments.

@marun marun added the testing This primarly focuses on testing label Sep 20, 2024
@marun marun self-assigned this Sep 20, 2024
@marun marun requested review from a team, ceyonur and darioush as code owners September 20, 2024 18:27
@marun marun force-pushed the testing-image-build-for-unmerged-commit branch from 46a7671 to 5be3d84 Compare September 20, 2024 18:28
@marun marun force-pushed the testing-image-build-for-unmerged-commit branch from 5be3d84 to 45e139b Compare September 20, 2024 18:30
@marun marun changed the title Testing image build for unmerged commit [testing] Fix image build validation for unmerged avalanchego commit Sep 20, 2024
@ceyonur ceyonur enabled auto-merge (squash) September 20, 2024 18:50
Copy link
Collaborator

@ceyonur ceyonur left a comment

Choose a reason for hiding this comment

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

LGTM

@ceyonur ceyonur merged commit 7aef2f9 into master Sep 20, 2024
@ceyonur ceyonur deleted the testing-image-build-for-unmerged-commit branch September 20, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing This primarly focuses on testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants