Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Oct 11, 2024
1 parent 1b409d6 commit 5656d26
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 81 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/annotate.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up the JDK
uses: actions/setup-java@v4
with:
java-version: '22'
java-version: '23'
distribution: 'temurin'
server-id: github
cache: 'maven'
Expand All @@ -31,12 +31,10 @@ jobs:
TWITTER_SECRET: ${{ secrets.TWITTER_SECRET }}
TWITTER_CUSTOMER_KEY: ${{ secrets.TWITTER_CUSTOMER_KEY }}
TWITTER_CUSTOMER_SECRET: ${{ secrets.TWITTER_CUSTOMER_SECRET }}
run: mvn -B package
- name: Upload test report
uses: actions/upload-artifact@v4
run: ./mvnw -B package
- name: Annotate run
uses: trinodb/github-actions/action-surefire-report@b63800bedfbc7ab1ff2e5fe7eaecf5ab82ce6a70
if: always()
with:
name: test report ${{ github.job }}
path: |
**/surefire-reports/TEST-*.xml
retention-days: 5
fail_if_no_tests: false
skip_publishing: true
14 changes: 5 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up the JDK
uses: actions/setup-java@v4
with:
java-version: '22'
java-version: '23'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -76,13 +76,9 @@ jobs:
with:
setup-java: false

- name: Upload test report
uses: actions/upload-artifact@v4
- name: Annotate run
uses: trinodb/github-actions/action-surefire-report@b63800bedfbc7ab1ff2e5fe7eaecf5ab82ce6a70
if: always()
with:
name: test report ${{ github.job }}
path: |
**/surefire-reports/TEST-*.xml
out/jreleaser/trace.log
out/jreleaser/output.properties
retention-days: 5
fail_if_no_tests: false
skip_publishing: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker run \
-e GITHUB_TOKEN \
-e SLACK_TOKEN \
-p 8080:8080 \
nineinchnick/trino-rest:0.135
nineinchnick/trino-rest:0.156
```

Supported connectors and their required environmental variables:
Expand All @@ -24,7 +24,7 @@ Then use your favourite SQL client to connect to Trino running at http://localho

# Usage

Download one of the ZIP packages, unzip it and copy the `trino-rest-github-0.135` directory to the plugin directory on every node in your Trino cluster.
Download one of the ZIP packages, unzip it and copy the `trino-rest-github-0.156` directory to the plugin directory on every node in your Trino cluster.
Create a `github.properties` file in your Trino catalog directory and point to a remote repo.
You can also use a path to a local repo if it's available on every worker node.

Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>176</version>
<version>186</version>
</parent>

<groupId>pl.net.was</groupId>
Expand Down Expand Up @@ -52,22 +52,22 @@
<air.check.skip-checkstyle>false</air.check.skip-checkstyle>
<air.build.jvmsize>4g</air.build.jvmsize>

<dep.trino.version>459</dep.trino.version>
<dep.airlift.version>268</dep.airlift.version>
<dep.trino.version>461</dep.trino.version>
<dep.airlift.version>274</dep.airlift.version>
<dep.slice.version>2.3</dep.slice.version>
<!-- temporary: required to be in sync with version pulled by libraries-bom -->
<dep.opentelemetry.version>1.42.1</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>2.8.0</dep.opentelemetry-instrumentation.version>
<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.guava.version>33.3.1-jre</dep.guava.version>
<dep.guice.version>7.0.0</dep.guice.version>
<dep.errorprone.version>2.32.0</dep.errorprone.version>
<dep.errorprone.version>2.33.0</dep.errorprone.version>
<dep.jackson.version>2.18.0</dep.jackson.version>
<dep.joda.version>2.13.0</dep.joda.version>
<dep.junit.version>5.11.1</dep.junit.version>
<dep.junit.version>5.11.2</dep.junit.version>
<dep.slf4j.version>2.0.16</dep.slf4j.version>
<dep.assertj-core.version>3.26.3</dep.assertj-core.version>
<dep.logback.version>1.5.8</dep.logback.version>
<dep.logback.version>1.5.9</dep.logback.version>
<dep.plugin.surefire.version>3.2.5</dep.plugin.surefire.version>
<dep.jna.version>5.14.0</dep.jna.version>

Expand Down
10 changes: 5 additions & 5 deletions trino-rest-github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Because most endpoints have some parameters that are required, there are two way
functions return an array of rows, which must be unnested: `"SELECT * FROM unnest(pulls(:token, :owner, :repo, :page))`
* reading from tables - required parameters are inferred from query conditions (`WHERE` clause); if there are multiple pages of results,
multiple requests will be made to fetch all of them before returning the data

Not all API endpoints are mapped yet, here's a list of the available tables:
* `orgs` - [Organizations](https://docs.github.com/en/rest/reference/orgs)
* `users` - [Users](https://docs.github.com/en/rest/reference/users)
Expand Down Expand Up @@ -51,17 +51,17 @@ An example command to run the Trino server with the git plugin and catalog enabl
```bash
src=$(git rev-parse --show-toplevel)
docker run \
-v $src/trino-rest-github/target/trino-rest-github-0.136-SNAPSHOT:/usr/lib/trino/plugin/github \
-v $src/trino-rest-github/target/trino-rest-github-0.156-SNAPSHOT:/usr/lib/trino/plugin/github \
-v $src/catalog:/etc/trino/catalog \
-p 8080:8080 \
--name trino \
-d \
trinodb/trino:440
trinodb/trino:461
```

Connect to that server using:
```bash
docker run -it --rm --link trino trinodb/trino:440 trino --server trino:8080 --catalog github --schema default
docker run -it --rm --link trino trinodb/trino:461 trino --server trino:8080 --catalog github --schema default
```

# Authentication and rate limits
Expand Down Expand Up @@ -94,7 +94,7 @@ that does this in an incremental fashion, that is it can be run in regular inter

To run the `Sync` utility in `trino-rest-github`:
```bash
java -cp "trino-rest-github/target/trino-rest-github-0.136-SNAPSHOT/*" pl.net.was.rest.github.Sync
java -cp "trino-rest-github/target/trino-rest-github-0.156-SNAPSHOT/*" pl.net.was.rest.github.Sync
```

Check how much data the `Sync` collected by running a query like:
Expand Down

0 comments on commit 5656d26

Please sign in to comment.