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

[Tiered Caching] Caching tier policies #11863

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
3afcb42
[Tiered caching] Integrating ehcache disk cache
sgup432 Jan 12, 2024
00f4545
Adding suppressForbidden for File.io used by ehcache
sgup432 Jan 16, 2024
30ad4e9
Fixing gradle build failure
sgup432 Jan 22, 2024
6bcf2f4
Adding changelog
sgup432 Jan 22, 2024
03ac29f
Fix log appender in InsecureSettingTests (#11866)
andrross Jan 12, 2024
f8788c9
Update supported version for must_exist parameter in update aliases A…
gaobinlong Jan 13, 2024
9140739
Bump lycheeverse/lychee-action from 1.9.0 to 1.9.1 (#11887)
dependabot[bot] Jan 15, 2024
514eb94
Bump com.networknt:json-schema-validator from 1.0.86 to 1.1.0 (#11886)
dependabot[bot] Jan 15, 2024
c4ebfd8
Bump OpenTelemetry from 1.32.0 to 1.34.1 (#11891)
reta Jan 15, 2024
5e400c2
Support for Google Application Default Credentials (#8394)
fahadshamiinsta Jan 16, 2024
abdb915
Add TRIAGING.md for triage agenda and processes (#11814)
peternied Jan 16, 2024
7ae31d8
Add copy ingest processor (#11870)
gaobinlong Jan 16, 2024
7d28e41
Fix flaky RemoteStoreRefreshListenerTests test #11256 (#11803)
ashking94 Jan 17, 2024
fdfb60c
Remove ingest processor supports excluding fields (#10967)
gaobinlong Jan 17, 2024
98d9356
Apply the fast filter optimization to composite aggregation (#11505)
bowenlan-amzn Jan 17, 2024
7da29b0
Bump com.google.api:gax-httpjson from 0.103.1 to 2.39.0 in /plugins/r…
deshsidd Jan 18, 2024
604886f
Fix flaky RemoteFSTranslogTests testMetadataFileDeletion test #9605 (…
ashking94 Jan 18, 2024
f15ebd2
Add experimental SIMD implementation of B-tree to round down dates (#…
ketanv3 Jan 18, 2024
4a9045f
Update supported version for fixing the bug of noop_update_total metr…
gaobinlong Jan 18, 2024
28eb862
Support index level allocation filtering for searchable snapshot inde…
bugmakerrrrrr Jan 18, 2024
13f2e6a
Add @SuppressWarnings("removal") to not fail the build with -Werror f…
reta Jan 18, 2024
0b33dc2
Add @SuppressWarnings("removal") to not fail the build with -Werror f…
reta Jan 18, 2024
8fe3f71
Extract cluster management for integration tests into JUnit test rule…
reta Jan 18, 2024
97e5a1b
Expose RestController all handlers iterator. (#11876)
dblock Jan 18, 2024
4685e22
Only check LongVector.SPECIES_PREFERRED when jdk.incubator.vector is …
reta Jan 18, 2024
99beac2
Allow empty translog for ITs testing no ingestion post refresh/commit…
linuxpi Jan 19, 2024
0957ffc
Fix memory leak issue in ReorganizingLongHash (#11953)
neetikasinghal Jan 19, 2024
66575df
Bump com.google.oauth-client:google-oauth-client from 1.34.1 to 1.35.…
dependabot[bot] Jan 22, 2024
693a4a3
Bump com.diffplug.spotless from 6.23.2 to 6.24.0 (#11962)
dependabot[bot] Jan 22, 2024
639fbb1
Exposing ehcache disk cache variant as a plugin
sgup432 Jan 25, 2024
64d6606
Fixing gradle failures
sgup432 Jan 25, 2024
4c85eee
Making ICache extend Closeable
sgup432 Jan 25, 2024
fab71c2
Exposing plugin based settings and refactoring
sgup432 Jan 29, 2024
ac565f8
Fixing gradle failures for server subproject
sgup432 Jan 29, 2024
699e126
Fixing server:javadoc failure
sgup432 Jan 30, 2024
b609e3d
Fixing cache-ehcache plugin javadov failures
sgup432 Jan 30, 2024
e58db34
Addressing comment and additional unit tests
sgup432 Jan 31, 2024
79f9d1d
Moving ehcache version info to the plugin
sgup432 Jan 31, 2024
473786d
Moving tieredCache to module and refactoring caches interface and lis…
sgup432 Feb 14, 2024
e131d1a
Bump com.networknt:json-schema-validator from 1.1.0 to 1.2.0 (#11963)
dependabot[bot] Jan 22, 2024
e5790a7
[Github Action] Enhance version increment script to create tracking i…
kotwanikunal Jan 22, 2024
701ed5f
Bump com.google.cloud:google-cloud-core from 2.5.10 to 2.30.0 in /plu…
dependabot[bot] Jan 23, 2024
69ea6c0
Workaround for https://bugs.openjdk.org/browse/JDK-8323659 regression…
reta Jan 23, 2024
2adbe67
Fix flaky-test for CopyProcessorTests (#11982)
gaobinlong Jan 23, 2024
0f1ba18
Fix: remove unnecessary trailing slash from REST paths. (#11992)
dblock Jan 23, 2024
8d9d783
OpenJDK Update (January 2024 Patch releases) (#11991)
reta Jan 23, 2024
0635791
Fix typo in RemoveProcessor (#11983)
gaobinlong Jan 23, 2024
c4ab208
Disable index refresh for TermsFixedDocCountErrorIT (#11976)
jed326 Jan 23, 2024
c127c9a
[Searchable Snapshot] Add Relevant Error handling for Restore API wit…
Rishikesh1159 Jan 24, 2024
8a627fd
Fix test cluster behavior @ClusterScope(scope = Scope.SUITE) and @Ope…
reta Jan 24, 2024
bf9ee33
Fixing Minio docker compose fixture (#12014)
saratvemulapalli Jan 24, 2024
cf18c08
Added New DateTime parser implementation (#11465)
CaptainDredge Jan 24, 2024
28a8329
Add calling class name to mock log appender (#12013)
andrross Jan 25, 2024
dd30b69
Fix limit check for listing S3 objects (#12018)
Jan 25, 2024
f8814db
[Searchable Snapshot] Add Relevant Error handling for Index Creation …
Rishikesh1159 Jan 25, 2024
6e15fbe
[BUG] Fix remote shards balancer when filtering throttled nodes (#11724)
bugmakerrrrrr Jan 25, 2024
9d34bb4
Fetch all the locks for a shard to avoid multiple remote store calls …
sachinpkale Jan 26, 2024
7ccb4df
Bump Netty to 4.1.106.Final (#12034)
reta Jan 26, 2024
0197e50
Update Mockito to 5.10.0 (#12036)
reta Jan 26, 2024
0436dcf
Bump reactor-core and reactor-netty versions (#12042)
reta Jan 27, 2024
14c93b2
Adding configurable connection count setting for S3 Sync Client (#12028)
gbbafna Jan 29, 2024
707fee3
Bump com.diffplug.spotless from 6.24.0 to 6.25.0 (#12055)
dependabot[bot] Jan 29, 2024
a96290d
Bump com.google.http-client:google-http-client-jackson2 from 1.43.3 t…
dependabot[bot] Jan 29, 2024
35d9aa2
Bump com.gradle.enterprise from 3.16.1 to 3.16.2 (#12056)
dependabot[bot] Jan 29, 2024
e335386
Update to Apache Lucene 9.9.2 (#12063)
reta Jan 29, 2024
e69ce38
Update Apache Lucene version for 2.12.0 release (#12072)
reta Jan 29, 2024
696da57
Bump peter-evans/create-issue-from-file from 4 to 5 (#12057)
dependabot[bot] Jan 29, 2024
c2c4b44
Updating Ip fields to use doc_values to search (#11508)
harshavamsi Jan 30, 2024
5682a94
Ensure latest replication checkpoint post failover has correct operat…
linuxpi Jan 30, 2024
a7bdf77
The telemetry-otel should not publish any client JARs (since it does …
reta Jan 30, 2024
aa45bbe
Flaky testRelocateWhileContinuouslyIndexingAndWaitingForRefresh test:…
dreamer-89 Jan 30, 2024
5ed9f88
Move Google Application Default Credentials CHANGELOG entry to 2.x (#…
andrross Jan 30, 2024
3a126a9
Enable cluster and replication package debug logging for testSingleIn…
dreamer-89 Jan 30, 2024
17b2d86
[Bug] Check phase name before SearchRequestOperationsListener onPhase…
dzane17 Jan 30, 2024
6940638
Remove compounding retries within PrimaryShardReplicationSource (#12043)
mch2 Jan 30, 2024
646e8cc
Fixed typo in DEVELOPER_GUIDE.md. (#12051)
drunken-monkey Jan 30, 2024
e72ce9a
Fix flaky test SegmentReplicationStatsIT.testMultipleIndices (#12070)
Poojita-Raj Jan 31, 2024
775fbbb
Fix flaky RemoteIndexRecoveryIT testRerouteRecovery test #9580 (#11918)
ashking94 Jan 31, 2024
f0524b5
fix flaky test - handle IllegalStateException and throw AssertionErro…
linuxpi Jan 31, 2024
7da66e2
fix flaky 11610 (#12049)
sarthakaggarwal97 Jan 31, 2024
bea4e5c
Add additional logging for Azure repository stats (#12079)
saratvemulapalli Jan 31, 2024
6131639
Add advance(int) for numeric values in order to allow point based opt…
reta Feb 1, 2024
67a94c6
Added spotless for json files (#12076)
owaiskazi19 Feb 1, 2024
f1ac25e
Modify shrink exception to be more informative (#12117)
Poojita-Raj Feb 1, 2024
2635abc
Mute flaky test testThreeNodesNoClusterManagerBlock (#12093)
kotwanikunal Feb 2, 2024
f71d1d1
Added transport action for bulk async shard fetch for primary shards …
sudarshan-baliga Feb 2, 2024
8d2c281
Create a clone of local segements size map used for Remote Segment St…
linuxpi Feb 2, 2024
1185a22
Fix race condition in SimpleNioTransportTests.testTracerLog (#12139)
andrross Feb 2, 2024
010a01f
Allow composite aggregation under filter or reverse_nested parent (#…
msfroh Feb 2, 2024
554fe63
Remove Concurrent Segment Search feature flags for feature launch (#1…
jed326 Feb 2, 2024
ac69cb0
Cleanup file cache on deleting index/shard directory (#11443)
bugmakerrrrrr Feb 3, 2024
afc28ff
Fix bwc for concurrent segment search GA (#12156)
jed326 Feb 3, 2024
c3b121c
[Remote Store] Waiting for remote store upload in snapshot/local reco…
gbbafna Feb 5, 2024
6f99c7b
Add drainRefreshes as part of tearDown in RemoteStoreRefreshListenerT…
sachinpkale Feb 5, 2024
2b21525
Update to Gradle 8.6 (#11757)
reta Feb 5, 2024
eed69f4
Bump actions/github-script from 6.4.0 to 7.0.1 (#12166)
dependabot[bot] Feb 5, 2024
9f98cd0
Bump com.netflix.nebula.ospackage-base from 11.6.0 to 11.8.0 in /dist…
dependabot[bot] Feb 5, 2024
e8a5a1c
Enable Fuzzy codec for doc id fields using a bloom filter (#11027)
mgodwan Feb 5, 2024
60e25cc
Bump org.gradle.test-retry from 1.5.4 to 1.5.8 (#12168)
dependabot[bot] Feb 5, 2024
810e091
Bump com.google.api:gax-httpjson from 2.39.0 to 2.42.0 in /plugins/re…
dependabot[bot] Feb 5, 2024
979603b
[Metric Framework] Adds support for Histogram metric (#12062)
Gaganjuneja Feb 5, 2024
2947c79
Query insights plugin implementation (#11903)
ansjcy Feb 6, 2024
0ce8133
Top N Queries by latency implementation (#11904)
ansjcy Feb 6, 2024
3992f91
Disable seg-rep for fuzzy filter postings upgrade IT (#12183)
mgodwan Feb 6, 2024
609b373
Add remove_by_pattern ingest processor (#11920)
gaobinlong Feb 6, 2024
84bd2f1
add support for scored named queries (#11626)
Dharin-shah Feb 6, 2024
0ad74fe
Fix bwc for admission control (#12201)
kotwanikunal Feb 6, 2024
7c35ae8
Increase index_searcher thread count to 2x processor (#12196)
jed326 Feb 7, 2024
37e344b
Fix CVE-2023-25613 (#12194)
kotwanikunal Feb 7, 2024
a14da39
Bump org.apache.shiro:shiro-core from 1.11.0 to 1.13.0 (#12200)
kotwanikunal Feb 7, 2024
6de90ff
[Bugfix] Pass TwoPhaseIterator from subQueryScorer (#11954)
noCharger Feb 7, 2024
8442e4f
Added custom sampler support based on action in request (#10136)
devagarwal1803 Feb 7, 2024
5fa068e
[BugFix] Fixing Span operation names generated from RestActions (#12005)
atharvasharma61 Feb 7, 2024
350a0f5
Apply fast date histogram optimization at the segment level (#12073)
bowenlan-amzn Feb 7, 2024
2930f84
Move 2.x version to 2.13.0 (#12227) (#12230)
reta Feb 7, 2024
4ecd9c8
Adding a "meta issue" template (#12148)
CEHENKLE Feb 7, 2024
4e3b62f
Fix 350_matched_queries.yml tests while awaiting for backport (#12232)
reta Feb 7, 2024
64cea8e
Add community_id ingest processor (#12121)
gaobinlong Feb 7, 2024
122c362
Add support for dependencies in plugin descriptor properties with sem…
abseth-amzn Feb 8, 2024
1ef88d3
Update the lucene snapshot url (#12260)
peternied Feb 9, 2024
4e8328b
fix flaky test FieldSortIT (#12259)
Poojita-Raj Feb 9, 2024
6b738c6
[Segment Replication] Add Segment Replication Specific Integration Te…
Rishikesh1159 Feb 9, 2024
b30a341
Update version check in PluginInfo for semver range to make it compat…
abseth-amzn Feb 9, 2024
0023e61
Fix: reset the filter built at segment level for date histogram optim…
bowenlan-amzn Feb 9, 2024
be97a3b
Add release notes for 2.12.0 (#12278)
andrross Feb 10, 2024
1c6a5f8
Introduce index.query.max_nested_depth. fix #3268 (#11670)
mkhludnev Feb 10, 2024
38d3171
Fix for deserilization bug in weighted round robin metadata (#11679)
anshu1106 Feb 12, 2024
b5153fd
Bump peter-evans/find-comment from 2 to 3 (#12288)
dependabot[bot] Feb 12, 2024
009e204
Add toString() to MultiSearchRequest, MultiGetRequest and CreateIndex…
guillaume-alvarez Feb 12, 2024
0fe4068
Bump com.google.api.grpc:proto-google-common-protos from 2.25.1 to 2.…
dependabot[bot] Feb 12, 2024
875afeb
Add a system property to configure YamlParser codepoint limits (#12301)
reta Feb 13, 2024
c2dd5af
Remove PR #11499 from 2.12 release notes (#12311)
andrross Feb 14, 2024
0ebc747
Bump com.squareup.okio:okio from 3.7.0 to 3.8.0 in /test/fixtures/hdf…
dependabot[bot] Feb 14, 2024
bd63b53
Introducing CacheService to create caches
sgup432 Feb 23, 2024
b2089b8
Updating cache common build.gradle
sgup432 Feb 23, 2024
a393c0b
Making TieredCachePlugin constructor public
sgup432 Feb 27, 2024
c1bfcc9
Fixing CacheService unit test
sgup432 Feb 27, 2024
fde0bd6
Removing unnecessary comments from Tiered cache test
sgup432 Feb 29, 2024
9171b0a
Fixing ehcache test concurrentPut
sgup432 Feb 29, 2024
cd1fc93
Update BouncyCastle dependencies from jdk15to18 to jdk18on (#12317)
stephen-crawford Feb 14, 2024
7baa608
Add 'Related component' dropdown to meta template (#12321)
andrross Feb 14, 2024
fb884a4
Fixes ByteArrayIndexInput::validatePos and adds UT (#10551)
parasjain1 Feb 15, 2024
7c83b51
Allow security manager in IntelliJ unit tests (#12330)
andrross Feb 15, 2024
45704d3
Fix test logic error in FilterRewriteIT (#12327)
bowenlan-amzn Feb 15, 2024
57fa283
Fix a flaky test that relies on terminate_after for an exact count ma…
austintlee Feb 15, 2024
d260214
Fix error in RemoteSegmentStoreDirectory when debug logging is enable…
peternied Feb 16, 2024
5d43ba0
[Remote Store] Introducing mixed mode support for remote store migrat…
gbbafna Feb 16, 2024
e83770b
Fixing flaky test cases (#12320)
RS146BIJAY Feb 16, 2024
471456e
Add support of special WrappingSearchAsyncActionPhase so the onPhaseS…
reta Feb 16, 2024
b0d92d4
[Segment Replication] Enable test suites to run with segrep (#12307)
Poojita-Raj Feb 17, 2024
df88b56
Fix the "highlight.max_analyzer_offset" request parameter with "plain…
drunken-monkey Feb 17, 2024
ba22437
Avoid string out of bounds error in snapshot delete (#12337)
andrross Feb 19, 2024
56e2571
Bump gradle/wrapper-validation-action from 1 to 2 (#12367)
dependabot[bot] Feb 19, 2024
6e93394
Fixing FSHealthy tests (#12366)
RS146BIJAY Feb 19, 2024
d53eaf8
Bump netty from 4.1.106.Final to 4.1.107.Final (#12372)
reta Feb 19, 2024
6393eda
Mute DeleteSnapshotIT.testDeleteMultipleShallowCopySnapshotsCase1 (#1…
andrross Feb 20, 2024
e9121ed
Bump `peternied/check-pull-request-description-checklist` from v1 to …
peternied Feb 20, 2024
9ec5adc
Bump opentelemetry from 1.34.1 to 1.35.0 (#12388)
reta Feb 20, 2024
caab62d
Bump Apache Lucene from 9.9.2 to 9.10.0 (#12392)
reta Feb 20, 2024
df9e75a
Mute RemoteIndexPrimaryRelocationIT (#12389)
andrross Feb 20, 2024
1de6134
Disable concurrent search path for composite aggregations. For more d…
sohami Feb 20, 2024
beced17
Update TRIAGING instructions for closed issues (#12382)
dbwiddis Feb 20, 2024
6a41b10
Views (#11957)
peternied Feb 20, 2024
34150c0
Update Apache Lucene version to 9.10.0 for OpenSearch 2.13.0 (#12394)
reta Feb 21, 2024
0fdb90b
Warn about `index.mapper.dynamic` usage instead of erroring (#11193)
peternied Feb 21, 2024
0c02956
[BUG] org.opensearch.common.xcontent.XContentParserTests.testString i…
reta Feb 21, 2024
1927f36
Fix flaky SegRep test testScrollCreatedOnReplica (#12077)
mch2 Feb 21, 2024
cdb018b
[AUTO] [main] Add bwc version 2.12.1. (#12405)
opensearch-trigger-bot[bot] Feb 21, 2024
09c2fcb
[Segment Replication] Add random replication strategy (#12297)
Rishikesh1159 Feb 21, 2024
df4af20
Unmute get field mapping test (#12422)
andrross Feb 22, 2024
d584963
Remove PR11626 from 2.12 release notes (#12428)
andrross Feb 22, 2024
012c8df
Shard id awareness of SearchLookup (#1063)
anti-social Feb 22, 2024
9190c39
Add support for scored named queries (version updates) (#12446)
reta Feb 24, 2024
86ad2e5
Bump org.apache.logging.log4j:log4j-core from 2.22.1 to 2.23.0 in /bu…
dependabot[bot] Feb 26, 2024
2730fc5
Bump antlr4 from 4.11.1 to 4.13.1 (#12445)
reta Feb 26, 2024
081c91e
Bump com.netflix.nebula.ospackage-base from 11.8.0 to 11.8.1 in /dist…
dependabot[bot] Feb 26, 2024
45a114c
Bump peter-evans/create-or-update-comment from 3 to 4 (#12462)
dependabot[bot] Feb 26, 2024
3a5645e
Fix get task API does not refresh resource stats (#11531)
gaobinlong Feb 26, 2024
a799996
Bump Apache Lucene to 9.11.0-snapshot-8a555eb (#12478)
reta Feb 27, 2024
5359663
[Searchable Snapshot] Fix bug of Searchable Snapshot Dependency on re…
Rishikesh1159 Feb 27, 2024
c1fa260
Fixing flaky ehcache test
sgup432 Mar 1, 2024
76812cf
Fixing twice registration of same setting
sgup432 Mar 1, 2024
6d7d02b
Adds policy interface and took time policy impl
Jan 10, 2024
4b44448
Integrates policies with TieredSpilloverCache
Jan 10, 2024
f8aa67a
Changes IndicesService to write a CachePolicyInfoWrapper before the QSR
Jan 10, 2024
60a0ae6
Moved took time logic from QSR to IndicesService
Jan 10, 2024
75b16a0
spotlessApply
Jan 11, 2024
76509e3
Addressed ansjcy's comments
Jan 17, 2024
24448fc
Partial rebase on most recent changes
Mar 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ BWC_VERSION:
- "2.11.1"
- "2.11.2"
- "2.12.0"
- "2.12.1"
- "2.13.0"
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ✨ Meta Issue
description: An issue that collects other issues together to describe a larger project or activity.
title: '[META] <title>'
labels: ['Meta, untriaged']
body:
- type: textarea
attributes:
label: Please describe the end goal of this project
description: A clear and concise description of this project/endeavor. This should be understandable to someone with no context.
placeholder: Ex. Views is a way to project indices in OpenSearch, these views act as a focal point for describing the underlying data and how the data is accessed. It allows for restricting the scope and filtering the response consistently.
validations:
required: true
- type: textarea
attributes:
label: Supporting References
description: Please provide links (and descriptions!) to RFCs, design docs, etc
validations:
required: true
- type: textarea
attributes:
label: Issues
description: Please create a list of issues that should be tracked by this meta issue, including a short description. The purpose is to provide everyone on the project with an "at a glance" update of the state us the work being tracked. If you use the format "- [ ]" it will put your list into a checklist.
placeholder: Ex. - [ ] https://github.com/opensearch-project/security/issues/3888 Add views to the cluster metadata schema
validations:
required: true
- type: dropdown
attributes:
label: Related component
description: Choose a specific OpenSearch component your project belongs to. If you are unsure of which component to select or if the component is not present, select "Other".
multiple: false
options:
- # Empty first option to force selection
- Build
- Clients
- Cluster Manager
- Extensions
- Indexing:Performance
- Indexing:Replication
- Indexing
- Libraries
- Other
- Plugins
- Search:Aggregations
- Search:Performance
- Search:Query Capabilities
- Search:Query Insights
- Search:Relevance
- Search:Remote Search
- Search:Resiliency
- Search:Searchable Snapshots
- Search
- Storage:Durability
- Storage:Performance
- Storage:Remote
- Storage:Snapshots
- Storage
validations:
required: true
4 changes: 2 additions & 2 deletions .github/workflows/check-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ jobs:
name: results.txt

- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Compatibility status:'

- name: Add comment on the PR
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-documentation-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Create Issue From File
id: create-issue
uses: peter-evans/create-issue-from-file@v4
uses: peter-evans/create-issue-from-file@v5
with:
title: Add documentation related to new feature
content-filepath: ./ci/documentation/issue.md
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Create Comment Success
if: ${{ github.event_name == 'pull_request_target' && success() && env.result == 'SUCCESS' }}
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ env.pr_number }}
body: |
Expand All @@ -101,7 +101,7 @@ jobs:

- name: Create Comment Flaky
if: ${{ github.event_name == 'pull_request_target' && success() && env.result != 'SUCCESS' }}
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ env.pr_number }}
body: |
Expand All @@ -111,7 +111,7 @@ jobs:

- name: Create Comment Failure
if: ${{ github.event_name == 'pull_request_target' && failure() }}
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ env.pr_number }}
body: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- name: lychee Link Checker
id: lychee
uses: lycheeverse/[email protected].0
uses: lycheeverse/[email protected].1
with:
args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes
fail: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maintainer-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: find-maintainers
uses: actions/github-script@v7
uses: actions/github-script@v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/poc-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
issues: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Verify Description Checklist
runs-on: ubuntu-latest
steps:
- uses: peternied/check-pull-request-description-checklist@v1
- uses: peternied/check-pull-request-description-checklist@v1.1
with:
checklist-items: |
New functionality includes testing.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: github.repository == 'opensearch-project/OpenSearch'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
- uses: actions/github-script@v7.0.1
with:
script: |
const { issue, repository } = context.payload;
Expand Down
109 changes: 69 additions & 40 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: Increment Version

on:
workflow_dispatch:
inputs:
tag:
description: 'the tag'
required: true
type: string
push:
tags:
- '*.*.*'

permissions: {}
permissions:
contents: write
issues: write
pull-requests: write

jobs:
build:
if: github.repository == 'opensearch-project/OpenSearch'
runs-on: ubuntu-latest
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- uses: actions/checkout@v4
- name: Fetch Tag and Version Information
- name: Fetch tag and version information
run: |
TAG=$(echo "${GITHUB_REF#refs/*/}")
if [ -n ${{ github.event.inputs.tag }} ]; then
TAG=${{ github.event.inputs.tag }}
fi
CURRENT_VERSION_ARRAY=($(echo "$TAG" | tr . '\n'))
BASE=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:2}")
BASE_X=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:1}.x")
Expand All @@ -44,24 +48,22 @@ jobs:
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
echo "NEXT_VERSION_UNDERSCORE=$NEXT_VERSION_UNDERSCORE" >> $GITHUB_ENV
echo "NEXT_VERSION_ID=$NEXT_VERSION_ID" >> $GITHUB_ENV

- uses: actions/checkout@v4
with:
ref: ${{ env.BASE }}
token: ${{ steps.github_app_token.outputs.token }}

- name: Increment Patch Version
run: |
echo Incrementing $CURRENT_VERSION to $NEXT_VERSION
echo " - \"$CURRENT_VERSION\"" >> .ci/bwcVersions
sed -i "s/opensearch = $CURRENT_VERSION/opensearch = $NEXT_VERSION/g" buildSrc/version.properties
echo Adding $NEXT_VERSION_UNDERSCORE after $CURRENT_VERSION_UNDERSCORE
sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java
sed -i "s/CURRENT = $CURRENT_VERSION_UNDERSCORE;/CURRENT = $NEXT_VERSION_UNDERSCORE;/g" libs/core/src/main/java/org/opensearch/Version.java
- name: Increment Patch Version on Major.Minor branch
uses: peternied/opensearch-core-version-updater@v1
with:
previous-version: ${{ env.CURRENT_VERSION }}
new-version: ${{ env.NEXT_VERSION }}
update-current: true

- name: Create Pull Request
- name: Create PR for BASE
id: base_pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.github_app_token.outputs.token }}
base: ${{ env.BASE }}
branch: 'create-pull-request/patch-${{ env.BASE }}'
commit-message: Increment version to ${{ env.NEXT_VERSION }}
Expand All @@ -76,19 +78,18 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ env.BASE_X }}
token: ${{ steps.github_app_token.outputs.token }}

- name: Add bwc version to .X branch
run: |
echo Adding bwc version $NEXT_VERSION after $CURRENT_VERSION
sed -i "s/- \"$CURRENT_VERSION\"/\0\n - \"$NEXT_VERSION\"/g" .ci/bwcVersions
echo Adding $NEXT_VERSION_UNDERSCORE after $CURRENT_VERSION_UNDERSCORE
sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java
- name: Add Patch Version on Major.X branch
uses: peternied/opensearch-core-version-updater@v1
with:
previous-version: ${{ env.CURRENT_VERSION }}
new-version: ${{ env.NEXT_VERSION }}
update-current: false

- name: Create Pull Request
- name: Create PR for BASE_X
id: base_x_pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.github_app_token.outputs.token }}
base: ${{ env.BASE_X }}
branch: 'create-pull-request/patch-${{ env.BASE_X }}'
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
Expand All @@ -103,19 +104,18 @@ jobs:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ steps.github_app_token.outputs.token }}

- name: Add bwc version to main branch
run: |
echo Adding bwc version $NEXT_VERSION after $CURRENT_VERSION
sed -i "s/- \"$CURRENT_VERSION\"/\0\n - \"$NEXT_VERSION\"/g" .ci/bwcVersions
echo Adding $NEXT_VERSION_UNDERSCORE after $CURRENT_VERSION_UNDERSCORE
sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java
- name: Add Patch Version on main branch
uses: peternied/opensearch-core-version-updater@v1
with:
previous-version: ${{ env.CURRENT_VERSION }}
new-version: ${{ env.NEXT_VERSION }}
update-current: false

- name: Create Pull Request
- name: Create PR for main
id: main_pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.github_app_token.outputs.token }}
base: main
branch: 'create-pull-request/patch-main'
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
Expand All @@ -126,3 +126,32 @@ jobs:
title: '[AUTO] [main] Add bwc version ${{ env.NEXT_VERSION }}.'
body: |
I've noticed that a new tag ${{ env.TAG }} was pushed, and added a bwc version ${{ env.NEXT_VERSION }}.

- name: Create tracking issue
id: create-issue
uses: actions/[email protected]
with:
script: |
const body = `
### Description
A new version of OpenSearch was released, to prepare for the next release new version numbers need to be updated in all active branches of development.

### Exit Criteria
Review and merged the following pull requests
- [ ] ${{ steps.base_pr.outputs.pull-request-url }}
- [ ] ${{ steps.base_x_pr.outputs.pull-request-url }}
- [ ] ${{ steps.main_pr.outputs.pull-request-url }}

### Additional Context
See project wide guidance on branching and versions [[link]](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).
`
const { data: issue }= await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["Build"],
title: "Increment version for ${{ env.NEXT_VERSION }}",
body: body
});
console.error(JSON.stringify(issue));
return issue.number;
result-encoding: string
2 changes: 1 addition & 1 deletion .github/workflows/wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/wrapper-validation-action@v2
32 changes: 16 additions & 16 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading