Skip to content
New issue

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

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

Already on GitHub? # to your account

GitHub Actions Migration Process Proposal #10

Open
1 of 3 tasks
Aveline-art opened this issue Dec 4, 2022 · 3 comments
Open
1 of 3 tasks

GitHub Actions Migration Process Proposal #10

Aveline-art opened this issue Dec 4, 2022 · 3 comments

Comments

@Aveline-art
Copy link
Member

Aveline-art commented Dec 4, 2022

Overview

In order to migration our GitHub Actions from a repo level to a org level, we need to figure out how this process will work. For this issue, we will create, review, and approve a proposal for this migration.

Action Items

  • Create proposal
  • Discuss proposal
  • Approve proposal

Resources/Instructions

@Aveline-art
Copy link
Member Author

Aveline-art commented Dec 4, 2022

GitHub Actions Migration Process Proposal

Introduction

This proposal describes the process in which we will migrate our existing GitHub actions scattered across multiple HfLA repos. These actions should, ideally, exist in a centrally maintained place where they can be disseminated across multiple projects.

This proposal has several sections:

  • "Development" section: describes a process for how these actions are developed
  • "Project Management": describes how this development process can be overseen
  • "Requirements": prerequesites that needs to be in place to establish a working pipeline
  • "Lingering Questions": items open to discussion
  • "My recommendations, in no specific order": what it says on the tin
  • "Some Links": loose documentation arranged in no particular order that covers topics brought up in the proposal

Development

Most of the actions at HfLA are used for project management and as such follow a highly predictable template. Therefore to develop our existing actions as repo-based actions, we need to:

  1. Use a starter template with all the boilerplate needed for an optimal dev environment
  2. The preexisting actions code is copied over
  3. The copied code is refactored to fit the repo-based actions framework
  4. Tests are added to the code
  5. An org-level workflow template is created to disseminate the action
  6. The action is documented in its own repository's readme with dev specific info
  7. The action is documented in a central website with installation specific info

Project Management

Since these migrated actions will be slightly different than the repos we are sourcing them from, we need to utilize a process that can properly quality control them. These are the steps in which these actions will be created and assessed.

  1. Project Review: Every existing action of interest will be reviewed on what they should ideally do, which could be exactly the same as it currently is. At this stage, we will create criteria for acceptance.
  2. Development: A developer takes our requirements and the existing code, and create it as outlined in the "Development" section.
  3. Code Review: A second developer reviews the body of work that makes up this action, including the code, documentation, and org-level template.
  4. Alpha/Beta Release: The action is released as an alpha/beta version.
  5. Live Trial: The source of the action will migrate to use the repo-based action, and tested to ensure the action's quality.
  6. Release: The action is released as a first version.

Requirements

The following are the setup and requirements we need to start this migration process.

Development

  • Starter repo template for actions. The template must include:
    • Boilerplate for github action such as actions.yml
    • Testing library
    • Typescript support for JS actions
      • Typescript is preferred over raw JS because it allows typing. This makes development much easier as it is easier to look up the shape of the data sent from the GitHub actions runner.
    • Scripts for quickly calling and getting feedback via GH api
      • This allows the developer to do something like say, create an issue quickly, without logging onto github to do so, to testing an issue related action.
    • Instructions on how to use the template after setting up
    • Misc health files or health file templates
  • Central repo to host the documentation website. This repo needs:
    • Project board to manage the project (see "Project Management" below)
    • Procedures for adding a new page to describe our new actions
    • Pipeline to compile and host new documentation
  • .github repo to host the org-level workflow templates

Project Management

  • Procedure to review actions
  • Project board to host issues related to current actions
  • Instructions on how to create alpha/beta/other releases for actions
  • Procedure to assess trial outcomes
  • Procedure on maintaining and improving the action post-release

Lingering Questions

  • Where will we host the central repo for the documentation website?
  • Where will we host the project board?
  • Do we need a separate way of organizing bug fixes/improvements to migrated actions?
  • Do we need to personally setup the GHAs for our stakeholders?
  • What framework will we use to create our documentation website?
  • What kind of team do we need to maintain the documentation repo?
    • Do we need project managers, designers, researchers?
  • Should there be a separate gha-development team and a documentation repo team?
  • How will we advertise our actions?

My recommendations, in no specific order

  • Use the .github repo to store workflow templates
    • Be aware that this will make it nonviable as a template repository because the workflow templates follow a specific format that should not be copied over to a new repo
  • Use the engineering repo to:
    • host the documentation website
      • Use Docusaurus to create a static website hosted on gh-pages
    • host our project board
  • Have issue templates (in engineering) for:
    • Proposing a GHA (should be lightweight, compared to 100 auto's template)
    • Bug fixes and improvements
    • Issues related to creating and improving the documentation website
  • Have one repo for our actions template
  • Have a separate gha dev-team, and a documentation repo team, which may or may not have overlapping members
  • The actions we create are in an opt-in basis; a team member (of any role) can choose to add them if they so wish

Some Links

@ExperimentsInHonesty
Copy link
Member

@Aveline-art do you have any changes/updates to the proposal based on the actions we took last time we meet?

@Aveline-art
Copy link
Member Author

@ExperimentsInHonesty Not really. The usage of the .github repo was within what was expected by the proposal.

I did make the .github repo, with all the support files that are integrated with Github as well as a demo of workflow templates.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: New Issue Draft & Review
Development

No branches or pull requests

2 participants