-
Notifications
You must be signed in to change notification settings - Fork 1.2k
load yaml tests from same branch as client #3169
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
load yaml tests from same branch as client #3169
Conversation
99dd070 to
f788efc
Compare
f788efc to
7c41234
Compare
| if pytest_test_name.startswith(prefix): | ||
| pytest_test_name = pytest_test_name[len(prefix) :] | ||
| pytest_param_id = "%s[%d]" % (pytest_test_name, test_number) | ||
| pytest_param_id = "[%s]%s[%d]" % (branch, pytest_test_name, test_number) |
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.
We do not have to keep this forever, but initially this will be confirmation of which of all the possible branches was used in the end.
7c41234 to
4ad28b4
Compare
|
This is failing due to: However, that test is part of |
9e91d83 to
f102c82
Compare
pquentin
left a comment
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.
Thanks! LGTM.
|
|
||
| from elasticsearch import ApiError, ElasticsearchWarning, RequestError | ||
| from elasticsearch._sync.client.utils import _base64_auth_header | ||
| from elasticsearch._version import __versionstr__ |
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.
For what it's worth, importlib.metadata.version is the modern way to do that. Not asking you to change it though!
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.
I trust that we are less likely to break this in the future than the Python org.
* load yaml tests from same branch as client * restore checks for failed or skipped tests (cherry picked from commit b1ad37a)
* load yaml tests from same branch as client * restore checks for failed or skipped tests (cherry picked from commit b1ad37a)
* load yaml tests from same branch as client * restore checks for failed or skipped tests (cherry picked from commit b1ad37a)
* load yaml tests from same branch as client * restore checks for failed or skipped tests (cherry picked from commit b1ad37a)
This change tries to load the YAML tests for CI from the same branch as the client, instead of always loading
main. When running a PR build, the branch is not going to exist in the YAML tests repository, so in that case we fallback tomainas before.