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

Updating contributing.md #244

Closed
wants to merge 104 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
1f40732
[PURIFY] Remove x-pack directory
nknize Jan 26, 2021
35ecb4e
[PURIFY] Remove docs directory (#3)
nknize Jan 30, 2021
65cd98f
Cleanup build-scan, remove publish scan to elastic server (#1) (#4)
nknize Jan 30, 2021
0b8ed9f
[PURIFY] remove all trace of x-pack eql (#5)
nknize Jan 30, 2021
33c8ac7
[PURIFY] remove issue, pr tempalte to avoid confusion, we could add o…
nknize Jan 30, 2021
4bdad9f
[PURIFY] update build.gradle files to ensure build completes; gradle …
nknize Jan 30, 2021
6744e35
Cleanup build script to exclude security-authorization-engine (#8) (#8)
nknize Jan 30, 2021
16ae5f1
[PURIFY] remove all trace of x-pack enrichment processor (#9)
nknize Jan 30, 2021
712a80e
[PURIFY] remove all trace of x-pack async-search (#10)
nknize Jan 30, 2021
b3f56c6
[PURIFY] remove all trace of x-pack ccr (#11)
nknize Jan 30, 2021
809e5aa
Remove the Elastic license file, all checks for this license and the …
nknize Jan 30, 2021
399219b
[PURIFY] remove all trace of x-pack graph (#13)
nknize Jan 30, 2021
7505372
[PURIFY] remove all trace of x-pack ml (#14)
nknize Jan 30, 2021
70c38d4
[PURIFY] Add InferenceConfig to org.elasticsearch.client.analytics (#15)
nknize Jan 30, 2021
4d4f198
[PURIFY] remove all trace of x-pack security (#16)
nknize Jan 30, 2021
a352543
[PURIFY] remove all trace of x-pack rollups (#17)
nknize Jan 30, 2021
e139bda
[PURIFY] remove all trace of x-pack sql (#18)
nknize Jan 30, 2021
e1d4d79
[PURIFY] remove all trace of x-pack migration (#19)
nknize Jan 30, 2021
055d5ca
[PURIFY] remove all trace of x-pack index lifecycle management (#20)
nknize Jan 30, 2021
1827eff
[PURIFY] remove all trace of x-pack watcher (#21)
nknize Jan 30, 2021
dbcf046
[PURIFY] remove all trace of x-pack monitoring (#22)
nknize Jan 30, 2021
73a7bab
[PURIFY] Remove remaining x-pack license. (#25)
adnapibar Feb 2, 2021
4190b40
[PURIFY] Revert "Move data stream transport and rest action to xpack …
nknize Feb 2, 2021
fb9fe9f
[PURIFY] remove all trace of x-pack transforms (#31)
nknize Feb 2, 2021
b55d8f4
[PURIFY] fix GetDataStreamsRequestTests build failure
nknize Feb 2, 2021
f8144e1
[PURIFY] Remove the AuthorizationEnginePlugin from examples. (#26)
adnapibar Feb 2, 2021
d496925
Fix compilation issues for tests. (#29)
adnapibar Feb 2, 2021
5dd4a82
[PURIFY] Cleanup build and unblock HLRC integration tests (#33)
nknize Feb 3, 2021
d9ae459
Adding initial CI workflow for search (#35)
saratvemulapalli Feb 3, 2021
2be74b1
[TEST] Fix unit test failure in RestHighLevelClientTests (#36)
Feb 4, 2021
f49fb70
[TEST] fix DeleteDataStreamRequestTests failure (#37)
nknize Feb 4, 2021
7aa4833
Remove license option in gradlew command (#41)
harold-wang Feb 4, 2021
fa86308
Remove x-pack from build, distribution and packaging. (#43)
adnapibar Feb 4, 2021
7e42224
Removing _reload_search_analyzers related changes since the related x…
setiah Feb 5, 2021
914d30e
Fixing Rest Converters Tests after x-pack removal (#54)
saratvemulapalli Feb 6, 2021
23d2e50
Remove license statement from CONTRIBUTING.md (#58)
harold-wang Feb 8, 2021
f2f1bfa
Revert back refresh policy in RequestConverters. (#55)
adnapibar Feb 8, 2021
6f90868
Remove unused imports in RemoteClustersIT and InternalTestCluster
nknize Feb 8, 2021
9bed5c2
[DOCS] temporarily comment verifyDocsLuceneVersion in qa:verify-versi…
nknize Feb 8, 2021
ac45e3f
Mute AnalyticsAggsIT test failure
nknize Feb 8, 2021
94301ea
[MUTE] AwaitsFix failing tests
nknize Feb 9, 2021
2a901cc
Remove packaging tests for the x-pack command line tools. (#56)
adnapibar Feb 9, 2021
ae1727d
Remove x-pack aggregations. (#59)
adnapibar Feb 9, 2021
1bbc9b4
Remove x-pack data-frame analytics hlrc. (#62)
adnapibar Feb 9, 2021
6712670
Remove ILM policy from GetDataStreamAction Response. (#63)
adnapibar Feb 9, 2021
be00040
Ensure ReplicationOperation notify listener once (#68256)
dnhatn Jan 31, 2021
95e87ae
Fix search template request (#43509)
jdconrad Jun 25, 2019
bcb5c7f
Lower skip version for token_cound yaml test (#68583)
Feb 8, 2021
55b539e
Revert previous change to fix import issue.
adnapibar Feb 9, 2021
dac6af6
Remove unused imports in ArchiveTests
nknize Feb 9, 2021
7da7e34
Fix unit test for removal of x-pack aggregations. (#65)
adnapibar Feb 9, 2021
aab68fa
[PURIFY] Remove ProtocolUtils, TimeUtils, and XContentSource from HLR…
nknize Feb 9, 2021
a40924f
[PURIFY] Remove x-pack feature flag from yaml test (#68)
nknize Feb 9, 2021
5172928
Remove testcase testSearchWithBasicLicensedQuery since basic license …
harold-wang Feb 9, 2021
8654d6e
Remove UnusedImports (#76)
harold-wang Feb 10, 2021
52a3f37
Bring back the REST specs for data streams. (#78)
adnapibar Feb 10, 2021
75162da
Remove unused imports after x-pack feature flag removed from yaml tes…
Feb 10, 2021
6ba8876
[TEST] Fix Feature Flags in Test Framework and SortTemplates yaml fai…
nknize Feb 10, 2021
88542a7
Run precommit and unit tests as part of github actions. (#84)
adnapibar Feb 11, 2021
8f069ed
Removing FreezeIndex related code since its x-pack counterpart is rem…
abbashus Feb 11, 2021
93f3dd5
Only run pre-commit checks in GitHub actions. (#94)
adnapibar Feb 12, 2021
b29f47b
Fixing Bwc checks for 7.10.3 (#93)
saratvemulapalli Feb 12, 2021
482b187
Temporary fix for license check path for debian packaging. (#97)
adnapibar Feb 15, 2021
7114dd3
Disable plugincli feature (#101)
adnapibar Feb 15, 2021
baf563f
Update CONTRIBUTING.md
CEHENKLE Feb 18, 2021
7710ba2
Update CONTRIBUTING.md
CEHENKLE Feb 18, 2021
d135245
Support for continious integration with Jenkins (#96)
Feb 18, 2021
3b27a82
Create DEVELOPER_GUIDE.md
CEHENKLE Feb 19, 2021
460b564
Update CONTRIBUTING.md
CEHENKLE Feb 19, 2021
f22769e
Update CONTRIBUTING.md
CEHENKLE Feb 19, 2021
e1538b7
Update CONTRIBUTING.md
CEHENKLE Feb 19, 2021
601c734
Update CONTRIBUTING.md
CEHENKLE Feb 19, 2021
098fa0c
Update CONTRIBUTING.md
CEHENKLE Feb 19, 2021
fd36020
Remove any non oss from build, package, and distribution (#102)
nknize Feb 22, 2021
e607275
Style, accessibility, typo fixes (#109)
stockholmux Feb 23, 2021
4960dc9
Add version number to fork sentence
jcgraybill Feb 23, 2021
d4b12e7
"licensed" -> "released"
jcgraybill Feb 23, 2021
ca549b2
Remove x-pact from RESI API username and password (#117)
harold-wang Feb 23, 2021
d7e6aa0
Update signoff message (#121)
harold-wang Feb 24, 2021
5515b07
Update CI workflow to work on new infra (#123)
peternied Feb 24, 2021
462a0f1
Update .gitignore
peterzhuamazon Feb 24, 2021
e66c684
Update .gitignore
peterzhuamazon Feb 24, 2021
fba2d4c
Disable BWC checks. (#130)
Feb 24, 2021
ead8891
Create CODE_OF_CONDUCT.md (#124)
CEHENKLE Feb 25, 2021
547fdcb
Update developer guide (#136)
harold-wang Mar 1, 2021
29d5b00
Add script to perform signoff check between commits (#152)
peternied Mar 1, 2021
c50e8c8
[Rename] server/src/main/java/org/apache (#162)
nknize Mar 2, 2021
7a10440
Revert "[Rename] server/src/main/java/org/apache (#162)"
nknize Mar 2, 2021
3f2b7e5
Update CONTRIBUTING.md
CEHENKLE Mar 3, 2021
011b577
Update CONTRIBUTING.md
CEHENKLE Mar 3, 2021
dbb6c35
Update CONTRIBUTING.md
CEHENKLE Mar 3, 2021
6341605
Update CONTRIBUTING.md
CEHENKLE Mar 3, 2021
e0be0ea
Update CODE_OF_CONDUCT.md
CEHENKLE Mar 3, 2021
0fd5ef0
Update CONTRIBUTING.md
CEHENKLE Mar 4, 2021
d6855da
Dummy commit to test the CI/CD workflow
bbarani Mar 4, 2021
8efc8e0
Update .gitignore
peterzhuamazon Mar 4, 2021
8ed6084
Fixing transport deserialization with oss distribution (#218)
saratvemulapalli Mar 5, 2021
8f87920
Update LICENSE.txt (#227)
CEHENKLE Mar 6, 2021
ab729f5
Merge branch 'main' into Updating-CONTRIBUTING.md
CEHENKLE Mar 9, 2021
6deeff2
Update DEVELOPER_GUIDE.md
CEHENKLE Mar 10, 2021
dc351cd
Update DEVELOPER_GUIDE.md
CEHENKLE Mar 10, 2021
8661b61
Update DEVELOPER_GUIDE.md
CEHENKLE Mar 11, 2021
0673f50
Update DEVELOPER_GUIDE.md
CEHENKLE Mar 11, 2021
a2119e8
Update DEVELOPER_GUIDE.md
CEHENKLE Mar 15, 2021
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
Prev Previous commit
Next Next commit
Disable plugincli feature (#101)
Plugins CLI - disable installing official plugins by name.

Currently the plugin cli allows installation of a plugin by name in which case it downloads the plugin artifacts from the official elastic artifacts repository.

We will enable it once we have the new official artifacts download URL (Tracking Issue: #100)
  • Loading branch information
adnapibar authored Feb 15, 2021
commit 7114dd3d8c1e20c44358e03a78d9170578711eb4
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,16 @@ void execute(Terminal terminal, List<String> pluginIds, boolean isBatch, Environ

/** Downloads the plugin and returns the file it was downloaded to. */
private Path download(Terminal terminal, String pluginId, Path tmpDir, boolean isBatch) throws Exception {
if (OFFICIAL_PLUGINS.contains(pluginId)) {
final String url = getElasticUrl(terminal, getStagingHash(), Version.CURRENT, isSnapshot(), pluginId, Platforms.PLATFORM_NAME);
terminal.println("-> Downloading " + pluginId + " from elastic");
return downloadAndValidate(terminal, url, tmpDir, true, isBatch);
}
//
// Disabled installing of plugins by name (https://github.com/opendistro-for-elasticsearch/search/issues/71)
// TODO: Once we have the new artifacts repository URL, We will uncomment this section and update the URLs.
// https://github.com/opendistro-for-elasticsearch/search/issues/100
//
// if (OFFICIAL_PLUGINS.contains(pluginId)) {
// final String url = getElasticUrl(terminal, getStagingHash(), Version.CURRENT, isSnapshot(), pluginId, Platforms.PLATFORM_NAME);
// terminal.println("-> Downloading " + pluginId + " from elastic");
// return downloadAndValidate(terminal, url, tmpDir, true, isBatch);
// }

// now try as maven coordinates, a valid URL would only have a colon and slash
String[] coordinates = pluginId.split(":");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -990,13 +990,15 @@ public void assertInstallPluginFromUrl(
);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPlugin() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
+ ".zip";
assertInstallPluginFromUrl("analysis-icu", "analysis-icu", url, null, false);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPluginSnapshot() throws Exception {
String url = String.format(
Locale.ROOT,
Expand All @@ -1007,6 +1009,7 @@ public void testOfficialPluginSnapshot() throws Exception {
assertInstallPluginFromUrl("analysis-icu", "analysis-icu", url, "abc123", true);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testInstallReleaseBuildOfPluginOnSnapshotBuild() {
String url = String.format(
Locale.ROOT,
Expand All @@ -1026,6 +1029,7 @@ public void testInstallReleaseBuildOfPluginOnSnapshotBuild() {
);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPluginStaging() throws Exception {
String url = "https://staging.elastic.co/"
+ Version.CURRENT
Expand All @@ -1035,6 +1039,7 @@ public void testOfficialPluginStaging() throws Exception {
assertInstallPluginFromUrl("analysis-icu", "analysis-icu", url, "abc123", false);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPlatformPlugin() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Platforms.PLATFORM_NAME
Expand All @@ -1044,6 +1049,7 @@ public void testOfficialPlatformPlugin() throws Exception {
assertInstallPluginFromUrl("analysis-icu", "analysis-icu", url, null, false);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPlatformPluginSnapshot() throws Exception {
String url = String.format(
Locale.ROOT,
Expand All @@ -1055,6 +1061,7 @@ public void testOfficialPlatformPluginSnapshot() throws Exception {
assertInstallPluginFromUrl("analysis-icu", "analysis-icu", url, "abc123", true);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialPlatformPluginStaging() throws Exception {
String url = "https://staging.elastic.co/"
+ Version.CURRENT
Expand Down Expand Up @@ -1099,6 +1106,7 @@ public void testMavenChecksumWithoutFilename() throws Exception {
);
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialChecksumWithoutFilename() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand All @@ -1122,6 +1130,7 @@ public void testOfficialChecksumWithoutFilename() throws Exception {
assertThat(e.getMessage(), startsWith("Invalid checksum file"));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testOfficialShaMissing() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand Down Expand Up @@ -1165,6 +1174,7 @@ public void testMavenShaMissing() throws Exception {
assertEquals("Plugin checksum missing: " + url + ".sha1", e.getMessage());
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testInvalidShaFileMissingFilename() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand All @@ -1188,6 +1198,7 @@ public void testInvalidShaFileMissingFilename() throws Exception {
assertTrue(e.getMessage(), e.getMessage().startsWith("Invalid checksum file"));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testInvalidShaFileMismatchFilename() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand All @@ -1211,6 +1222,7 @@ public void testInvalidShaFileMismatchFilename() throws Exception {
assertThat(e, hasToString(matches("checksum file at \\[.*\\] is not for this plugin")));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testInvalidShaFileContainingExtraLine() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand All @@ -1234,6 +1246,7 @@ public void testInvalidShaFileContainingExtraLine() throws Exception {
assertTrue(e.getMessage(), e.getMessage().startsWith("Invalid checksum file"));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testSha512Mismatch() throws Exception {
String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-"
+ Build.CURRENT.getQualifiedVersion()
Expand Down Expand Up @@ -1276,6 +1289,7 @@ public void testSha1Mismatch() throws Exception {
assertTrue(e.getMessage(), e.getMessage().contains("SHA-1 mismatch, expected foobar"));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testPublicKeyIdMismatchToExpectedPublicKeyId() throws Exception {
final String icu = "analysis-icu";
final String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/"
Expand Down Expand Up @@ -1311,6 +1325,7 @@ public void testPublicKeyIdMismatchToExpectedPublicKeyId() throws Exception {
assertThat(e, hasToString(containsString("key id [" + actualID + "] does not match expected key id [" + expectedID + "]")));
}

@AwaitsFix(bugUrl = "https://github.com/opendistro-for-elasticsearch/search/issues/100")
public void testFailedSignatureVerification() throws Exception {
final String icu = "analysis-icu";
final String url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/"
Expand Down