Skip to content

Commit

Permalink
SOLR-16996: Update Solr Exporter for Prometheus cli to use commons-cli (
Browse files Browse the repository at this point in the history
#2602)

* Migrate SolrExporter to use commons-cli and remove argparse4j
* now trigger bats testing when anything changes in the exporter code base to provide better testing

---------

Co-authored-by: Eric Pugh <[email protected]>
  • Loading branch information
malliaridis and epugh authored Aug 2, 2024
1 parent 88fa620 commit c30e2d0
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bin-solr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'solr/bin/**'
- 'solr/packaging/**'
- 'solr/core/src/java/org/apache/solr/cli/**'
- 'solr/prometheus-exporter/**'

jobs:
test:
Expand Down Expand Up @@ -47,4 +48,3 @@ jobs:
with:
name: logs
path: solr/packaging/build/test-output

2 changes: 1 addition & 1 deletion solr/prometheus-exporter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
})
implementation ('com.fasterxml.jackson.core:jackson-databind')
implementation ('net.sourceforge.argparse4j:argparse4j')
implementation 'commons-cli:commons-cli'
implementation ('com.github.ben-manes.caffeine:caffeine') { transitive = false }
implementation 'org.slf4j:slf4j-api'
implementation 'commons-codec:commons-codec'
Expand Down
Loading

0 comments on commit c30e2d0

Please sign in to comment.