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

Required DCO verification on pull requests #17

Closed
47 tasks done
Tracked by #567
peternied opened this issue Sep 29, 2021 · 9 comments
Closed
47 tasks done
Tracked by #567

Required DCO verification on pull requests #17

peternied opened this issue Sep 29, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@peternied
Copy link
Member

peternied commented Sep 29, 2021

Recently DCO check was added to the .github template for OpenSearch-Project, this should be rolled out into all of the existing repositories to ensure that DCO checks are done on any incoming pull requests.

@peternied peternied added the enhancement New feature or request label Sep 29, 2021
@peternied peternied self-assigned this Sep 29, 2021
@peternied
Copy link
Member Author

peternied commented Sep 29, 2021

To fan this issue out to all repos, this is the command:

meta exec "gh issue create --label enhancement --title 'Ensure DCO Check' --body-file ../issue.md"

issue.md:

A Developer Certificate of Origin is required on commits in the OpenSearch-Project.

See doc.yml for an example workflow. Ensure CONTRIBUTING.md to has a section on the DCO per the project template.

  • DCO Check Workflow
  • CONTRIBUTING.md DCO Section

@dblock mind reviewing this before I pull the trigger?

@dblock
Copy link
Member

dblock commented Sep 30, 2021

You'll want the child issue linked to this one (or another parent) that can be updated easily in case instructions need to evolve, and be a little more prescriptive scoped for the repo in which the issue is opened. Plus DCO.yml should not be DOC.yml ;)

Coming from https://github.com/opensearch-project/project-meta/issues/17.

A Developer Certificate ... (I would drop not all repositories ...).

See [dco.yml](https://github.com/opensearch-project/.github/blob/main/workflow/dco.yml) for an example. Ensure that CONTRIBUTING has a section ...

- [ ] ... 

When you run meta it will execute in a subdirectory of the project, so you'll need to make issue.md and reference it as ../issue.md.

This was referenced Sep 30, 2021
@vchrombie
Copy link

coming from opensearch-project/opensearch-py#80 (comment)

in short, the dco bot can be configured at the organization level and it doesn't need any github action workflows.

I just wanted to comment about the other options available. Please feel free to proceed with whatever option the organisation maintainers prefer.
Thanks.

@peternied
Copy link
Member Author

Initially we considered using that DCO bot and choose not to due to its requirement to access private repositories.

This option seems like the best path forward to stop the manually inspection ever commit in a pull requests

@dbbaughe
Copy link

dbbaughe commented Oct 1, 2021

@peternied Instead of having everyone go and create duplicate github workflows across all the repositories, do you want to create workflow template in the .github repository and then all repos can reuse that workflow without having to duplicate?

https://docs.github.com/en/actions/learn-github-actions/creating-workflow-templates
https://docs.github.com/en/actions/learn-github-actions/reusing-workflows

This probably applies to quite a few different workflows we have, we can take everything common in the different repositories, define them in a single place (.github repo) and reuse so the actual workflow definition if needed to be changed can be done in one place.

@peternied
Copy link
Member Author

@dbbaughe Looking atcalling-a-reusable-workflow would look something like this with already checked in version of this workflow:

jobs:
  dco-check:
    uses: opensearch-project/.github/workflows/doc.yml@main

Could you try that out and see if we should change the instructions on the issues?

@dbbaughe
Copy link

dbbaughe commented Oct 1, 2021

@peternied Based on the creating-workflow-templates part it seems the reusable templates must be in a directory called workflow-templates along w/ some json properties file before they can be used.

@peternied
Copy link
Member Author

I'll drill in more next week, great suggestion

@peternied
Copy link
Member Author

@dbbaughe I've attempted to follow the instructions with my own organization, but haven't been able to get it to work. If you can get it to work I would be happy to update the instructions on all the issues.

In either case, each team will still need to create a workflow and update its CONTRIBUTING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants