Coder Social home page Coder Social logo

collection_template's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collection_template's Issues

devel branch now requires python >= 3.9

SUMMARY

See title

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION

COLLECTION VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE

Clone/fork this repository and run the included github workflows.

EXPECTED RESULTS

Green checkmarks

ACTUAL RESULTS

An error similar to this one:

https://github.com/mgit-at/ansible-collection-roles/runs/7622603379

Apparently the ubuntu-latest runner in gh-workflows isn't THAT "latest", as Ubuntu 22.04 runs Python 3.10. The runner I got ran 20.04 instead. Probably needs to be ubuntu-22.04 instead: https://github.com/actions/virtual-environments

[1w] Example GitHub Action Workflow

SUMMARY

Add functional GitHub Action workflow file

  • Sanity
  • Units
  • Integration Test
    • With manually installed Collection dependencies
  • Add lots of comments
  • Variety of Python Versions

Reviews:

  • MattC
  • webknjaz

Liberal License

SUMMARY

Since this repo is a template, I think we should license it liberally such as MIT or BSD. otherwise, Apache 2 licensed collections can't use this as their template due to licensing.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME
ADDITIONAL INFORMATION

changelog lint example

SUMMARY

I think this repo should provide a snippet example how collections can/should lint their changelogs (if they use antsibull at least).

This started as a discussion in #ansible-community with @gundalow and @felixfontein, and I thought writing down my ideas here would be good.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

examples

ADDITIONAL INFORMATION

I think the following two checks should be executed:

  1. ensure a PR needs and has a changelog snippet
  2. ensure the snippet has valid syntax (antsibull-changelog lint)

Number 2 is rather easy, we have a tool for that. Number 1 is not.

I think we should only enforce changelog entries for parts of the repository (ain't nobody needs a changelog entry when we fix something in .github/), so I think the example should only care about plugins/ (the users then can easily extend that to their needs).

On IRC it was mentioned that new plugins don't need a fragment -- correct, but at the same time nothing validates the version_added entry right now (will that change?) and (as also mentioned on IRC) filter plugins don't have that anyways.

So the simple (lol) logic that we could go for today would be something like:

if (file changed in plugins/ OR file deleted in plugins/ OR file added in plugins/filters/):
    ensure file added in changelogs/fragments/

This won't catch everything, but it's IMHO a good enough 80% solution we should start wirh.

From experience in other projects, there should be a way to ignore this check. Either by adding a "trivial" label or by adding "no issue" somewhere in the commit/PR message. So that will make the above logic a bit more convoluted (at least when implementing it), but at the same time it's not strictly MVP.

Disable GHA runs for this repo

@gundalow GitHub Actions workflow run in the template repo and create an impression that it's broken. It doesn't really make sense to run them here. Let's try disabling them so that red CI wouldn't contribute to the confusion.

Update GitHub Actions versions in workflows

Many GitHub Actions from GitHub and even third parties have had major version bumps recently, looking to replace Node 12 (EoL this month) with a newer version.

This includes checkout, setup-python, and codecov which have all bumped to v3, github-script is up to v6, for anyone else using them, the peter-evans/find-comment and peter-evans/create-or-update-comment are up to v2.

We should go through and update. Opening an issue in case I can't get to a PR today.

Should we announce in news for maintainers?

Also consider dependabot for this in the future (separate discussion): https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

Example PRs:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.