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

Modify workflows to test on java17 #911

Merged
merged 7 commits into from
May 10, 2024

Conversation

vasireddy99
Copy link
Contributor

@vasireddy99 vasireddy99 commented May 10, 2024

Description:

Changes were made to do java workflow to test on multiple run times for now with refactoring.
Test run that only ensures the tests run as expected.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vasireddy99 vasireddy99 requested a review from a team as a code owner May 10, 2024 02:31
Copy link
Contributor

@bryan-aguilar bryan-aguilar left a comment

Choose a reason for hiding this comment

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

General guidance here from a review point of view. I find smaller mistakes harder to find with PRs that are mostly refactoring like this one. I would advise to keep PRs like this tightly scoped around one thing. You chose to include changes to the python workflows also which polluted the PR imo.

sample-app: [ aws-sdk, okhttp ]
instrumentation-type: [ wrapper ]
confmap: [ "noop" ]
include:
Copy link
Contributor

@bryan-aguilar bryan-aguilar May 10, 2024

Choose a reason for hiding this comment

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

The include statement here was a bit hard to grok for me. Would it be easier to invert this by adding all possible values in the the matrix key values, and then using exclude instead to remove combinations we don't want? Exclude could™ be easier to read because it only requires partial matches.

It seems like most of our logic here is just excluding okhttp pairing with agent and agent-confmap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, we would also want to exclude agent-conf map to run on different runtimes of java Since agent and agent-confmap are the same tests and confmap functionality tested in single runtime is good enough. i will update the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh I looked into it seems like usage of include is better in this case. The agent-confmap will include conf map for http, https and s3. So even if we have to use exclude, unless we add instrumentation-type: agent in the matrix. we have to use include again.

correct me if my understanding is wrong.

@vasireddy99
Copy link
Contributor Author

General guidance here from a review point of view. I find smaller mistakes harder to find with PRs that are mostly refactoring like this one. I would advise to keep PRs like this tightly scoped around one thing. You chose to include changes to the python workflows also which polluted the PR imo.

yeah my bad, i thought to clean up a little up and also aimed to get alarmed when the workflow fails.

@vasireddy99 vasireddy99 merged commit fea6024 into aws-observability:main May 10, 2024
14 checks passed
@vasireddy99 vasireddy99 deleted the java17 branch May 10, 2024 21:21
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.

2 participants