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

Abierto
#8,719 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
1.6k
Forks
499
Merge medio
1 d 5 h
PR fusionados (30 d)
316

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/hop

Todos los issues de apache/hop

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.