[Task]: Standardize VFS driver integration tests on the shared file workflows

オープン
#8,719 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, java
領域
devops, testing-qa

調査の方向性

Start with the shared workflows under integration-tests/vfs and the existing integration-tests/smb/main-.hwf files, then compare the named driver projects and their main-.hwf files. Run integration-tests/scripts/run-tests-docker.sh and inspect the relevant docker/integration-tests/integration-tests-.yaml healthcheck. Done means selected drivers invoke the shared operations while retaining protocol-specific workflows, metadata, services, credentials, and published reports.

索引モデルが issue の本文から書いたものです。

説明

awaiting triage Integration Testing P3 VFS
What needs to happen?

#8671 introduces shared pipelines under integration-tests/vfs and runs them from integration-tests/smb against a Samba container. Those pipelines are the generic file operations a named VFS connection is expected to support:

  • create a folder
  • write a text file and read it back
  • append a line and read both lines back
  • list the folder
  • copy a file
  • move a file
  • delete a file
  • delete a folder, then create it again
  • a rooted connection, where the metadata has a base folder

hop-tech-smb is the first project on that suite. This task is to run the same pipelines from the other VFS driver projects. Each operation stays its own main-*.hwf, so a failure names the operation. The driver project keeps its own metadata, environment variables, and compose service. Protocol-specific workflows stay in the driver project.

Jenkins already runs integration-tests/scripts/run-tests-docker.sh with no project filter and publishes integration-tests/**/surefire-reports/*.xml. A container-backed driver needs docker/integration-tests/integration-tests-<project>.yaml, with a healthcheck on the service Hop waits for. Projects that need real credentials stay behind disabled.txt.

Candidate plugins

These already have an integration project. Point the generic file steps at integration-tests/vfs:

  • hop-tech-minio (integration-tests/minio, main-0001-minio-file-handling). SeaweedFS, named scheme minio:///.
  • hop-tech-sftp (integration-tests/sftp, main-003-sftp-connection-in-regular-transforms). Keep main-001 (last-modified), main-002 (SFTP Put), and main-004 (SFTP actions). The SFTP service needs a healthcheck so the nightly job cannot hang on it.
  • hop-tech-ftp (integration-tests/ftp, main-003-ftp-connection-in-regular-transforms). Keep main-001 (FTP Put), main-002 (FTP connection), and main-004 (FTP action round trip). FTPS is the same plugin (FtpsVfsPlugin) and has no project yet.
  • hop-tech-hadoop (integration-tests/hadoop, WebHDFS text handling in main-0001-hdfs-file-handling). Keep the Parquet, gzip, copies, and HA coverage.
  • hop-tech-azure (integration-tests/azure, behind disabled.txt). main-0003 move, main-0004 copy, main-0007 file manipulation, and main-0008 create/fill/delete folder, for azure:/// and azfs:///. Keep the Parquet and multi-account workflows. Runs when Azure credentials are present.
  • hop-tech-google, Google Storage (integration-tests/gcp, behind disabled.txt). The project is Beam and BigQuery, plus main-0008-create-delete-file on gs://. Add the shared file operations when a service account is present, and keep Beam, BigQuery, and the format-specific output. Google Drive (GoogleDriveVfsPlugin, scheme googledrive) is the same module and has no integration project.

These plugins have no generic file-operation project yet:

  • hop-tech-aws, S3 (S3VfsPlugin)
  • hop-tech-dropbox
  • hop-tech-webdav, WebDAV (webdav4) and WebDAV over HTTPS (webdav4s)
  • hop-tech-databricks, Databricks Volumes and workspace files

The Git VFS connection from #8663 should use the same pipelines once that plugin is on main.

Issue Priority

Priority: 3

Issue Component

Component: Integration Testing, Component: VFS

主要言語
Java
スター
1.6k
フォーク
499
平均マージ
1日 5時間
マージ済み PR(30日)
316

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/hop のほかの issue

apache/hop の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。