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

Added rest layer for the workflow. #963

Merged
merged 9 commits into from
Jun 21, 2023

Conversation

eirsep
Copy link
Member

@eirsep eirsep commented Jun 16, 2023

Added rest layer for the workflow. Added secure tests and rest tests.
Feature branch PR merged: Added rest layer for the workflow. Added secure tests

CheckList:
[x] Commits are signed per the DCO using --signoff

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.

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #963 (3e88438) into main (32c0bb0) will increase coverage by 0.12%.
The diff coverage is 91.89%.

@@             Coverage Diff              @@
##               main     #963      +/-   ##
============================================
+ Coverage     74.74%   74.86%   +0.12%     
+ Complexity      111      110       -1     
============================================
  Files           141      144       +3     
  Lines          8263     8336      +73     
  Branches       1206     1212       +6     
============================================
+ Hits           6176     6241      +65     
- Misses         1477     1478       +1     
- Partials        610      617       +7     
Impacted Files Coverage Δ
...arch/alerting/resthandler/RestGetWorkflowAction.kt 77.77% <77.77%> (ø)
...ch/alerting/resthandler/RestIndexWorkflowAction.kt 93.93% <93.93%> (ø)
...n/kotlin/org/opensearch/alerting/AlertingPlugin.kt 94.27% <100.00%> (+0.12%) ⬆️
...h/alerting/resthandler/RestDeleteWorkflowAction.kt 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

stevanbz and others added 4 commits June 19, 2023 11:53
…ject#886)

* Added rest layer for the workflow. Added secure tests

Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
…utils

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
@eirsep
Copy link
Member Author

eirsep commented Jun 21, 2023

The integ tests are failing on the docker cluster even when run without security also.
This test failure is unrelated to the current changes.

 alerting git:(workflows_rest) ✗ ./gradlew :alerting:integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername=docker-cluster -Dsecurity=false --tests "org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions"  
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 8.1.1
  OS Info               : Mac OS X 13.4 (x86_64)
  JDK Version           : 17 (Amazon Corretto JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home
  Random Testing Seed   : 3034714BFCDF2F08
  In FIPS 140 mode      : false
=======================================

> Task :alerting:integTest

REPRODUCE WITH: ./gradlew ':alerting:integTest' --tests "org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions" -Dtests.seed=3034714BFCDF2F08 -Dtests.security.manager=false -Dtests.locale=pl-PL -Dtests.timezone=America/Indiana/Marengo -Druntime.java=17

org.opensearch.alerting.DocumentMonitorRunnerIT > test execute monitor generates alerts and findings with per alert execution for actions FAILED
    java.lang.AssertionError: expected:<Hello bKWbqetCyW> but was:<null>
        at __randomizedtesting.SeedInfo.seed([3034714BFCDF2F08:CED06F677ED54A80]:0)
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:120)
        at org.junit.Assert.assertEquals(Assert.java:146)
        at org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions(DocumentMonitorRunnerIT.kt:267)


Suite: Test class org.opensearch.alerting.DocumentMonitorRunnerIT
  1> [2023-06-20T20:02:36,133][INFO ][o.o.a.DocumentMonitorRunnerIT] [test execute monitor generates alerts and findings with per alert execution for actions] before test
  1> [2023-06-20T20:02:36,398][INFO ][o.o.a.DocumentMonitorRunnerIT] [test execute monitor generates alerts and findings with per alert execution for actions] initializing REST clients against [http://localhost:9200]
  2> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  2> SLF4J: Defaulting to no-operation (NOP) logger implementation
  2> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  1> [2023-06-20T20:02:40,585][INFO ][o.o.a.DocumentMonitorRunnerIT] [test execute monitor generates alerts and findings with per alert execution for actions] after test
  2> REPRODUCE WITH: ./gradlew ':alerting:integTest' --tests "org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions" -Dtests.seed=3034714BFCDF2F08 -Dtests.security.manager=false -Dtests.locale=pl-PL -Dtests.timezone=America/Indiana/Marengo -Druntime.java=17
  2> java.lang.AssertionError: expected:<Hello bKWbqetCyW> but was:<null>
        at __randomizedtesting.SeedInfo.seed([3034714BFCDF2F08:CED06F677ED54A80]:0)
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:120)
        at org.junit.Assert.assertEquals(Assert.java:146)
        at org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions(DocumentMonitorRunnerIT.kt:267)
  2> NOTE: leaving temporary files on disk at: /Users/snistala/Documents/opensearch/alerting/alerting/build/testrun/integTest/temp/org.opensearch.alerting.DocumentMonitorRunnerIT_3034714BFCDF2F08-001
  2> NOTE: test params are: codec=Asserting(Lucene95): {}, docValues:{}, maxPointsInLeafNode=1758, maxMBSortInHeap=5.1566091754186205, sim=Asserting(RandomSimilarity(queryNorm=false): {}), locale=pl-PL, timezone=America/Indiana/Marengo
  2> NOTE: Mac OS X 13.4 x86_64/Amazon.com Inc. 17.0.7 (64-bit)/cpus=10,threads=1,free=286841120,total=536870912
  2> NOTE: All tests run in this JVM: [DocumentMonitorRunnerIT]

Tests with failures:
 - org.opensearch.alerting.DocumentMonitorRunnerIT.test execute monitor generates alerts and findings with per alert execution for actions

1 test completed, 1 failed

=== Standard output of node `node{:alerting:integTest-0}` ===

»    ↓ errors and warnings from /Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/logs/opensearch.stdout.log ↓
» WARN ][o.o.g.DanglingIndicesState] [integTest-0] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
» WARN ][o.o.d.FileBasedSeedHostsProvider] [integTest-0] expected, but did not find, a dynamic hosts list at [/Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/config/unicast_hosts.txt]
»   ↓ last 40 non error or warning messages from /Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/logs/opensearch.stdout.log ↓
» [2023-06-20T17:02:29,536][INFO ][o.o.d.DiscoveryModule    ] [integTest-0] using discovery type [zen] and seed hosts providers [settings, file]
» [2023-06-20T17:02:30,201][INFO ][o.o.n.Node               ] [integTest-0] initialized
» [2023-06-20T17:02:30,202][INFO ][o.o.n.Node               ] [integTest-0] starting ...
» [2023-06-20T17:02:30,474][INFO ][o.o.t.TransportService   ] [integTest-0] publish_address {127.0.0.1:64300}, bound_addresses {[::1]:64299}, {127.0.0.1:64300}
» [2023-06-20T17:02:30,482][INFO ][o.o.t.TransportService   ] [integTest-0] Remote clusters initialized successfully.
» [2023-06-20T17:02:30,698][DEBUG][o.o.c.c.Coordinator      ] [integTest-0] startInitialJoin: coordinator becoming CANDIDATE in term 0 (was null, lastKnownLeader was [Optional.empty])
» [2023-06-20T17:02:30,704][INFO ][o.o.c.c.Coordinator      ] [integTest-0] setting initial configuration to VotingConfiguration{go8TkjojQ_abUuDrI0-mQA}
» [2023-06-20T17:02:30,765][DEBUG][o.o.c.c.ElectionSchedulerFactory] [integTest-0] scheduling scheduleNextElection{gracePeriod=0s, thisAttempt=0, maxDelayMillis=100, delayMillis=100, ElectionScheduler{attempt=1, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}}
» [2023-06-20T17:02:30,795][INFO ][o.o.h.AbstractHttpServerTransport] [integTest-0] publish_address {127.0.0.1:64303}, bound_addresses {[::1]:64302}, {127.0.0.1:64303}
» [2023-06-20T17:02:30,802][INFO ][o.o.n.Node               ] [integTest-0] started
» [2023-06-20T17:02:30,872][DEBUG][o.o.c.c.ElectionSchedulerFactory] [integTest-0] scheduleNextElection{gracePeriod=0s, thisAttempt=0, maxDelayMillis=100, delayMillis=100, ElectionScheduler{attempt=1, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}} starting election
» [2023-06-20T17:02:30,873][DEBUG][o.o.c.c.ElectionSchedulerFactory] [integTest-0] scheduling scheduleNextElection{gracePeriod=500ms, thisAttempt=1, maxDelayMillis=200, delayMillis=616, ElectionScheduler{attempt=2, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}}
» [2023-06-20T17:02:30,878][DEBUG][o.o.c.c.PreVoteCollector ] [integTest-0] PreVotingRound{preVotesReceived={}, electionStarted=false, preVoteRequest=PreVoteRequest{sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, currentTerm=0}, isClosed=false} requesting pre-votes from [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}]
» [2023-06-20T17:02:30,891][DEBUG][o.o.c.c.PreVoteCollector ] [integTest-0] PreVotingRound{preVotesReceived={{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}=PreVoteResponse{currentTerm=0, lastAcceptedTerm=0, lastAcceptedVersion=0}}, electionStarted=true, preVoteRequest=PreVoteRequest{sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, currentTerm=0}, isClosed=false} added PreVoteResponse{currentTerm=0, lastAcceptedTerm=0, lastAcceptedVersion=0} from {integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, starting election
» [2023-06-20T17:02:30,894][DEBUG][o.o.c.c.Coordinator      ] [integTest-0] starting election with StartJoinRequest{term=1,node={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}}
» [2023-06-20T17:02:30,895][DEBUG][o.o.c.c.Coordinator      ] [integTest-0] joinLeaderInTerm: for [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}] with term 1
» [2023-06-20T17:02:30,896][DEBUG][o.o.c.c.CoordinationState] [integTest-0] handleStartJoin: leaving term [0] due to StartJoinRequest{term=1,node={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}}
» [2023-06-20T17:02:30,924][DEBUG][o.o.c.c.JoinHelper       ] [integTest-0] attempting to join {integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, minimumTerm=0, optionalJoin=Optional[Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, targetNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}}]}
» [2023-06-20T17:02:30,928][DEBUG][o.o.c.c.JoinHelper       ] [integTest-0] successful response to StartJoinRequest{term=1,node={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}} from {integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}
» [2023-06-20T17:02:30,930][DEBUG][o.o.c.c.CoordinationState] [integTest-0] handleJoin: added join Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, targetNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}} from [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}] for election, electionWon=true lastAcceptedTerm=0 lastAcceptedVersion=0
» [2023-06-20T17:02:30,930][DEBUG][o.o.c.c.CoordinationState] [integTest-0] handleJoin: election won in term [1] with VoteCollection{votes=[go8TkjojQ_abUuDrI0-mQA], joins=[Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, targetNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}}]}
» [2023-06-20T17:02:30,931][DEBUG][o.o.c.c.Coordinator      ] [integTest-0] handleJoinRequest: coordinator becoming LEADER in term 1 (was CANDIDATE, lastKnownLeader was [Optional.empty])
» [2023-06-20T17:02:30,946][DEBUG][o.o.c.c.JoinHelper       ] [integTest-0] received a join request for an existing node [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}]
» [2023-06-20T17:02:30,950][INFO ][o.o.c.s.MasterService    ] [integTest-0] elected-as-cluster-manager ([1] nodes joined)[{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true} elect leader, _BECOME_CLUSTER_MANAGER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: cluster-manager node changed {previous [], current [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}]}
» [2023-06-20T17:02:30,966][DEBUG][o.o.c.c.PublicationTransportHandler] [integTest-0] received full cluster state version [1] with size [335]
» [2023-06-20T17:02:31,002][INFO ][o.o.c.c.CoordinationState] [integTest-0] cluster UUID set to [cTLceNPaSBGn5O4MDxSYxQ]
» [2023-06-20T17:02:31,050][INFO ][o.o.c.s.ClusterApplierService] [integTest-0] cluster-manager node changed {previous [], current [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
» [2023-06-20T17:02:31,079][INFO ][o.o.a.u.d.DestinationMigrationCoordinator] [integTest-0] Detected cluster change event for destination migration
» [2023-06-20T17:02:31,121][DEBUG][o.o.c.c.C.CoordinatorPublication] [integTest-0] publication ended successfully: Publication{term=1, version=1}
» [2023-06-20T17:02:31,126][DEBUG][o.o.c.c.JoinHelper       ] [integTest-0] successfully joined {integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, minimumTerm=0, optionalJoin=Optional[Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}, targetNode={integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}}]}
» [2023-06-20T17:02:31,129][INFO ][o.o.d.PeerFinder         ] [integTest-0] setting findPeersInterval to [1s] as node commission status = [true] for local node [{integTest-0}{go8TkjojQ_abUuDrI0-mQA}{s8H1bwYWTPWBB9WcriEyew}{127.0.0.1}{127.0.0.1:64300}{dimr}{testattr=test, shard_indexing_pressure_enabled=true}]
» [2023-06-20T17:02:31,136][DEBUG][o.o.c.c.PublicationTransportHandler] [integTest-0] received full cluster state version [2] with size [286]
» [2023-06-20T17:02:31,156][INFO ][o.o.a.u.d.DestinationMigrationCoordinator] [integTest-0] Detected cluster change event for destination migration
» [2023-06-20T17:02:31,165][DEBUG][o.o.c.c.C.CoordinatorPublication] [integTest-0] publication ended successfully: Publication{term=1, version=2}
» [2023-06-20T17:02:31,167][INFO ][o.o.g.GatewayService     ] [integTest-0] recovered [0] indices into cluster_state
» [2023-06-20T17:02:31,494][DEBUG][o.o.c.c.ElectionSchedulerFactory] [integTest-0] scheduleNextElection{gracePeriod=500ms, thisAttempt=1, maxDelayMillis=200, delayMillis=616, ElectionScheduler{attempt=2, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}} not starting election
» [2023-06-21T00:02:40.927012Z] [BUILD] Stopping node

=== Standard error of node `node{:alerting:integTest-0}` ===
»   ↓ last 40 non error or warning messages from /Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/logs/opensearch.stderr.log ↓
» WARNING: A terminally deprecated method in java.lang.System has been called
»  WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/distro/3.0.0-ARCHIVE/lib/opensearch-3.0.0-SNAPSHOT.jar)
»  WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
»  WARNING: System::setSecurityManager will be removed in a future release
»  WARNING: A terminally deprecated method in java.lang.System has been called
»  WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/Users/snistala/Documents/opensearch/alerting/alerting/build/testclusters/integTest-0/distro/3.0.0-ARCHIVE/lib/opensearch-3.0.0-SNAPSHOT.jar)
»  WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
»  WARNING: System::setSecurityManager will be removed in a future release

> Task :alerting:integTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':alerting:integTest'.
> There were failing tests. See the report at: file:///Users/snistala/Documents/opensearch/alerting/alerting/build/reports/tests/integTest/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

@eirsep eirsep merged commit b3c3f23 into opensearch-project:main Jun 21, 2023
13 of 16 checks passed
@eirsep eirsep deleted the workflows_rest branch June 21, 2023 00:34
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-963-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b3c3f2313a7be946d6c166fae675e86308da2e37
# Push it to GitHub
git push --set-upstream origin backport/backport-963-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-963-to-2.x.

1 similar comment
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-963-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b3c3f2313a7be946d6c166fae675e86308da2e37
# Push it to GitHub
git push --set-upstream origin backport/backport-963-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-963-to-2.x.

eirsep added a commit to eirsep/alerting that referenced this pull request Jun 21, 2023
* Added rest layer for the workflow. Added secure tests (opensearch-project#886)

* Added rest layer for the workflow. Added secure tests

* add execution_id field in alert mapping
---------

Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Co-authored-by: Stevan Buzejic <buzejic.stevan@gmail.com>
eirsep added a commit to eirsep/alerting that referenced this pull request Jun 21, 2023
* Added rest layer for the workflow. Added secure tests (opensearch-project#886)

* Added rest layer for the workflow. Added secure tests

* add execution_id field in alert mapping
---------

Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Co-authored-by: Stevan Buzejic <buzejic.stevan@gmail.com>
eirsep added a commit that referenced this pull request Jun 21, 2023
* Added rest layer for the workflow. Added secure tests (#886)

* Added rest layer for the workflow. Added secure tests

* add execution_id field in alert mapping
---------

Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Co-authored-by: Stevan Buzejic <buzejic.stevan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants