-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Functional tests - fix and re-enable module API tests #102477
Conversation
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
for (const packageDefinition of body.response) { | ||
if (packageDefinition.name === packageName) { | ||
if (packageDefinition.version) { | ||
log.debug(` > found version '${packageDefinition.version}'`); | ||
packageVersion = packageDefinition.version as string; | ||
break; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, this could be written with less code.
for (const { name, version } of body.response) {
if (name === packageName && version) {
log.debug(` > found version '${version}'`);
packageVersion = version as string;
break;
}
}
or even something like
const packageVersion = body.response.find(({name, version}) => name === packageName && version)?.version ?? ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in aac44cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @pheyos |
…02477) This PR fixes and re-enables the temporarily skipped API test suite for ML modules.
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
…102510) This PR fixes and re-enables the temporarily skipped API test suite for ML modules. Co-authored-by: Robert Oskamp <[email protected]>
Summary
This PR fixes and re enables the temporarily skipped API test suite for ML modules.
Details
[error][fleet][plugins] apache-0.5.0 is out-of-date and cannot be installed or updated
.Closes #102282
Closes #102283