Skip to content

Conversation

shortstacked
Copy link
Contributor

Summary

Adds Gitea as a test container to facilitate source control integration testing. This includes setting up a Gitea instance with a default admin user and repository, enabling connection from n8n via SSH.

Related Linear tickets, Github issues, and Community forum posts

Related to CAT-1507

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

ireneea
ireneea previously approved these changes Oct 21, 2025
Copy link
Contributor

@ireneea ireneea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be so useful 👍

const DEFAULT_PASSWORD = 'giteapassword';
const DEFAULT_REPO = 'n8n-test-repo';
const DEFAULT_EMAIL = 'admin@example.com';
const DEFAULT_BRANCHES = ['development', 'staging', 'production'];
Copy link
Contributor

@ireneea ireneea Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we only have a main branch to align with the default branch name in the environments.ee feature?

See packages/cli/src/environments.ee/source-control/constants.ts

Comment on lines +50 to +52
await expect(n8n.page.getByRole('option', { name: 'development' })).toBeVisible();
await expect(n8n.page.getByRole('option', { name: 'staging' })).toBeVisible();
await expect(n8n.page.getByRole('option', { name: 'production' })).toBeVisible();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be part of a specific test for the multi-branch setup. Because by default we start with a single branch setup

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Oct 21, 2025
Copy link

currents-bot bot commented Oct 21, 2025

E2E Tests: n8n tests failed after 7m 5.9s

🟢 575 · 🔴 1 · ⚪️ 12 · 🟣 7

View Run Details

Run Details

  • Project: n8n

  • Groups: 3

  • Framework: Playwright

  • Run Status: Failed

  • Commit: bfbf9b5

  • Spec files: 95

  • Overall tests: 588

  • Duration: 7m 5.9s

  • Parallelization: 9

Failed Spec Files

Spec File Failures
tests/ui/webhook-external-trigger.spec.ts 1

Groups

GroupId Results Spec Files Progress
ui 🟢 529 · 🔴 1 · ⚪️ 12 · 🟣 7 88 / 88
ui:isolated 🟢 32 · 🔴 0 · ⚪️ 0 5 / 5
No name 🟢 14 · 🔴 0 · ⚪️ 0 2 / 2


This message was posted automatically by currents.dev | Integration Settings

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 14 files

@shortstacked shortstacked changed the title Enables Gitea integration for source control ci: Add gitea testcontainer for environment testing Oct 21, 2025
@shortstacked shortstacked requested a review from ireneea October 21, 2025 13:03
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@shortstacked shortstacked force-pushed the cat-1507-testcontainers-environments branch from 52d0284 to 0c4cf6a Compare October 21, 2025 14:58
@shortstacked shortstacked requested a review from MarcL October 21, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants