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

Aperta
#8,719 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, java
Ambito
devops, testing-qa

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
1.6k
Fork
499
Merge medio
1g 5h
PR unite (30g)
316

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hop

Tutte le issue di apache/hop

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.