Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add a job for checking fuel-core versions between sdk-harness and test suite #5930

Merged

Conversation

kayagokalp
Copy link
Member

Description

We are currently out of sync in between sdk-harness and test suite, this is not ideal due to couple of reasons:

  1. It is not nice to have our two test suites, testing with different versions of fuel-core, which means we do not test one version completely in the sense of our e2e and sdk-harness tests.
  2. It can create problems in CI if a contract id needs to be updated, when the out-of sync versions are incompatible. (for example: one is using version 0.1.0, one is using 0.2.0)

The added job will fail and inform the dev bumping fuel-core version, to also bump it in sdk-harness or in general make them in sync.

The reason we need this as a CI job is we cannot enforce it via cargo. Since adding sdk-harness to the sway repo workspace, it creates our well known cyclic dependency between sdk and sway. So this should be checked in CI.

@kayagokalp kayagokalp added enhancement New feature or request ci labels Apr 26, 2024
@kayagokalp kayagokalp self-assigned this Apr 26, 2024
Copy link
Member

@sdankel sdankel left a comment

Choose a reason for hiding this comment

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

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@kayagokalp
Copy link
Member Author

Was it expected to fail? https://github.com/FuelLabs/sway/actions/runs/8852823845/job/24312281868?pr=5930

It should fail as this is a current problem that we have but not like this. The script needs a little bit more attention. Currently trying to fix it locally.

@kayagokalp
Copy link
Member Author

Looks like sway repo bumped to fuel-core already. So this should not fail

@kayagokalp
Copy link
Member Author

kayagokalp commented Apr 26, 2024

97f4f20 (action link) shows it fails correctly once the versions are mismatched.

@kayagokalp kayagokalp enabled auto-merge (squash) April 26, 2024 19:37
@kayagokalp kayagokalp requested review from sdankel and a team April 26, 2024 19:38
@kayagokalp kayagokalp merged commit ec22cb6 into master Apr 27, 2024
36 checks passed
@kayagokalp kayagokalp deleted the kayagokalp/fuel-core-test-suite-sdk-harness-compat-ci branch April 27, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants