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

integration-tests/smoke: add plugins variant to TestOCRv2Basic #11633

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Dec 20, 2023

No description provided.

Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@jmank88 jmank88 marked this pull request as ready for review December 20, 2023 13:14
@jmank88 jmank88 requested a review from a team as a code owner December 20, 2023 13:14
Copy link
Contributor

@ilija42 ilija42 left a comment

Choose a reason for hiding this comment

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

Does this affect CI? Not completely sure how these smoke tests are ran, IIUC it uses this same smoke test for plugin and non plugin variant, but just builds it differently?

@jmank88 jmank88 force-pushed the smoke-ocr2-basic-plugins branch from 7e5d285 to 4397b40 Compare December 20, 2023 13:19
@jmank88
Copy link
Contributor Author

jmank88 commented Dec 20, 2023

Does this affect CI? Not completely sure how these smoke tests are ran, IIUC it uses this same smoke test for plugin and non plugin variant, but just builds it differently?

Yes, you can see the subtest in the logs for the ocr2-* jobs. There is a -plugins variant already, but that is running a different dockerfile, which has all plugins, and enables them by default. This test will execute on the regular docker file too, which has limited plugins, and disables them by default. This way we try the feature flag both ways on both images.

It does run more than necessary though, since there are so many ocr2-* variants for eth clients, so maybe there is a better way to organize this. 🤔
cc @kalverra

@kalverra
Copy link
Collaborator

It does run more than necessary though, since there are so many ocr2-* variants for eth clients, so maybe there is a better way to organize this. 🤔

These are new additions that I'm currently working on moving to a nightly job instead of every PR. If you feel the plugins tests need a similar treatment we can move them to that style as well.

I would prefer to make it a little more explicit what this is meant to do regarding running on a regular image with feature flags shut off. Maybe make a comment along with renaming the sub test to with-disabled-plugins or something?

@jmank88
Copy link
Contributor Author

jmank88 commented Dec 20, 2023

These are new additions that I'm currently working on moving to a nightly job instead of every PR. If you feel the plugins tests need a similar treatment we can move them to that style as well.

It is important to run on every PR, but only once. So maybe this is fine as-is, but could wait for that PR first?

I would prefer to make it a little more explicit what this is meant to do regarding running on a regular image with feature flags shut off. Maybe make a comment along with renaming the sub test to with-disabled-plugins or something?

Can you elaborate?
The sub-tests are named legacy and plugins which is a pattern we've established in a few places. The regular image has the feature disabled already, so legacy env vars are a no-op, but plugins validates that we can enable the feature. The -plugins image has it enabled by default, so legacy disables and plugins is a no-op.

(we will be able to drop the -plugins image eventually - hopefully in Q1)

@kalverra
Copy link
Collaborator

It is important to run on every PR, but only once. So maybe this is fine as-is, but could wait for that PR first?

By "it" here, do you mean the plugins tests? Or the client tests?

(we will be able to drop the -plugins image eventually - hopefully in Q1)

Ah, okay, never mind then.

@jmank88
Copy link
Contributor Author

jmank88 commented Dec 20, 2023

It is important to run on every PR, but only once. So maybe this is fine as-is, but could wait for that PR first?

By "it" here, do you mean the plugins tests? Or the client tests?

I mean plugins.

Clients are less significant, although we could probably trigger it for certain chains/evm/clients paths or whatever is related 🤷

nolag
nolag previously approved these changes Dec 20, 2023
@kalverra
Copy link
Collaborator

Clients are less significant, although we could probably trigger it for certain chains/evm/clients paths or whatever is related

We're on the same page then. I'll keep it to just nightly for now, unless you have some specific paths in mind at the moment.

ilija42
ilija42 previously approved these changes Dec 20, 2023
@jmank88 jmank88 dismissed stale reviews from ilija42 and nolag via 6cc7fed December 21, 2023 22:38
@jmank88 jmank88 force-pushed the smoke-ocr2-basic-plugins branch from c4b8c44 to 08be111 Compare December 21, 2023 22:59
@jmank88
Copy link
Contributor Author

jmank88 commented Dec 21, 2023

Rebased since merge conflicts were a mess.

@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jmank88 jmank88 requested a review from kalverra December 21, 2023 23:28
@kalverra kalverra added this pull request to the merge queue Dec 21, 2023
Merged via the queue into develop with commit 9b425d0 Dec 22, 2023
79 checks passed
@kalverra kalverra deleted the smoke-ocr2-basic-plugins branch December 22, 2023 00:06
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.

4 participants