Skip to content

Commit

Permalink
[Hotfix] Change file seperator in suppressions file to adapt to the W…
Browse files Browse the repository at this point in the history
…indows system (apache#2716)

* Change file seperator in suppressions file to adapt to windows system

* trigger ci when the checkstyle configuration files change

* Push for ci

* fix github workflow configuration files
  • Loading branch information
zhoujinsong authored Apr 8, 2024
1 parent 16cbc89 commit 1b9f1c9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/core-hadoop2-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- "mixed-format/hive/**"
- "mixed-format/spark/**"
- "pom.xml"
- "tools/maven/**"

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/core-hadoop3-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- "mixed-format/hive/**"
- "mixed-format/spark/**"
- "pom.xml"
- "tools/maven/**"

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/trino-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- "mixed-format/hive/**"
- "mixed-format/trino/**"
- "pom.xml"
- "tools/maven/**"

jobs:
build:
Expand Down
58 changes: 30 additions & 28 deletions tools/maven/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,91 +23,93 @@ under the License.
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">

<suppressions>
<!-- Using ([/\\]) as the file path separator instead of (/)
enables it to be compatible with both Linux and Windows systems. -->
<suppress
files="com/netease/arctic/utils/StatisticsFileUtil\.java"
files="com[/\\]netease[/\\]arctic[/\\]utils[/\\]StatisticsFileUtil\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/log/LogDataJsonSerialization\.java"
files="com[/\\]netease[/\\]arctic[/\\]log[/\\]LogDataJsonSerialization\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/log/LogDataToJsonConverters\.java"
files="com[/\\]netease[/\\]arctic[/\\]log[/\\]LogDataToJsonConverters\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/log/LogDataJsonDeserialization\.java"
files="com[/\\]netease[/\\]arctic[/\\]log[/\\]LogDataJsonDeserialization\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/log/JsonToLogDataConverters\.java"
files="com[/\\]netease[/\\]arctic[/\\]log[/\\]JsonToLogDataConverters\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/utils/TablePropertyUtil\.java"
files="com[/\\]netease[/\\]arctic[/\\]utils[/\\]TablePropertyUtil\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/api/config/OptimizingConfig\.java"
files="com[/\\]netease[/\\]arctic[/\\]api[/\\]config[/\\]OptimizingConfig\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/api/config/DataExpirationConfig\.java"
files="com[/\\]netease[/\\]arctic[/\\]api[/\\]config[/\\]DataExpirationConfig\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/api/config/TagConfiguration\.java"
files="com[/\\]netease[/\\]arctic[/\\]api[/\\]config[/\\]TagConfiguration\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/api/config/TableConfiguration\.java"
files="com[/\\]netease[/\\]arctic[/\\]api[/\\]config[/\\]TableConfiguration\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/RestCatalogService\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]RestCatalogService\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/persistence/converter/JsonObjectConverter\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]persistence[/\\]converter[/\\]JsonObjectConverter\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/optimizing/OptimizingConfig\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]optimizing[/\\]OptimizingConfig\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/optimizing/plan/OptimizingEvaluator\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]optimizing[/\\]plan[/\\]OptimizingEvaluator\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/optimizing/MetricsSummary\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]optimizing[/\\]MetricsSummary\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/table/TagConfiguration\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]table[/\\]TagConfiguration\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/server/table/TableConfiguration\.java"
files="com[/\\]netease[/\\]arctic[/\\]server[/\\]table[/\\]TableConfiguration\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/flink/interceptor/ProxyFactory\.java"
files="com[/\\]netease[/\\]arctic[/\\]flink[/\\]interceptor[/\\]ProxyFactory\.java"
checks="TodoComment"/>
<suppress
files="org/apache/hadoop/util/VersionInfo\.java"
files="org[/\\]apache[/\\]hadoop[/\\]util[/\\]VersionInfo\.java"
checks="MethodName"/>
<suppress
files="com/netease/arctic/trino/iceberg/TestBaseArcticConnectorTest\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]iceberg[/\\]TestBaseArcticConnectorTest\.java"
checks="FileLength"/>
<suppress
files="com/netease/arctic/trino/iceberg/BaseConnectorTest\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]iceberg[/\\]BaseConnectorTest\.java"
checks="FileLength"/>
<suppress
files="com/netease/arctic/trino/keyed/KeyedConnectorSplit\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]keyed[/\\]KeyedConnectorSplit\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/trino/keyed/KeyedTableHandle\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]keyed[/\\]KeyedTableHandle\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/trino/delete/TrinoDeleteFile\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]delete[/\\]TrinoDeleteFile\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/trino/unkeyed/IcebergSplit\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]unkeyed[/\\]IcebergSplit\.java"
checks="Regexp"/>
<suppress
files="com/netease/arctic/trino/unkeyed/AdaptHiveIcebergTableHandle\.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]unkeyed[/\\]AdaptHiveIcebergTableHandle\.java"
checks="Regexp"/>
<!-- BaseConnectorTest and TestBaseArcticConnectorTest can be replace by shaded guava
because the shaded guava version is too low -->
<suppress
files="com/netease/arctic/trino/iceberg/BaseConnectorTest.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]iceberg[/\\]BaseConnectorTest.java"
checks="IllegalImport"/>
<suppress
files="com/netease/arctic/trino/iceberg/TestBaseArcticConnectorTest.java"
files="com[/\\]netease[/\\]arctic[/\\]trino[/\\]iceberg[/\\]TestBaseArcticConnectorTest.java"
checks="IllegalImport"/>

</suppressions>

0 comments on commit 1b9f1c9

Please sign in to comment.