Skip to content

Commit

Permalink
[BACKPORT MAIN] remove front end workflow and code (#1362) (#1386)
Browse files Browse the repository at this point in the history
* remove front end workflow and code (#1362)

* remove front end workflow and code

Signed-off-by: Derek Ho <[email protected]>

* move folders up one level

Signed-off-by: Derek Ho <[email protected]>

* fix workflow file

Signed-off-by: Derek Ho <[email protected]>

* final workflow fix

Signed-off-by: Derek Ho <[email protected]>

Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit e7dea87)
Signed-off-by: Derek Ho <[email protected]>

* delete front end workflow file

Signed-off-by: Derek Ho <[email protected]>

* ichange bwc version

Signed-off-by: Derek Ho <[email protected]>

* fix build.gradel

Signed-off-by: Derek Ho <[email protected]>

* try to replace all references

Signed-off-by: Derek Ho <[email protected]>

* fix job scheduler version

Signed-off-by: Derek Ho <[email protected]>

* add job scheduler into bwc tests

Signed-off-by: Derek Ho <[email protected]>

* change version to 2.4.0

Signed-off-by: Derek Ho <[email protected]>

* run all jobs

Signed-off-by: Derek Ho <[email protected]>

* add back bwc

Signed-off-by: Derek Ho <[email protected]>

* add job scheduler back

Signed-off-by: Derek Ho <[email protected]>

* fix

Signed-off-by: Derek Ho <[email protected]>

* fix the file

Signed-off-by: Derek Ho <[email protected]>

Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho authored Jan 18, 2023
1 parent 295af54 commit b9ef841
Show file tree
Hide file tree
Showing 754 changed files with 30 additions and 171,478 deletions.
File renamed without changes.
File renamed without changes.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
env:
BUILD_ARGS: ${{ matrix.os_build_args }}
strategy:
# Run all jobs
fail-fast: false
matrix:
java: [11, 17]
os: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -29,13 +31,11 @@ jobs:
# Temporarily only do this for linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cd opensearch-observability
echo "Running backwards compatibility tests ..."
./gradlew bwcTestSuite -Dtests.security.manager=false
- name: Build with Gradle
run: |
cd opensearch-observability
./gradlew build ${{ env.BUILD_ARGS }}
- name: Upload coverage
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Create Artifact Path
run: |
mkdir -p opensearch-observability-builds
cp -r ./opensearch-observability/build/distributions/*.zip opensearch-observability-builds/
cp -r ./build/distributions/*.zip opensearch-observability-builds/
- name: Upload Artifacts
uses: actions/upload-artifact@v1
Expand Down
File renamed without changes.
File renamed without changes.
31 changes: 27 additions & 4 deletions opensearch-observability/build.gradle → build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,40 @@ testClusters.integTest {
setting 'path.repo', repo.absolutePath
}

String bwcVersion = "2.4.0-SNAPSHOT"
String baseVersion = "2.5.0"
String bwcVersion = baseVersion + ".0"
String baseName = "obsBwcCluster"
String bwcFilePath = "src/test/resources/bwc/"
String remoteFileURL = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.4.0/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-observability-2.4.0.0.zip"
String bwcObservabilityPlugin = "opensearch-observability-" + bwcVersion + ".zip"
String bwcJobSchedulerPlugin = "opensearch-job-scheduler-" + bwcVersion + ".zip"
String remoteFileURL = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/${baseVersion}/latest/linux/x64/tar/builds/opensearch/plugins/" + bwcObservabilityPlugin
String bwcJobSchedulerURL = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/${baseVersion}/latest/linux/x64/tar/builds/opensearch/plugins/" + bwcJobSchedulerPlugin

2.times {i ->
testClusters {
"${baseName}$i" {
testDistribution = "ARCHIVE"
versions = ["2.4.0",opensearch_version]
versions = [baseVersion,opensearch_version]
numberOfNodes = 3
plugin(provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
return new RegularFile() {
@Override
File getAsFile() {
File dir = new File(bwcFilePath + "/job-scheduler/" + bwcVersion)
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, bwcJobSchedulerPlugin)
if (!file.exists()) {
new URL(bwcJobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
return fileTree(bwcFilePath + "/job-scheduler/" + bwcVersion).getSingleFile()
}
}
}
}))
plugin(provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
Expand All @@ -338,7 +361,7 @@ String remoteFileURL = "https://ci.opensearch.org/ci/dbc/distribution-build-open
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, "opensearch-observability-2.4.0.0-SNAPSHOT.zip")
File file = new File(dir, bwcObservabilityPlugin)
if (!file.exists()) {
new URL(remoteFileURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions dashboards-observability/.babelrc

This file was deleted.

146 changes: 0 additions & 146 deletions dashboards-observability/.cypress/CYPRESS_TESTS.md

This file was deleted.

Loading

0 comments on commit b9ef841

Please sign in to comment.