-
Notifications
You must be signed in to change notification settings - Fork 166
🚧 [WIP] 🚧 Generate GitHub actions workflow. 👷 🏗️ #3128
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
base: main
Are you sure you want to change the base?
🚧 [WIP] 🚧 Generate GitHub actions workflow. 👷 🏗️ #3128
Conversation
|
Skipping CI for Draft Pull Request. |
edad0e7 to
2b2cc43
Compare
Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
48ac762 to
c2000cd
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3128 +/- ##
==========================================
+ Coverage 62.85% 64.00% +1.14%
==========================================
Files 148 155 +7
Lines 13202 13339 +137
==========================================
+ Hits 8298 8537 +239
+ Misses 3941 3809 -132
- Partials 963 993 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: twoGiants The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Add 'func config ci' command as foundation for GitHub Actions workflow generation. Extract function loader/saver interfaces into cmd/common package and create cmd/testing factory for reusable test helpers. Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Add functionality to create GitHub Actions workflow directory and file when running config ci command. Includes CIConfig struct for managing workflow paths and permissions, with comprehensive test coverage. Also fixes typo and refactors config tests to use helper functions. Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
- Add YAML structure types for workflow generation - Generate hard coded remote-build-and-deploy workflow with checkout, func cli setup, and deploy steps - Validate workflow structure and content in tests - Export NewCIConfig for external use Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
- Move CIConfig and workflow structs to cmd/ci package - Separate config management (config.go) and workflow generation (workflow.go) - Add CIConfig methods for path resolution - Support custom workflow names via NewDefaultCIConfigWithName - Update imports across cmd package Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
- Add TDD and implementation guidelines to CLAUDE.md - Create /creview slash command for code reviews - Update issue-744 feature doc to mark Phase 2.1 complete Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
- Add NewGithubWorkflowFromPath for loading workflows from disk - Replace AsYaml + PersistToDisk with Persist method that handles both marshalling and file operations - Rename FnGithubWorkflowYamlPath to FnGithubWorkflowFilepath - Extract test assertion logic into helper functions - Improve test readability with consistent naming and structure Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
- Add Kubernetes context setup using azure/k8s-set-context action with configurable kubeconfig secret key - Add optional container registry authentication with conditional execution - Support self-hosted runners configuration - Number workflow steps for better readability Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Enable optional registry authentication in CI workflows to support both secure and insecure registry scenarios. Add configuration for custom registry secret keys. Introduce CIConfigBuilder for flexible configuration in tests. Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Add comprehensive memory files documenting deployment to local kind clusters and remote OpenShift environments, covering auth flows, registry config, Tekton setup, and GitHub Actions. Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Adds support for local, remote workflow generation and debug configuration via command-line flags. Workflow name and registry login can be configured via flags too. Debug mode adds workflow_dispatch trigger and func CLI caching for rapid iterations on workflow runs. Config creation refactored to use cobra flags. Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Replaces pre-built CIConfig objects with command-line flags for more flexible configuration and realistic testing. - Add --remote, --debug, --self-hosted-runner flags - Update tests to use flag parsing - Set workflow name based on --remote flag Issue SRVOCF-744 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
eda3019 to
b1b2f23
Compare
Changes
/kind enhancement
Fixes #tba...
Release Note
Docs