You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: streamline workflow sorting and enhance workflow management (#187)
* Refactor: streamline workflow sorting and enhance workflow management
- Updated workflow sorting to be alphabetical for improved organization.
- Refactored workflow_page_controller.dart to ensure workflows are ordered by name.
- Added deletion alert feature for workflows to enhance user experience.
* Refactor: enhance Firestore transaction handling in VM Runner
- Introduced a new function `runFirestoreTransaction` to encapsulate Firestore transaction logic.
- Updated Firestore client variable naming for clarity.
- Improved error handling and logging for fetching build jobs and updating document statuses.
- Streamlined the process of updating build job statuses from "queued" to "inProgress".
* Refactor: improve Firestore transaction handling and remove redundant build status update
- Removed unnecessary build status update call in RunnerCommand.
- Enhanced runFirestoreTransaction to return the fetched build job document snapshot.
- Improved error handling and logging for Firestore transactions in VM Runner.
- Streamlined the process of handling build job documents.
* Enhance workflow fetching in VM Runner
- Added functionality to fetch all workflow documents from Firestore.
- Improved error handling and logging for workflow retrieval.
- Updated logging to include details of found workflow documents.
* feat: add GitHub installation token retrieval and update dependencies
- Introduced functionality to retrieve GitHub installation tokens using JWT authentication.
- Added a new command-line flag for specifying the GitHub App's PEM file.
- Updated dependencies in go.mod to include `cloud.google.com/go/firestore` and `github.com/dgrijalva/jwt-go`.
- Improved logging for workflow and build job processing in the VM Runner.
* add: execute ssh command
* refactor
* Refactor: streamline logging in VM Runner
- Removed logger parameters from RunApp function and initialized loggers within the function.
- Deleted the unused binary file 'vm-runner' to clean up the project structure.
* Refactor: enhance VM process handling and SSH command execution
- Improved error handling in RunApp to log VM process failures without stopping execution.
- Added cleanup logic for stopping and deleting VMs after execution.
- Refactored ExecuteSSHCommand to return structured results, including stdout, stderr, and exit code.
- Updated logging for SSH command outputs for better clarity.
* Refactor: simplify VM cleanup logic in handleVMProcess
- Moved VM cleanup logic into a separate function `cleanupVM` for better readability and maintainability.
- Updated the deferred function to call `cleanupVM`, ensuring VMs are stopped and deleted after execution.
- Improved logging for VM stop and delete actions.
* add: firebase storage for storing log
* feat: get installation token
* refactor
* fix: correct SSH command in handleVMProcess
- Updated the SSH command from 'lsa' to 'ls' in the handleVMProcess function to ensure proper execution and output retrieval.
- This change improves the accuracy of the command being executed during VM process handling.
* refactor: update BuildJob structure and enhance VM command execution
- Renamed fields in BuildJob from `repoUrl` to `repositoryUrl` and `branch` to `buildBranch` for clarity.
- Introduced a new `cloneCommand` function to streamline the repository cloning process using the specified build branch and GitHub token.
- Enhanced command execution in `handleVMProcess` to iterate over workflow steps, improving flexibility in command handling.
- Added a new `Step` struct to represent individual commands in the workflow, allowing for better organization and management of execution steps.
* feat: secrets
* feat: cli with golang
0 commit comments