Skip to content

pref: Adjustments to sbin and tools Scripts #15402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 27, 2025
Merged

pref: Adjustments to sbin and tools Scripts #15402

merged 8 commits into from
Apr 27, 2025

Conversation

CritasWang
Copy link
Collaborator

  1. Script Central Management: Migrate scripts scattered across different projects to the scripts/sbin and scripts/tools directories under the root directory.
  2. Script Functional Classification: Categorize and move scripts to different files or subdirectories based on their functionality. For frequently used scripts, their current locations will be preserved to minimize the impact on existing workflows.
  3. Create a Windows subfolder under the sbin directory (sbin, sbin/windows).

image

1.  Script Central Management: Migrate scripts scattered across different projects to the scripts/sbin and scripts/tools directories under the root directory.
2. Script Functional Classification: Categorize and move scripts to different files or subdirectories based on their functionality. For frequently used scripts, their current locations will be preserved to minimize the impact on existing workflows.
3. Create a Windows subfolder under the sbin directory (sbin, sbin/windows).
@CritasWang CritasWang requested a review from HTHou April 24, 2025 07:33
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.35%. Comparing base (db3a384) to head (80808d4).
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15402      +/-   ##
============================================
- Coverage     39.36%   39.35%   -0.01%     
  Complexity      198      198              
============================================
  Files          4653     4653              
  Lines        300823   300823              
  Branches      37600    37600              
============================================
- Hits         118420   118391      -29     
- Misses       182403   182432      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CritasWang CritasWang requested a review from Copilot April 25, 2025 07:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR centralizes and reorganizes script resources by moving them to the new scripts/sbin and scripts/tools directories and introduces a Windows subfolder for platform-specific scripts. Key changes include:

  • Updating file paths in test cases to reflect the new Windows subdirectory structure.
  • Bumping the AINode version in the pyproject.toml.
  • Adjusting script locations for import, export, and client startup scripts across multiple integration tests.

Reviewed Changes

Copilot reviewed 82 out of 93 changed files in this pull request and generated no comments.

Show a summary per file
File Description
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/script/EnvScriptIT.java Updates Windows script path for datanode-env.bat in tests
iotdb-core/ainode/pyproject.toml Bumps AINode version from 2.0.0.dev to 2.0.4.dev
integration-test/src/test/java/org/apache/iotdb/tools/it/ImportSchemaTestIT.java Updates Windows script path for import-schema tests
integration-test/src/test/java/org/apache/iotdb/tools/it/ImportDataTestIT.java Updates Windows script path for import-data tests
integration-test/src/test/java/org/apache/iotdb/tools/it/ExportTsFileTestIT.java Updates Windows script path for export-tsfile tests
integration-test/src/test/java/org/apache/iotdb/tools/it/ExportSchemaTestIT.java Updates Windows script path for export-schema tests
integration-test/src/test/java/org/apache/iotdb/tools/it/ExportDataTestIT.java Updates Windows script path for export-data tests
integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java Updates Windows script path for start-cli tests
Files not reviewed (11)
  • distribution/src/assembly/ainode.xml: Language not supported
  • distribution/src/assembly/all.xml: Language not supported
  • distribution/src/assembly/cli.xml: Language not supported
  • distribution/src/assembly/confignode.xml: Language not supported
  • distribution/src/assembly/datanode.xml: Language not supported
  • integration-test/src/assembly/mpp-test.xml: Language not supported
  • iotdb-client/cli/src/assembly/cli.xml: Language not supported
  • iotdb-core/ainode/ainode.xml: Language not supported
  • iotdb-core/confignode/src/assembly/confignode.xml: Language not supported
  • iotdb-core/datanode/src/assembly/server.xml: Language not supported
  • library-udf/src/assembly/tools/register-UDF.bat: Language not supported

@CritasWang CritasWang merged commit c9453ab into master Apr 27, 2025
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants