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

[MISC] Update data-platform-libs: data_interfaces to 34 #220

Closed
wants to merge 3 commits into from

Conversation

lucasgameiroborges
Copy link
Member

No description provided.

@lucasgameiroborges lucasgameiroborges changed the title [MISC] Update data-platform-libs: data_interfaces to 34 and upgrade to 16 [MISC] Update data-platform-libs: data_interfaces to 34 Apr 23, 2024
@patch_network_get(private_address="1.1.1.1")
@patch("charm.JujuVersion.has_secrets", new_callable=PropertyMock, return_value=True)
def test_migration_from_single_secret(self, scope, is_leader, _):
@pytest.mark.usefixtures("with_juju_secrets")
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently, juju secrets are not enabled in this test with the old patch, which is why I had to use the new fixture here (and also on canonical/pgbouncer-k8s-operator#277). Me and @shayancanonical investigated this issue, trying to figure out why the behavior is different, to no avail. If someone has an explanation to why that is, please let me know.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's been an issue I'm lobbying for from the start.

I stronlgy believe that ALL unittests must be run both with and without secrets.
I think on mysql-router we have a way to run them as such, in the same pipeline (allowing for coverage results collection -- which is normally the contra-argument why not to do it in the "easy way" in separate pieplines).

I can only ask for this once again... Guys please run ALL your unittests both with and without secrets.
It's virtually impossible to follow, which of your worklfows may or may not use them. Since peer data is used pretty much everywhere.

The safe way (and reaslitic feedback for coverage) is to run all unittests under both "secret-ful" and "secret-less".

@dragomirp
Copy link
Contributor

Duplicate of #207

@dragomirp dragomirp marked this as a duplicate of #207 Apr 23, 2024
@dragomirp
Copy link
Contributor

Superseded by #207

@dragomirp dragomirp closed this Apr 29, 2024
@lucasgameiroborges lucasgameiroborges deleted the lucas/update-lib branch June 10, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants