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

Rc june 2024 #92

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Rc june 2024 #92

merged 3 commits into from
Jun 28, 2024

Conversation

gonzalemario
Copy link
Contributor

No description provided.

Copy link
Contributor

@barthisrael barthisrael left a comment

Choose a reason for hiding this comment

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

Besides the comment left in the changed files, as discussed in Slack I think we should just ignore Pyright errors for now (by setting # pyright: ignore [reportCallIssue] on both exec_diagnose lines) so we unblock the release for now.

Ideally that should've been implemented in a different way, so we wouldn't need to silence pyright. I mean, by using logic which depends on the Barman module version instead of on an AttributeError Exception. But changing that now would require some time to change the code, change the tests, perform tests again, ...

pg_backup_api/news.yml Outdated Show resolved Hide resolved
pg_backup_api/news.md Outdated Show resolved Hide resolved
pg_backup_api/news.yml Outdated Show resolved Hide resolved
pg_backup_api/version.txt Outdated Show resolved Hide resolved
barthisrael and others added 2 commits June 28, 2024 13:11
`pyright` was complaining about the `exec_diagnose`. That issue occurs because
based on the Barman module version that is installed in the virtual
environemnt, the signature of that method would have either 2 or 4 parameters.

We had 2 options to handle that issue:

* Add `pyright: ignore` directives to the source code where `exec_diagnose` is
  called; or
* Change the implementation so instead of relying on `AttributeError`
  exception, it would handle the version for the Barman module.

We chose the first option for now, so we unblock the release. The code with
`AttributeError` exception has already been tested. If we were to go with the
second option now, that would require changing the code, changing the unit tests
and performing more tests, thus dealying the release.

Signed-off-by: Israel Barth Rubio <[email protected]>
@gonzalemario gonzalemario merged commit b199075 into main Jun 28, 2024
14 checks passed
@barthisrael barthisrael deleted the rc-june-2024 branch June 28, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants