-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Make :libs:agent-sm:bootstrap api dependency in tests
#17871
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
Make :libs:agent-sm:bootstrap api dependency in tests
#17871
Conversation
The AgentPolicy class is needed at both compile time and runtime. Signed-off-by: Andrew Ross <andrross@amazon.com>
|
I think we need to fix the |
reta
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.
@andrross we cannot do that: the :libs:agent-sm:bootstrap is shared between agent and application, but it must reside where the agent is (see please https://github.com/opensearch-project/OpenSearch/blob/main/libs/agent-sm/agent/build.gradle#L32C1-L32C50). If we do that, the agent will not see any policy. I am submitting a fix shortly.
Shouldn't Gradle trigger a build since it depends on the task in |
|
❕ Gradle check result for 6df5d95: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17871 +/- ##
============================================
- Coverage 72.44% 72.36% -0.09%
- Complexity 66483 66497 +14
============================================
Files 5409 5409
Lines 308282 308258 -24
Branches 44759 44749 -10
============================================
- Hits 223344 223076 -268
- Misses 66608 66960 +352
+ Partials 18330 18222 -108 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
My experience today was that IntelliJ tried reading |
|
@andrross just to give you an idea, we could definitely improve that, but here is how we would need to approach plugins: opensearch-project/custom-codecs#235, still working to get the builds green but the idea is there, thanks! |
So does this needs to be fixed on individual plugin? or in core? Thanks. |
I think we could improve core build tooling to significantly simplify changes, but not sure yet we could eliminate it 100% |
Actually, i was wrong -- running the command line build somehow caused IntelliJ to "keep going" after failing on the I commented out the |
Agreed, same experience @msfroh |
|
Ahh -- here's why it hangs: Kotlin/kotlinx-atomicfu#497 |
|
With some help from Claude, I was able to fix it by modifying the |
Could you please submit a pull request for it @msfroh ? Thank you! |
The AgentPolicy class is needed at both compile time and runtime.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.