-
Notifications
You must be signed in to change notification settings - Fork 10
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
[python]attempt to enable telemetry tests for python [INPLAT-36] #3284
Conversation
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 think you need to define python weblogs in utils/docker_ssi/docker_ssi_definitions.py
Yes, I think we can set this PR as draft, because we need to add the python scripts, docker files.... |
@robertomonteromiguel let me know if this looks right to you. I believe I've got it all working with the exception of the tests actually passing, since there's a known issue with Python wherein it doesn't send SSI telemetry (iirc). |
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.
There is still one error on CI
@@ -32,6 +31,7 @@ def setup_install_supported_runtime(self): | |||
@bug( | |||
condition="centos-7" in context.weblog_variant and context.library == "java", reason="APMON-1490", | |||
) | |||
@bug(condition=context.library == "python", reason="INPLAT-11") |
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 are pointing to a jira task. We should point to a jira issue. If there is not issue, we can use the missing_feature decorator instead of bug decorator.
Also thinking about splitting this test method: test_for_traces and test_for_telemetry. What do you think?
@@ -322,7 +322,9 @@ def build_weblog_image(self, ssi_installer_docker_tag): | |||
buildargs={"DD_LANG": self._library, "BASE_IMAGE": ssi_installer_docker_tag}, | |||
) | |||
self.print_docker_build_logs(self.ssi_all_docker_tag, build_logs) | |||
logger.stdout(f"[tag:{weblog_docker_tag}] Building weblog app on base image [{self.ssi_all_docker_tag}].") | |||
logger.stdout( | |||
f"0000[tag:{weblog_docker_tag}] Building weblog app on base image [{self.ssi_all_docker_tag}]." |
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.
remove 0000
@@ -332,16 +334,17 @@ def build_weblog_image(self, ssi_installer_docker_tag): | |||
nocache=self._force_build or self.should_push_base_images, | |||
buildargs={"BASE_IMAGE": self.ssi_all_docker_tag}, | |||
) | |||
logger.info("Weblog build done 000000000!") |
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.
remove this trace
@@ -117,5 +146,15 @@ def get_version_id(version): | |||
WEBSPHERE_APP = WeblogDescriptor("websphere-app", "java", [SupportedImages().WEBSPHERE_AMD64]) | |||
JBOSS_APP = WeblogDescriptor("jboss-app", "java", [SupportedImages().JBOSS_AMD64]) | |||
|
|||
UBUNTU22_PY_APP = WeblogDescriptor( |
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 should change this name from "UBUNTU22_PY_APP " to "PY_APP "
Adds smoke tests for auto-injection telemetry from dd-trace-py. Currently skipped as
bug
due to DataDog/dd-trace-py#11101Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present