Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

MongoDB integration tests fail on newer GitHub Actions runner kernels

Abierto Apto para principiantes
#626 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 7 días

@nmummau ya está trabajando en esto.

Desde el 20/10/2026.

  • #625 de @nmummau — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
74/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, docker, github-actions
Área
ci-cd, testing

Línea de trabajo

Lee .github/workflows/tests.yml y localiza el trabajo de integración de Mongo que ejecuta Eventuous.Tests.Projections.MongoDB.csproj; comprueba cómo se selecciona su runner y cómo seleccionan los suyos las demás suites. Actualiza el runner de la suite de Mongo según se describe en el issue y documenta el problema de compatibilidad upstream junto a la sobrescritura. El trabajo estará terminado cuando la suite de Mongo pase en GitHub Actions y las demás suites conserven la selección de su runner.

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

Descripción

Describe the bug

The Tests / Build and test mongo job fails while starting its MongoDB container. MongoDB exits with code 1 because its startup check rejects the runner's Linux kernel, preventing the projection tests from executing.

Observed in this failing GitHub Actions job on October 19, 2026

To reproduce

  1. Run the Mongo integration suite through .github/workflows/tests.yml on an ubuntu-latest runner with an affected kernel.

  2. The workflow executes:

    dotnet test src/Mongo/test/Eventuous.Tests.Projections.MongoDB/Eventuous.Tests.Projections.MongoDB.csproj -c "Debug CI" -f net10.0
    
  3. The integration fixture starts the mongo:8 image through Testcontainers.

  4. MongoDB rejects the kernel during startup, and fixture initialization fails.

Reproduction depends on the runner assigned to the job and the image resolved by the floating mongo:8 tag.

Expected behavior

The MongoDB container starts successfully, and the Mongo projection integration suite runs and passes in CI.

Actual behavior

The job reports the following failure for ShouldProjectImported (container ID and repeated stack trace omitted):

failed ShouldProjectImported(MongoProjectionOptions { CollectionName = test }) (0ms)
[Test Failure] ContainerNotRunningException: Container ... exited with code 1.

MongoDB cannot start: Linux kernel versions 6.19 and newer has a known incompatibility with this version of MongoDB. See https://jira.mongodb.org/browse/SERVER-121912 for more information.

Environment

  • Workflow: .github/workflows/tests.yml, called by the PR and preview workflows.
  • Runner label: ubuntu-latest.
  • Test target: net10.0, x64, Debug CI configuration.
  • Container image configured by the fixture: mongo:8.
  • The failure excerpt does not identify the exact host kernel release or resolved MongoDB patch version.

Additional context

GitHub began migrating ubuntu-latest to Ubuntu 26.04 on October 19, 2026. The timing is consistent with a runner change exposing the MongoDB compatibility problem, although the excerpt alone does not establish which runner image was assigned.

MongoDB tracks the underlying kernel incompatibility in SERVER-121912. It also tracks a startup-check issue that rejects Ubuntu kernels containing the upstream fix in SERVER-136848. Docker containers share the host kernel, so changing only the container's base distribution does not address the host-kernel check.

Proposed workaround

Pin only the Mongo integration suite to ubuntu-24.04, retaining ubuntu-latest for the other suites. GitHub's Ubuntu 24.04 runner manifest lists kernel 6.17.0-1022-azure for image 20261012.334.1, below MongoDB's affected range.

Document the upstream issue beside the runner override so the workaround can be revisited when a compatible MongoDB image is available. The runner label does not permanently pin a kernel version.

A local workflow change passes Actionlint and git diff --check; confirmation in GitHub Actions is still pending.

Acceptance criteria

  • The Mongo integration suite passes on GitHub Actions with the selected runner.
  • Other integration suites retain their existing runner selection.
  • The runner override documents the upstream compatibility issue.
Lenguaje dominante
C#
Estrellas
512
Forks
99
Merge medio
5 d 6 h
PR fusionados (30 d)
5

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 Eventuous/eventuous

Todos los issues de Eventuous/eventuous

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.