Skip to content

build(deps): Mock generation no longer uses the latest tag on mockery.#4605

Merged
alesforz merged 2 commits intomainfrom
alesforz/fix-mockery-version
Dec 4, 2024
Merged

build(deps): Mock generation no longer uses the latest tag on mockery.#4605
alesforz merged 2 commits intomainfrom
alesforz/fix-mockery-version

Conversation

@alesforz
Copy link
Collaborator

@alesforz alesforz commented Dec 4, 2024

Context

Using latest for mockery causes changes in the mocks with almost every new release, which in turn makes our CI fail. By fixing mockery's version, we can prevent this issue. Additionally, mockery's documentation suggests not to use latest anyway, so we were doing it incorrectly from the start.

Changes

This PR pins the mockery version to v2.49.2 (the latest release). The main branch already uses mocks generated with this version, so using any other version of mockery would alter the mocks again. At least we get the benefit from the latest bug fixes.


PR checklist

  • [ ] Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • [ ] Updated relevant documentation (docs/ or spec/) and code comments

Using `latest` for `mockery` causes changes in the mocks with almost every new
release, which in turn makes our CI fail. By fixing `mockery`'s version, we can
prevent this issue. Additionally, `mockery`'s documentation suggests not to use
`latest` anyway, so we were doing it incorrectly from the start.
@alesforz alesforz self-assigned this Dec 4, 2024
@alesforz alesforz added dependencies Dependency updates chore labels Dec 4, 2024
@alesforz alesforz marked this pull request as ready for review December 4, 2024 10:43
@alesforz alesforz requested a review from a team as a code owner December 4, 2024 10:43
@alesforz alesforz requested a review from a team December 4, 2024 10:43
@jmalicevic jmalicevic added backport-to-v1.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels Dec 4, 2024
Copy link
Collaborator

@jmalicevic jmalicevic left a comment

Choose a reason for hiding this comment

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

Can you please follow up with the backport PRs? I think you will have to checkout the branches and regenerate the mocks before merging the change, otherwise the CI will fail on those branches.

Thanks for this!

@alesforz alesforz added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 13d852b Dec 4, 2024
@alesforz alesforz deleted the alesforz/fix-mockery-version branch December 4, 2024 13:24
mergify bot pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (#4605)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~

(cherry picked from commit 13d852b)
mergify bot pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (#4605)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~

(cherry picked from commit 13d852b)

# Conflicts:
#	.changelog/v0.38.12/dependencies/4605-fix-mockery-version.md
mergify bot pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (#4605)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~

(cherry picked from commit 13d852b)

# Conflicts:
#	.changelog/v0.37.11/dependencies/4605-fix-mockery-version.md
mergify bot pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (#4605)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~

(cherry picked from commit 13d852b)

# Conflicts:
#	scripts/mockery_generate.sh
alesforz pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (backport #4605) (#4607)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.
alesforz pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (backport #4605) (#4608)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.
alesforz pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (backport #4605) (#4609)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.
alesforz pushed a commit that referenced this pull request Dec 4, 2024
…ery`. (backport #4605) (#4610)

### Context
Using `latest` for `mockery` causes changes in the mocks with almost
every new release, which in turn makes our CI fail. By fixing
`mockery`'s version, we can prevent this issue. Additionally,
`mockery`'s documentation suggests not to use `latest` anyway, so we
were doing it incorrectly from the start.

### Changes
This PR pins the `mockery` version to `v2.49.2` (the latest release).
The `main` branch already uses mocks generated with this version, so
using any other version of `mockery` would alter the mocks again. At
least we get the benefit from the latest bug fixes.
@coderabbitai coderabbitai bot mentioned this pull request Feb 4, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x chore dependencies Dependency updates

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants