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

[v3.2] Fix CI only testing with the legacy event system adapter #4888

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

waiting-for-dev
Copy link
Contributor

Summary

Backports #4880 to v3.2

From #4666 all CI jobs have
been running with the legacy event system. We were defaulting the
legacy parameter to 0, which we copied over to the
USE_LEGACY_EVENTS environment variable. However, the test suite was
checking for the mere existence of the environment variable to select
the legacy adapter and not for an actual 1 value.

We are now:

  • Renaming the legacy parameter to legacy_events to be clearer.
  • Making the parameter a boolean one, defaulting to false.
  • Checking that USE_LEGACY_EVENTS is the string "true" before
    selecting the legacy adapter.
  • Using the legacy adapter for the job on Ruby 2.7 & Rails 6.0.
  • Adding -legacy_events to the job name when selected.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages.
  • ~[ ] I have documented new code with YARD~

The following are not always needed (cross them out if they are not):

  • [ ] I have added automated tests to cover my changes.
  • [ ] I have attached screenshots to demo visual changes.
  • [ ] I have opened a PR to update the guides.
  • [ ] I have updated the README to account for my changes.

@waiting-for-dev waiting-for-dev requested a review from a team as a code owner January 30, 2023 04:47
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Jan 30, 2023
From solidusio#4666 all CI jobs have
been running with the legacy event system. We were defaulting the
`legacy` parameter to `0`, which we copied over to the
`USE_LEGACY_EVENTS` environment variable. However, the test suite was
checking for the mere existence of the environment variable to select
the legacy adapter and not for an actual `1` value.

We are now:

- Renaming the `legacy` parameter to `legacy_events` to be clearer.
- Making the parameter a boolean one, defaulting to false.
- Checking that `USE_LEGACY_EVENTS` is the string `"true"` before
  selecting the legacy adapter.
- Using the legacy adapter for the job on Ruby 2.7 & Rails 6.0.
- Adding `-legacy_events` to the job name when selected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant