Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification About GitOps Command Execution on Pushed Commits #1911

Conversation

zakisk
Copy link
Contributor

@zakisk zakisk commented Feb 5, 2025

in docs it was not specified that GitOps command on pushed commit only works on latest HEAD commit and does not trigger PipelineRun if sent on older commits.

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:

Git Provider Supported
GitHub App ✅️
GitHub Webhook ❌️
Gitea ❌️
GitLab ❌️
Bitbucket Cloud ❌️
Bitbucket Server ❌️

(update the documentation accordingly)

@zakisk zakisk force-pushed the clearification-on-gitops-pushed-commit-head branch from 25865db to c53cd76 Compare February 6, 2025 03:28
@zakisk
Copy link
Contributor Author

zakisk commented Feb 6, 2025

/test

@chmouel
Copy link
Member

chmouel commented Feb 6, 2025

thanks, just a minor phrasing and good to go

@zakisk zakisk force-pushed the clearification-on-gitops-pushed-commit-head branch from c53cd76 to 5c72931 Compare February 6, 2025 14:14
@zakisk
Copy link
Contributor Author

zakisk commented Feb 6, 2025

/test go-testing

@zakisk zakisk force-pushed the clearification-on-gitops-pushed-commit-head branch 2 times, most recently from f9145ce to e9307e8 Compare February 11, 2025 12:44
Copy link
Member

@chmouel chmouel left a comment

Choose a reason for hiding this comment

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

just a minor and gtg

docs/content/docs/guide/gitops_commands.md Outdated Show resolved Hide resolved
in docs it was not specified that GitOps command on pushed
commit only works on latest HEAD commit and does not trigger
PipelineRun if sent on older commits.

Signed-off-by: Zaki Shaikh <[email protected]>
@zakisk zakisk force-pushed the clearification-on-gitops-pushed-commit-head branch from e9307e8 to 2ea71bd Compare February 12, 2025 15:48
@zakisk
Copy link
Contributor Author

zakisk commented Feb 12, 2025

@chmouel previously E2E tests were passing here

@chmouel
Copy link
Member

chmouel commented Feb 12, 2025

yeah all good for me, seems like bitbucket is down, i am not sure if we should just hold own every PR or disable bitbucket tests for now, what do you think?

@chmouel
Copy link
Member

chmouel commented Feb 12, 2025

/lgtm

Copy link

@pipelines-as-code pipelines-as-code bot 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 Approved

Approval Status:

  • Required Approvals: 1
  • Current Approvals: 1

👥 Approved By:

Reviewer Permission Status
@chmouel admin

📝 Next Steps

  • All required checks must pass
  • Branch protection rules apply
  • Get a maintainer to use the /merge command to merge the PR

Thank you for your contributions! 🎉

@zakisk
Copy link
Contributor Author

zakisk commented Feb 13, 2025

yeah all good for me, seems like bitbucket is down, i am not sure if we should just hold own every PR or disable bitbucket tests for now, what do you think?

it depends on how much time will it take to resolve, if it will be days then we should disable it for a while.

@zakisk
Copy link
Contributor Author

zakisk commented Feb 13, 2025

BTW, working at the moment

@chmouel
Copy link
Member

chmouel commented Feb 13, 2025

/merge

@pipelines-as-code pipelines-as-code bot merged commit f1b8b8e into openshift-pipelines:main Feb 13, 2025
7 checks passed
Copy link

✅ PR Successfully Merged

  • Merge method: rebase
  • Merged by: @chmouel
  • Total approvals: 1/1

Approvals Summary:

Reviewer Permission Status
@chmouel admin

@chmouel chmouel changed the title Clearification About GitOps Command Execution on Pushed Commits Clarification About GitOps Command Execution on Pushed Commits Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants