apache / incubator-xtable

Apache XTable (incubating) is a cross-table converter for lakehouse table formats that facilitates interoperability across data processing systems and query engines.
https://xtable.apache.org/
Apache License 2.0
762 stars 116 forks source link

fix licencse check #444

Closed the-other-tim-brown closed 3 weeks ago

the-other-tim-brown commented 1 month ago

Important Read

What is the purpose of the pull request

(For example: This pull request implements the sync for delta format.)

Brief change log

(for example:)

Verify this pull request

(Please pick either of the following options)

This pull request is a trivial rework / code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

the-other-tim-brown commented 1 month ago

@wuchunfu can you help me to get the license check passing?

xtable-bot commented 1 month ago

CI report:

Bot commands @xtable-bot supports the following commands: - `@xtable-bot run azure` re-run the last Azure build
charlesy6 commented 1 month ago

Having both spotless check and skywalking-eys in the same project is not a good practice, because their behaviors are not the same, what do you think? @the-other-tim-brown @sagarlakshmipathy @wuchunfu

the-other-tim-brown commented 1 month ago

@charlesy6 the intention was that the skywalking check would find anything not covered by the spotless plugin since the spotless plugin requires you to define rules for different file types not covered by default. If there is something that better fits that need, let me know.

daragu commented 1 month ago

@the-other-tim-brown, I agree with @charlesy6's point that there is no need to introduce the skywalking into xtable project. and it is also not used in projects such as hudi, paimon, flink...

We can use mvn validate or mvn spotless:check command to execute check commod on plugins such as spotless, enforcer.

E.g

name: CI mvn validate

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

on:
  push:
    branches:
      - "main"

  pull_request:
    branches:
      - "main"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-java@v4
        with:
          java-version: '11'
          distribution: 'temurin'

      - name: validate plugin
        run: mvn validate
the-other-tim-brown commented 1 month ago

@the-other-tim-brown, I agree with @charlesy6's point that there is no need to introduce the skywalking into xtable project. and it is also not used in projects such as hudi, paimon, flink...

We can use mvn validate or mvn spotless:check command to execute check commod on plugins such as spotless, enforcer.

E.g

name: CI mvn validate

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

on:
  push:
    branches:
      - "main"

  pull_request:
    branches:
      - "main"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-java@v4
        with:
          java-version: '11'
          distribution: 'temurin'

      - name: validate plugin
        run: mvn validate

@daragu how do we catch new file types being added without licenses? That is not currently possible with spotless. mvn validate is just part of the Maven lifecycle, you will run that as part of install https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

daragu commented 1 month ago

thanks @the-other-tim-brown, let me think again.

daragu commented 3 weeks ago

hi @the-other-tim-brown, when a new type of file is added to the repo, it will be detected by the maven rat plugin automatically. it seems that we can close this pr now.