本文へ移動
cccskills
無料GitHub で公開日本語紹介

trino-test

GravitinoプロジェクトのTrino統合テストを実行・調査するためのスキルです。コネクターやTrinoのバージョン、テストセットを指定して動作を確認し、SQLテストと期待結果の追加・修正も進められます。

原文原文の説明を見る

Run, debug, and manage Trino integration tests for the Gravitino project.

apache/gravitinoスター 3,337(GitHub 3,337 + cccskills 0)
連携ツールMySQL

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Trino統合テストを一括実行したいとき
  • 特定コネクターやカタログを試したいとき
  • Trinoのバージョン別に動作を確認したいとき
  • SQLテストを追加・修正したいとき

日本語での紹介

できること

GravitinoプロジェクトのTrino統合テストを実行し、対象や実行条件を指定する方法を案内します。全テストのほか、MySQLなど特定コネクターのテストセット、個別のテストファイル、カタログ、Trinoのバージョンを選んで実行できます。ログからテストの進捗や成功・失敗を確認する方法、テストケースの構成や追加・修正の基本も扱います。テストケースはSQLファイルと期待する出力を記したテキストファイルで構成され、期待値では柔軟な照合のために%を使えます。

こんなときに便利

GravitinoのTrino連携を変更した後に、全体または関連するコネクターだけを確かめたいときに向いています。特定バージョンでの再現確認や、既存テストの失敗調査、新しいテストケースの追加にも使えます。

使い方の例

  • 「Trino統合テストをすべて実行して」
  • 「MySQLコネクターのテストセットを実行して」
  • 「このSQLテストに期待結果を追加したい」

注意点

コマンド例はGravitinoのプロジェクト環境を前提としています。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(2)

  • SKILL.md3.1 KB
  • trino-test-guide.md16.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<!-- 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. -->

/trino-test — Trino Integration Test Skill

This skill helps you run, debug, and manage Trino integration tests for the Gravitino project.

Use this skill whenever the user asks about:

  • running Trino integration tests
  • testing specific connectors (e.g. MySQL)
  • testing specific Trino versions
  • adding or fixing Trino test cases

Documentation Reference

Full guide:

.claude/skills/trino-test-guide.md

Read the guide for complete details on:

  • Test architecture and structure
  • All available parameters and options
  • Test modes (--auto=all | gravitino | none)
  • Adding and modifying tests
  • Expected output format (.txt with % wildcards)
  • Debugging and troubleshooting

Project Root

All commands assume:

cd /home/ubuntu/git/gravitino

Quick Commands

Run all tests

./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh \
  --auto=all

Run specific test set

./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh \
  --auto=all --test_set=jdbc-mysql

Run specific test file

./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh \
  --auto=all --test_set=jdbc-mysql --tester_id=00004

Run specific test catalog with testset

./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh
--auto=all --test_set=tpch --catalog=hive

Test specific Trino version with specific trino connector

./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh \
  --auto=all \
  --trino_version=<VERSION> \
  --trino_connector_dir=<WORKSPACE>/trino-connector/trino-connector-<VERSION_RANGE>/build/libs

Check test status

grep -E "(Test progress|All testers|Total|PASS|FAIL|BUILD) from log

Test Structure

Location:

trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/

Each test consists of:

  • *.sql — SQL statements to execute
  • *.txt — Expected output
    • Supports % wildcard for flexible matching

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

gravitino-release

無料概要あり

Apache Gravitinoのリリース作業を段階ごとに進めるためのスキルです。タグ作成から成果物のビルド、公開、投票後の確定、リリースノート作成までの手順と状態を管理します。

  • Gravitinoのリリース候補を準備したいとき
  • 完了済みのリリース工程を確認したいとき
  • 特定ステージの実行や事前確認をしたいとき
apache/gravitino3,3372026年10月29日 更新

apache のスキルをすべて見る

このスキルの問題を報告する