Skip to content

chore: Use startpaac script for E2E environment setup#2059

Merged
chmouel merged 2 commits intomainfrom
startpaac
Apr 18, 2025
Merged

chore: Use startpaac script for E2E environment setup#2059
chmouel merged 2 commits intomainfrom
startpaac

Conversation

@chmouel
Copy link
Copy Markdown
Member

@chmouel chmouel commented Apr 18, 2025

WIP but seems to work on my fork now.
this would make things a bit easier and move us to forgejo

Changes

Submitter Checklist

  • 📝 Ensure your commit message is clear and informative. Refer to the How to write a git commit message guide. Include the commit message in the PR body rather than linking to an external site (e.g., Jira ticket).

  • ♽ Run make test lint before submitting a PR to avoid unnecessary CI processing. Consider installing pre-commit and running pre-commit install in the repository root for an efficient workflow.

  • ✨ We use linters to maintain clean and consistent code. Run make lint before submitting a PR. Some linters offer a --fix mode, executable with make fix-linters (ensure markdownlint and golangci-lint are installed).

  • 📖 Document any user-facing features or changes in behavior.

  • 🧪 While 100% coverage isn't required, we encourage unit tests for code changes where possible.

  • 🎁 If feasible, add an end-to-end test. See README for details.

  • 🔎 Address any CI test flakiness before merging, or provide a valid reason to bypass it (e.g., token rate limitations).

  • If adding a provider feature, fill in the following details:

    • GitHub App
    • GitHub Webhook
    • Gitea/Forgejo
    • GitLab
    • Bitbucket Cloud
    • Bitbucket Data Center

    (update the provider documentation accordingly)

chmouel added 2 commits April 18, 2025 11:12
*   Migrated E2E environment setup to the `startpaac` script target.
*   Removed redundant helper functions from `hack/gh-workflow-ci.sh`.
*   Simplified the E2E workflow definition by replacing multiple setup steps
with a single `startpaac` call.
*   Configured workflow parameters to use `vars` instead of `secrets` where
appropriate.
*   Updated E2E test URLs to use `https`.
*   Updated the default internal Gitea URL in tests to reflect the environment
setup.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Copilot AI review requested due to automatic review settings April 18, 2025 09:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the environment configuration for end-to-end tests to transition from Gitea to Forgejo, aligning test URLs and commands accordingly.

  • Updated internal URL configurations in tests to point to Forgejo.
  • Modified workflow triggers and environment variables to support new setup and script changes.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
test/pkg/gitea/test.go Updated internal URL for Forgejo deployment
.github/workflows/e2e.yaml Adjusted event trigger configuration and environment variable values
Files not reviewed (1)
  • hack/gh-workflow-ci.sh: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/e2e.yaml:127

  • [nitpick] Ensure that the naming of the 'startpaac' script clearly reflects its functionality, and update documentation accordingly so users are aware of the new command.
./hack/gh-workflow-ci.sh startpaac

.github/workflows/e2e.yaml:13

  • Switching from 'pull_request_target' to 'pull_request' may affect access to repository secrets for PRs from forks. Verify that this change doesn't inadvertently restrict secrets for valid contributors.
pull_request:

@chmouel chmouel merged commit ff5f751 into main Apr 18, 2025
7 of 10 checks passed
@chmouel chmouel deleted the startpaac branch April 18, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants