fix(packaging): gate taosk system install to enterprise Linux server by tomchon · Pull Request #35222 · taosdata/TDengine · GitHub
Skip to content

fix(packaging): gate taosk system install to enterprise Linux server#35222

Open
tomchon wants to merge 1 commit intomainfrom
fix/taosk-linux-enterprise-install
Open

fix(packaging): gate taosk system install to enterprise Linux server#35222
tomchon wants to merge 1 commit intomainfrom
fix/taosk-linux-enterprise-install

Conversation

@tomchon
Copy link
Copy Markdown
Contributor

@tomchon tomchon commented Apr 23, 2026

Summary

  • expose taosk in system paths only for enterprise server installs
  • limit taosk system exposure to Linux x86_64/amd64/aarch64/arm64
  • keep client, Windows, and macOS install paths unchanged
  • align install and cleanup behavior across tar install, make install, rpm/deb post-install, and uninstall scripts

Validation

  • bash -n packaging/tools/install.sh
  • bash -n packaging/tools/remove.sh
  • bash -n packaging/tools/make_install.sh
  • bash -n packaging/tools/post.sh

Notes

  • addressed review concerns around platform gating, cross-entrypoint consistency, and stale symlink cleanup

- gate taosk exposure to Linux x86_64/amd64/aarch64/arm64
- align tar/rpm/deb/cmake install entrypoints with install.sh/remove.sh
- remove stale taosk links even when a platform is unsupported
Copilot AI review requested due to automatic review settings April 23, 2026 14:45
@tomchon tomchon requested a review from feici02 as a code owner April 23, 2026 14:45
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces platform-specific support for the taosk tool across the installation and removal scripts. It adds a helper function, is_taosk_supported_platform, to restrict taosk operations to Linux systems on x86_64 and ARM64 architectures. The review feedback identifies redundant logic in install.sh and remove.sh, where taosk is explicitly handled despite already being included in the tools array for cluster installations, which could lead to double execution or potential errors if environment variables are unset.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This explicit removal of ${taosk_name} is redundant when ${taosk_name} is already included in the tools array (which happens in setup_env for cluster installs on supported platforms). However, if the intent is to ensure cleanup of stale symlinks when switching from a cluster to an edge installation or across platforms, this is acceptable. Note that if bin_link_dir is empty, this command could be dangerous if run as root.

Comment thread packaging/tools/remove.sh
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Calling remove_tools_of "${taosk_name}" here is redundant for cluster installations on supported platforms, as ${taosk_name} is added to the tools array at line 197 and will be processed again in the loop at line 313. While not a bug, it results in double execution of the removal logic for this specific tool.

Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants