Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dennishuo/polaris into dhuo-fix-ato…
Browse files Browse the repository at this point in the history
…mic-multi-table-transaction
  • Loading branch information
dennishuo committed Sep 18, 2024
2 parents d5c1792 + 7373234 commit 36d2833
Show file tree
Hide file tree
Showing 82 changed files with 4,780 additions and 376 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# under the License.
#

* @jbonofre @ashvina @anoopj @RussellSpitzer @snazy @vvcephei @takidau @jackye1995
* @jbonofre @ashvina @anoopj @RussellSpitzer @snazy @vvcephei @takidau @jackye1995 @flyrain
74 changes: 74 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:base",
// Required to not pin dependencies to _exact_ versions (pip)
":preserveSemverRanges",
"group:monorepos",
"helpers:pinGitHubActionDigests",
":semanticPrefixFixDepsChoreOthers",
":dependencyDashboard",
],

// Added for posterity how to let Renovate manage version-branches, assuming that release branches
// have the `release/` prefix.
baseBranches: ["main", "/^release\\/.*/"],
additionalBranchPrefix: "{{baseBranch}}/",
commitMessagePrefix: "{{baseBranch}}: ",

pip_requirements: {
// fileMatch default: (^|/)([\\w-]*)requirements\\.(txt|pip)$
"fileMatch": ["(^|/)([\\w-]*)requirements.*\\.txt$"],
},

packageRules: [
// Check for updates, do not merge automatically. This rule does effectively nothing, but serves as a
// reference for the kinds of managers used in Polaris.
{
matchManagers: [
"gradle", "gradle-wrapper",
"pip_requirements", "pip_setup", "poetry", "setup-cfg",
"dockerfile", "devcontainer", "docker-compose",
"github-actions"],
automerge: false, // just be explicit (false is the default)
},

// Reduce awssdk update frequency noise (awssdk has daily releases)
{
matchManagers: ["gradle"],
matchPackagePrefixes: ["software.amazon.awssdk"],
extends: ["schedule:weekly"],
},

// Turn off major & minor version updates on version-branches
{
matchBaseBranches: ["/^release/.*/"],
matchUpdateTypes: ["major", "minor"],
enabled: false
},
],

// Max 50 PRs in total, 5 per hour.
// Renovate rebases PRs automatically when the renovate bot "visits" (scans) the repo, hence the hourly and
// concurrent PRs limit.
prConcurrentLimit: 50,
prHourlyLimit: 5,
}
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ jobs:

- name: Check formatting
run: ./gradlew check


- name: Check Maven publication
run: ./gradlew publishToMavenLocal sourceTarball

- name: Build with Gradle Wrapper
run: ./gradlew test

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ regtests/derby.log
regtests/metastore_db
regtests/output/

# Python stuff
/poetry.lock
/polaris-venv/
/pyproject.toml

# Notebooks
notebooks/.ipynb_checkpoints/

Expand Down
68 changes: 68 additions & 0 deletions CHAT_BYLAWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

# Apache Polaris - Project Chat Bylaws

Apache Polaris is currently undergoing Incubation at the Apache Software Foundation.

## Motivation

The Polaris project uses a public and open chat service currently provided by Zulip hosted
at https://polaris-catalog.zulipchat.com/. A few rules shall ensure that the chat conforms to the rules and best
practices of the Apache Software Foundation and serves well as a collaboration tool for the project.

Organizations and other open-source projects that contribute continuously and significantly to Polaris are welcome, but
shall not use the Polaris chat as a vehicle for their own marketing without explicit approval of the project (P)PMC.

## Code of Conduct

The [Apache Software Foundation’s Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) applies to
the Polaris project public chat.

## Governance

* The Polaris project’s chat tool is not provided by the ASF - the Polaris project (P)PMC members govern and monitor the
chat service.
* Everybody is welcome to join the Polaris project chat. Invites are not needed.
* All users are automatically promoted to “members” (don’t stay in “guests”).
* Polaris project (P)PMC members have “owner” privileges on the Zulip chat. Polaris project committers are granted
“moderator” or “administrator” privileges for moderation purposes.
* This bylaws document shall be published on the project’s web site and linked from relevant public channels.
* Only (P)PMC members are allowed to create new channels. The number of channels shall be limited to #general (user
discussions), #dev (development discussions), #announcements (release announcements), and #noise (GitHub feed).
* Only (P)PMC members are allowed to notify a large number of users (aka @here).

## 3rd Parties

Definition: “3rd party” means any (other) open-source project or any commercial vendor or any other organization.

### 3rd Party Channels

* 3rd parties who contribute to or use the Polaris project may ask the (P)PMC to get a dedicated public channel, for
example #vendor-<vendor-name> or #project-<project-name>.
* Promotion of 3rd party content is only permitted in these 3rd party channels, and only if the content primarily covers
Polaris. Commercial advertisements in any form are prohibited.
* Interaction with users of 3rd party OSS projects or commercial products should be directed to these 3rd party
channels.

## Content moderation

* Any content which violates the Apache “Code of Conduct” will be removed.
* Any commercial advertisements will be removed.
* All other content will not be moderated.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ WORKDIR /app
RUN rm -rf build

# Build the rest catalog
RUN ./gradlew --no-daemon --info -PeclipseLink=$ECLIPSELINK clean shadowJar startScripts
RUN ./gradlew --no-daemon --info -PeclipseLink=$ECLIPSELINK clean prepareDockerDist

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1721752928
WORKDIR /app
COPY --from=build /app/polaris-service/build/libs/polaris-service-all.jar /app/lib/polaris-service-all.jar
COPY --from=build /app/polaris-service/build/docker-dist/bin /app/bin
COPY --from=build /app/polaris-service/build/docker-dist/lib /app/lib
COPY --from=build /app/polaris-server.yml /app
COPY --from=build /app/polaris-service/build/scripts/polaris-service /app/bin/polaris-service

EXPOSE 8181

Expand Down
Loading

0 comments on commit 36d2833

Please sign in to comment.