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

Update 1.x branch with latest 1.3 branch #553

Merged
merged 168 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
806c2c6
Fix release notes version (#28)
zhongnansu Apr 27, 2021
047b54c
Migrate Reporting Notebooks Integration (#21)
davidcui1225 Apr 29, 2021
08fded0
Add Logic to Auto-populate Notebooks from Context Menu (#30)
davidcui1225 Apr 29, 2021
41dd2a5
Change opendistro to opensearch in email template (#31)
joshuali925 May 4, 2021
17443d9
Fix case sensitive directory name for chromium zip (#35)
davidcui1225 May 5, 2021
9d5e1a1
Use output_only Parameter for notebook reports (#32)
davidcui1225 May 10, 2021
8f2197d
replace osd-version header to remove need for version number matching…
davidcui1225 May 10, 2021
dd6e3b2
Remove visualization editor in visualization reports (#50)
joshuali925 May 14, 2021
1ba1ad7
add condition to fix negative value display (#51)
davidcui1225 May 14, 2021
0399724
[Query Builder] Correctly handle match phrases when a single value is…
MKCG May 17, 2021
22e5489
Pass processing if doc[field] == null (#361)
uzhinskiy May 11, 2021
19ca93a
add test case for commit 368eb03e200b755870f1ad373e67561201ab6f31 (#370)
zhongnansu May 18, 2021
1260f6b
Unhash page url in case store URLs in session storage is enabled from…
zhongnansu May 21, 2021
fa2d7dc
Update Namespaces/APIs/Documentation for OpenSearch (#55)
davidcui1225 May 24, 2021
b43e33e
bump path-parse version to 1.0.7 to address CVE (#59)
davidcui1225 May 25, 2021
31bbecb
merge main into dev
davidcui1225 May 25, 2021
f517f3f
increase chromium timeout to 100s (#58)
zhongnansu May 25, 2021
83bf1b4
Fix csv parsing function (#53)
joshuali925 May 25, 2021
4a791ae
Add release notes for rc1 (#60)
davidcui1225 May 25, 2021
2341aaa
configure index settings to have default 1 replica and auto-expand up…
zhongnansu May 26, 2021
b88adc3
Rc1 release note patch (#63)
davidcui1225 May 26, 2021
c325710
Bump OpenSearch Dashboards version to 1.0 (#64)
davidcui1225 May 27, 2021
8c3b56f
fix merge conflict in readme
davidcui1225 May 27, 2021
5ba1a9d
Revert .opensearch_dashboards index references to .kibana (#67)
davidcui1225 May 28, 2021
960bcaa
Add diagrams for integration with Notifications plugin (#75)
davidcui1225 Jun 8, 2021
c2c43bd
merge changes from main
davidcui1225 Jun 8, 2021
7e326be
Add i18n translation support (#362)
starcatter Jun 8, 2021
6933dd4
PDF report is no more a screenshot, increasing the overall quality
iget-esoares Apr 6, 2021
f3d5167
Add Notifications to docs (#87)
davidcui1225 Jun 15, 2021
62be0df
Better support sorting for csv report based on saved search (#86)
zhongnansu Jun 16, 2021
ab99ee3
Change Delivery Request Body for Notifications (#85)
davidcui1225 Jun 16, 2021
e5a9bfc
Remove legacy notifications/delivery related code (#94)
davidcui1225 Jun 23, 2021
3bcef87
Remove dependency on demo.elastic and use local mock html for testing…
zhongnansu Jun 24, 2021
15cb8e8
Add code cov back (#98)
zhongnansu Jun 24, 2021
48d81ab
update workflow to rename artifact in kebab case (#102)
zhongnansu Jun 25, 2021
138fb27
bump dependency version (#101)
zhongnansu Jun 25, 2021
c1bfb46
level up markdowns and readme (#97)
zhongnansu Jun 25, 2021
55d6144
Bump to version 1.0.0.0 (#103)
zhongnansu Jun 29, 2021
c7a1726
Bump test resource(job-scheduler) to 1.0.0.0 (#105)
zhongnansu Jun 30, 2021
9186448
fix failed cypress integ-testing (#106)
zhongnansu Jun 30, 2021
5c12180
Bump node version, fix workflow and gradle build (#108)
zhongnansu Jun 30, 2021
3661fa1
Add release notes for 1.0.0.0 (#104)
zhongnansu Jul 1, 2021
e517453
Fix notebooks context menu (#109)
joshuali925 Jul 6, 2021
c0b29d3
Fix context menu download request body after schema change to add not…
zhongnansu Jul 8, 2021
72705e2
Exclude time range from report details for Notebooks (#117)
davidcui1225 Jul 8, 2021
698448e
Update regex for notebooks reports (#118)
joshuali925 Jul 9, 2021
777a7f7
Add integtest script to the repo
peterzhuamazon Jul 9, 2021
938611f
Improve osd bootstrap on dub directory
peterzhuamazon Jul 10, 2021
18abf93
Improve osd bootstrap on dub directory
peterzhuamazon Jul 10, 2021
48570bd
Exclude Faulty Integration Test (#122)
davidcui1225 Jul 10, 2021
ae32282
Merge branch 'main' of github.com:opensearch-project/dashboards-repor…
peterzhuamazon Jul 10, 2021
8e2470f
Fix cypress reporting (#123)
davidcui1225 Jul 10, 2021
237a822
Merge pull request #121 from opensearch-project/opensearch-integtest-…
peterzhuamazon Jul 10, 2021
0cc55a9
toggle video on for cypress testing (#124)
davidcui1225 Jul 11, 2021
f44826f
Update Doc Links (#127)
davidcui1225 Jul 14, 2021
ea5dc61
Update template to reflect new branding (#128)
kgcreative Jul 16, 2021
a031386
Update UI for Notifications Integration (#126)
davidcui1225 Jul 19, 2021
0aeccac
Add themed logo to README (#130)
Jul 21, 2021
efb5a90
Fix url validation (#132)
joshuali925 Jul 28, 2021
55ed985
Fix url validation for context menu (#134)
joshuali925 Jul 28, 2021
b3cf1d4
Connect Notifications APIs to Reporting (#131)
davidcui1225 Jul 30, 2021
edc55c0
Fix snapshot build and upgrade to OpenSearch 1.1. (#140)
dblock Aug 19, 2021
622f334
Add release notes for 1.0.1 release (#143)
joshuali925 Aug 30, 2021
49d7937
Bump to 1.1 in main (#150)
davidcui1225 Sep 2, 2021
bf33e63
Bump opensearch ref to 1.1 in CI (#155)
joshuali925 Sep 14, 2021
dc55f62
Removed integtest.sh. (#157)
dblock Sep 17, 2021
1b08bff
Taking RBAC settings from Alerting plugin default to false
akbhatta Sep 22, 2021
c3c8e2f
Merge pull request #165 from akbhatta/main
akbhatta Sep 22, 2021
371f1d1
Bump tmpl from 1.0.4 to 1.0.5 in /dashboards-reports (#164)
dependabot[bot] Oct 1, 2021
9b1ecab
Fix quoting and url-encoding (#153)
kroussou Oct 7, 2021
6d2607b
Integrate notifications backend (#129)
joshuali925 Oct 7, 2021
a238baf
Remove hard coded localhost when calling API (#172)
joshuali925 Oct 7, 2021
5f4ef34
rename plugin helper config file name to consistent with OSD (#180)
Tengda-He Oct 12, 2021
3340e34
Add metrics for sending notifications (#173)
joshuali925 Oct 14, 2021
64c8e30
Add logic to build report detail page link and send as part of messag…
zhongnansu Oct 15, 2021
ecd95c9
Update validation for observability notebooks integration (#174)
joshuali925 Oct 18, 2021
b62ba6e
Build email message from template with reports links (#184)
zhongnansu Oct 18, 2021
b2097b8
Support range filters for csv reports (#185)
joshuali925 Oct 22, 2021
1b96740
Forward extra headers while using headless chromium (#194)
zhongnansu Oct 27, 2021
93d885c
Use advanced settings for date format in csv reports (#186)
joshuali925 Oct 27, 2021
56008de
add check in ReportInstanceActions to fix on demand report creation a…
davidcui1225 Oct 27, 2021
677fbab
Catch Notifications Errors on Details Pages (#197)
davidcui1225 Nov 1, 2021
c7b1c11
remove notifications integration from details pages and update snapsh…
davidcui1225 Nov 2, 2021
24cea4e
fix csv missing metadata fields issue and empty report on all(_source…
zhongnansu Nov 3, 2021
30bd9cf
remove notifications references from create and edit report definitio…
davidcui1225 Nov 3, 2021
b4ec424
refactor logic for creating DSL from saved object using buildOpensear…
zhongnansu Nov 3, 2021
42594da
Remove calling notifications in reports scheduler (#211)
joshuali925 Nov 4, 2021
c8dd5bf
Use advanced settings for csv separator and visual report timezone (#…
joshuali925 Nov 4, 2021
68962b3
Bump to version 1.2 (#203)
kavilla Nov 4, 2021
41523a5
Add dco and release drafter workflows (#217)
joshuali925 Nov 4, 2021
860e89c
update readme notification section (#216)
zhongnansu Nov 4, 2021
ccdadcc
revert paths to opendistro to keep cluster permissions same with ODFE…
davidcui1225 Nov 5, 2021
54b4e6c
Create opensearch-dashboards-reports.release-notes-1.2.0.0.md
kavithacm Nov 5, 2021
d0531f9
Update the copyright notices to reflect OpenSearch Contributors (#220)
davidcui1225 Nov 5, 2021
fe06fd0
changes
kavithacm Nov 5, 2021
f199e40
changes
kavithacm Nov 5, 2021
b686df8
Merge pull request #219 from kavithacm/1.2-release-notes
kavithacm Nov 5, 2021
b941c82
Remove notifications actions in reports scheduler (#221)
joshuali925 Nov 8, 2021
5f01a02
add reporting osd server configurations (#222)
zhongnansu Nov 9, 2021
1fdbadc
Add suggested font packages in troubleshooting tips (#189)
davidcui1225 Nov 10, 2021
ee7c0af
Update Copyright Headers (#226)
davidcui1225 Nov 12, 2021
507299e
Add support for codeowners to repo (#227)
ryanbogan Nov 16, 2021
497ce77
Fix reporting validation for observability (#231)
joshuali925 Nov 17, 2021
9e80976
remove poller code from frontend plugin (#235)
zhongnansu Nov 30, 2021
a2fbbe8
bump reports-scheduler to 1.3 (#241)
zhongnansu Dec 6, 2021
9f4fb7b
Fix apt source and link checker for CI (#245)
joshuali925 Dec 7, 2021
37fe669
Add Case Coverage tests for Create Report Definition (#239)
davidcui1225 Dec 7, 2021
40dc925
add bwc test for reports-scheduler (#244)
zhongnansu Dec 7, 2021
546a128
added code summary table (#243)
ps48 Dec 8, 2021
9daf116
Add Cypress Case Coverage on Details Pages (#250)
davidcui1225 Dec 9, 2021
6f30fc4
add gradle task to run integtest against remote cluster (#247)
zhongnansu Dec 9, 2021
02ae414
added untriaged and nolabel badges
ps48 Dec 17, 2021
4a93401
Merge pull request #259 from ps48/update_readme_badges
ps48 Dec 17, 2021
b08c5b4
bump dashboards-reports version to 1.3 (#265)
zhongnansu Dec 22, 2021
43bc73f
add UT for request/reseponse model (#264)
zhongnansu Dec 22, 2021
aee944b
Add .whitesource configuration file
mend-for-github-com[bot] Jan 11, 2022
d6fba2b
Address Reporting CVEs (#267)
davidcui1225 Jan 11, 2022
4355763
Merge pull request #268 from opensearch-project/whitesource/configure
ps48 Jan 11, 2022
fa3fa18
update yarn lock for cve fixes (#271)
davidcui1225 Jan 11, 2022
fed08aa
add release notes for 1.2.4
davidcui1225 Jan 12, 2022
3bf062e
remove jcenter repo from gradle build
ps48 Jan 13, 2022
48fa2c4
Merge pull request #278 from ps48/jcenter_fix_main
ps48 Jan 14, 2022
7a83ebb
Merge pull request #274 from davidcui1225/1.2.4-release-notes
ps48 Jan 18, 2022
c38ee04
update guava to 31.0.1-jre
ps48 Jan 24, 2022
03ecd26
Merge pull request #282 from ps48/guava_update
ps48 Jan 24, 2022
09fe245
WS package update (#283)
ps48 Jan 29, 2022
3b03b70
add auto-backport functionality for reporting (#286)
davidcui1225 Feb 24, 2022
f581454
Change Default CI version to JDK 11 (#290)
davidcui1225 Mar 1, 2022
a84e4b1
remove incorrect tag form issue template (#294)
zhongnansu Mar 2, 2022
d444010
Fix empty or multiple date values in csv (#293)
zhongnansu Mar 2, 2022
162373e
Update the saved object id matcher regex to match custom id (#295)
zhongnansu Mar 4, 2022
075f5ac
Replace Centos links to fix link checker CI (#297)
davidcui1225 Mar 7, 2022
d28fdd4
update regex to match custom saved object id (#298)
zhongnansu Mar 8, 2022
265e2a7
Fix reporting uuid parsing (#300)
joshuali925 Mar 8, 2022
d52091c
Add java 8 support in compile and test (#304) (#305)
opensearch-trigger-bot[bot] Mar 10, 2022
fec1eaf
Add 1.3 release notes (#307) (#308)
opensearch-trigger-bot[bot] Mar 14, 2022
50cb45b
Bump version to 1.3.1 (#324)
gaiksaya Mar 29, 2022
41c0795
Bump reports dashboards to 1.3.1 (#331)
joshuali925 Apr 5, 2022
c960d80
Incremented version to 1.3.2. (#352)
zelinh Apr 28, 2022
3bb28d1
Version bump 1.3.3
prudhvigodithi Jun 2, 2022
a14baf1
Version bump 1.3.3
prudhvigodithi Jun 3, 2022
8209900
Version bump 1.3.3
prudhvigodithi Jun 3, 2022
1d72c3f
Merge pull request #366 from prudhvigodithi/1.3.3-versionbump
anirudha Jun 6, 2022
7c92fc8
[1.3] Bump minimist to 1.2.6 (#367)
joshuali925 Jun 6, 2022
00ba034
Move HTML sanitization from client to server side (#382) (#386)
joshuali925 Jul 6, 2022
f066c65
Incremented version to 1.3.4. (#389)
zelinh Jul 12, 2022
072ac50
Add release notes for 1.3.4.0 (#393) (#394)
opensearch-trigger-bot[bot] Jul 13, 2022
7824d2c
Staging for version increment automation (#391) (#418)
opensearch-trigger-bot[bot] Aug 16, 2022
7ea1d00
[Release 1.3.5] Version increment (#420)
prudhvigodithi Aug 16, 2022
64bb6b9
[1.3] Remove zips and download from remote at build time (#337) (#422)
joshuali925 Aug 16, 2022
7421b59
[1.3] restrict chromium requests (#424)
joshuali925 Aug 17, 2022
9976c92
[Release 1.3.5] Add `build.sh` (#426)
prudhvigodithi Aug 17, 2022
f255abd
[1.3] Add Bwc Test for OS 1.1 (#417) (#423)
joshuali925 Aug 17, 2022
f0583a8
Increment version to 1.3.6-SNAPSHOT (#456)
opensearch-trigger-bot[bot] Sep 29, 2022
1dfa5aa
Merge pull request #472 from sejli/CVE-fix-1.3.6 (#473)
sejli Oct 3, 2022
746d34e
Merge pull request #474 from sejli/release-notes-1.3.6
sejli Oct 3, 2022
eb1ea54
Merge pull request #475 from sejli/backport/backport-474-to-1.3
sejli Oct 3, 2022
76d20b8
Merge pull request #476 from sejli/1.3.6-release-notes
sejli Oct 4, 2022
bcaa100
Merge pull request #477 from sejli/backport/backport-476-to-1.3
sejli Oct 4, 2022
544a313
update jackson to 2.13.4 (#479) (#480)
opensearch-trigger-bot[bot] Oct 4, 2022
d028bab
Update 1.3.6 release notes (#481) (#482)
opensearch-trigger-bot[bot] Oct 4, 2022
fe168d3
[1.3] Upgrade puppeteer (#488)
rupal-bq Oct 5, 2022
11dc1b0
Added release notes for 1.3.5 (#451)
opensearch-trigger-bot[bot] Oct 10, 2022
226e670
Increment version to 1.3.7-SNAPSHOT (#502)
opensearch-trigger-bot[bot] Nov 29, 2022
1f281e9
Resolve conflicting dependencies
rupal-bq Nov 30, 2022
9d0a0d3
Merge remote-tracking branch 'origin/1.3' into HEAD
rupal-bq Nov 30, 2022
c2764e6
nit
rupal-bq Nov 30, 2022
866046a
Fix build failure
rupal-bq Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
PLUGIN_NAME: reportsDashboards
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: '1.3'
OPENSEARCH_PLUGIN_VERSION: 1.3.4.0
OPENSEARCH_PLUGIN_VERSION: 1.3.7.0

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-release-notes-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
with:
config-name: draft-release-notes-config.yml
tag: (None)
version: 1.3.4.0
version: 1.3.7.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test and Build Reports Scheduler
on: [push, pull_request]

env:
OPENSEARCH_VERSION: '1.3.4-SNAPSHOT'
OPENSEARCH_VERSION: '1.3.5-SNAPSHOT'

jobs:
build:
Expand Down Expand Up @@ -31,7 +31,6 @@ jobs:
echo "Running backwards compatibility tests ..."
./gradlew bwcTestSuite


- name: Build with Gradle
run: |
cd reports-scheduler
Expand Down
4 changes: 2 additions & 2 deletions dashboards-reports/opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "reportsDashboards",
"version": "1.3.4.0",
"opensearchDashboardsVersion": "1.3.4",
"version": "1.3.7.0",
"opensearchDashboardsVersion": "1.3.7",
"requiredPlugins": ["navigation", "data", "opensearchDashboardsUtils"],
"optionalPlugins": ["share"],
"server": true,
Expand Down
3 changes: 1 addition & 2 deletions dashboards-reports/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reports-dashboards",
"version": "1.3.4.0",
"version": "1.3.7.0",
"description": "OpenSearch Dashboards Reports Plugin",
"license": "Apache-2.0",
"main": "index.ts",
Expand Down Expand Up @@ -45,7 +45,6 @@
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jsdom": "^16.2.3",
"@types/puppeteer-core": "^5.4.0",
"@types/react": "^16.9.36",
"@types/react-addons-test-utils": "^0.14.25",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^16.9.1",
Expand Down
2 changes: 1 addition & 1 deletion dashboards-reports/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^16.9.36":
"@types/react@*":
version "16.9.49"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.49.tgz#09db021cf8089aba0cdb12a49f8021a69cce4872"
integrity sha512-DtLFjSj0OYAdVLBbyjhuV9CdGVHCkHn2R+xr3XkBvK2rS1Y1tkc14XSGjYgm5Fjjr90AxH9tiSzc1pCFMGO06g==
Expand Down
44 changes: 40 additions & 4 deletions reports-scheduler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.opensearch.gradle.testclusters.StandaloneRestIntegTestTask
buildscript {
ext {
opensearch_group = "org.opensearch"
opensearch_version = System.getProperty("opensearch.version", "1.3.4-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "1.3.7-SNAPSHOT")
// 1.0.0 -> 1.0.0.0, and 1.0.0-SNAPSHOT -> 1.0.0.0-SNAPSHOT
opensearch_build = opensearch_version.replaceAll(/(\.\d)([^\d]*)$/, '$1.0$2')
common_utils_version = System.getProperty("common_utils.version", opensearch_build)
Expand Down Expand Up @@ -241,6 +241,8 @@ Zip bundle = (Zip) project.getTasks().getByName("bundlePlugin");
integTest.dependsOn(bundle)
integTest.getClusters().forEach{c -> c.plugin(project.getObjects().fileProperty().value(bundle.getArchiveFile()))}

String jobSchedulerURL = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/" + opensearch_version.replace("-SNAPSHOT", "") + "/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-job-scheduler-" + opensearch_build.replace("-SNAPSHOT", "") + ".zip"

testClusters.integTest {
testDistribution = "INTEG_TEST"
// need to install job-scheduler first, need to assemble job-scheduler first
Expand All @@ -250,6 +252,14 @@ testClusters.integTest {
return new RegularFile() {
@Override
File getAsFile() {
File dir = new File("src/test/resources/job-scheduler")
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, "opensearch-job-scheduler-" + opensearch_build + ".zip")
if (!file.exists()) {
new URL(jobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
return fileTree("src/test/resources/job-scheduler").getSingleFile()
}
}
Expand All @@ -271,23 +281,33 @@ testClusters.integTest {
setting 'path.repo', repo.absolutePath
}

// For job-scheduler and reports-scheduler, the latest opendistro releases appear to be 1.13.0.0.
String bwcVersion = "1.13.0.0"
// For job-scheduler and reports-scheduler, the latest opensearch releases appear to be 1.1.0.0.
String bwcVersion = "1.1.0.0"
String baseName = "reportsSchedulerBwcCluster"
String bwcFilePath = "src/test/resources/bwc"
String bwcJobSchedulerURL = "https://ci.opensearch.org/ci/dbc/bundle-build/1.1.0/20210930/linux/x64/builds/opensearch/plugins/opensearch-job-scheduler-1.1.0.0.zip"
String bwcReportsSchedulerURL = "https://ci.opensearch.org/ci/dbc/bundle-build/1.1.0/20210930/linux/x64/builds/opensearch/plugins/opensearch-reports-scheduler-1.1.0.0.zip"

2.times {i ->
testClusters {
"${baseName}$i" {
testDistribution = "ARCHIVE"
versions = ["7.10.2","1.3.4-SNAPSHOT"]
versions = ["1.1.0", 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, "opensearch-job-scheduler-" + bwcVersion + ".zip")
if (!file.exists()) {
new URL(bwcJobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
return fileTree(bwcFilePath + "/job-scheduler/" + bwcVersion).getSingleFile()
}
}
Expand All @@ -299,6 +319,14 @@ String bwcFilePath = "src/test/resources/bwc"
return new RegularFile() {
@Override
File getAsFile() {
File dir = new File(bwcFilePath + "/reports-scheduler/" + bwcVersion)
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, "opensearch-reports-scheduler-" + bwcVersion + ".zip")
if (!file.exists()) {
new URL(bwcReportsSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
return fileTree(bwcFilePath + "/reports-scheduler/" + bwcVersion).getSingleFile()
}
}
Expand All @@ -323,6 +351,14 @@ task prepareBwcTests {
return new RegularFile() {
@Override
File getAsFile() {
File dir = new File(bwcFilePath + "/job-scheduler/" + project.version)
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, "opensearch-reports-scheduler-" + project.version + ".zip")
if (!file.exists()) {
new URL(jobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
return fileTree(bwcFilePath + "/job-scheduler/" + project.version).getSingleFile()
}
}
Expand Down
79 changes: 79 additions & 0 deletions reports-scheduler/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/bin/bash

# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.

set -ex

function usage() {
echo "Usage: $0 [args]"
echo ""
echo "Arguments:"
echo -e "-v VERSION\t[Required] OpenSearch version."
echo -e "-q QUALIFIER\t[Optional] Version qualifier."
echo -e "-s SNAPSHOT\t[Optional] Build a snapshot, default is 'false'."
echo -e "-p PLATFORM\t[Optional] Platform, ignored."
echo -e "-a ARCHITECTURE\t[Optional] Build architecture, ignored."
echo -e "-o OUTPUT\t[Optional] Output path, default is 'artifacts'."
echo -e "-h help"
}

while getopts ":h:v:q:s:o:p:a:" arg; do
case $arg in
h)
usage
exit 1
;;
v)
VERSION=$OPTARG
;;
q)
QUALIFIER=$OPTARG
;;
s)
SNAPSHOT=$OPTARG
;;
o)
OUTPUT=$OPTARG
;;
p)
PLATFORM=$OPTARG
;;
a)
ARCHITECTURE=$OPTARG
;;
:)
echo "Error: -${OPTARG} requires an argument"
usage
exit 1
;;
?)
echo "Invalid option: -${arg}"
exit 1
;;
esac
done

if [ -z "$VERSION" ]; then
echo "Error: You must specify the OpenSearch version"
usage
exit 1
fi

[[ ! -z "$QUALIFIER" ]] && VERSION=$VERSION-$QUALIFIER
[[ "$SNAPSHOT" == "true" ]] && VERSION=$VERSION-SNAPSHOT
[ -z "$OUTPUT" ] && OUTPUT=artifacts

mkdir -p $OUTPUT

./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER

zipPath=$(find . -path \*build/distributions/*.zip)
distributions="$(dirname "${zipPath}")"

echo "COPY ${distributions}/*.zip"
mkdir -p $OUTPUT/plugins
cp ${distributions}/*.zip ./$OUTPUT/plugins
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class ReportsSchedulerBackwardsCompatibilityIT : PluginRestTestCase() {
val pluginNames = plugins.map { plugin -> plugin["name"] }.toSet()
when (CLUSTER_TYPE) {
ClusterType.OLD -> {
assertTrue(pluginNames.contains("opendistro-reports-scheduler"))
assertTrue(pluginNames.contains("opendistro-job-scheduler"))
assertTrue(pluginNames.contains("opensearch-reports-scheduler"))
assertTrue(pluginNames.contains("opensearch-job-scheduler"))
createBasicReportDefinition()
}
ClusterType.MIXED -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ignore artifacts in this directory
*
*/
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ignore artifacts in this directory
*
*/
!.gitignore
4 changes: 4 additions & 0 deletions reports-scheduler/src/test/resources/job-scheduler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ignore artifacts in this directory
*
*/
!.gitignore
Binary file not shown.