8000 build(deps): Mock generation no longer uses the `latest` tag on `mockery`. by alesforz · Pull Request #4605 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

alesforz
Copy link
Contributor
@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 review from a team as code owners December 4, 2024 10:43
@jmalicevic jmalicevic added backport-to-v1.x Tell Mergify to backport the PR to v1.x backport-to-v0.34.x Tell Mergify to backport the PR to v0.34.x backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels Dec 4, 2024
Copy link
Contributor
@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
35 checks passed
@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.34.x Tell Mergify to backport the PR to v0.34.x backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x backport-to-v1.x Tell Mergify to backport the PR to v1.x chore dependencies Dependency updates
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants
0