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

(MODULES-10806) Add Github Actions workflows #509

Merged
merged 4 commits into from
Sep 30, 2020

Conversation

luchihoratiu
Copy link
Contributor

@luchihoratiu luchihoratiu commented Sep 9, 2020

Added GitHub Actions workflows for Static Code Analysis, Unit Tests and Task Acceptance Tests that run each time there is a new pull request or git push. Unit tests are also set to run every workday at 05:00:00 UTC.

The .yaml config file for Travis has been removed.


Gemfile cleanup

In preparation for the Puppet 7 release, the puppet-module-posix-dev-r2.7 and puppet-module-posix-dev-r2.7 gems had to be removed from Gemfile due to the following dependency error:
..puppet-module-posix-dev-r2.7 depends on
....puppet_litmus which depends on
......bolt which depends on
........puppet which is locked to a version below 7

Also re-added only the needed gems that were lost in the above removal process (with the version constraints that were previously set here).


Github Actions run preview

Static Code Analysis: https://github.com/luchihoratiu/puppetlabs-puppet_agent/actions/runs/269047279
Task Acceptance Tests: https://github.com/luchihoratiu/puppetlabs-puppet_agent/actions/runs/269047288
Unit Tests with nightly Puppet gem: https://github.com/luchihoratiu/puppetlabs-puppet_agent/actions/runs/269047280
Unit Tests with released Puppet gem: https://github.com/luchihoratiu/puppetlabs-puppet_agent/actions/runs/269047283

For the daily run I've followed the official docs where it states:

Scheduled workflows run on the latest commit on the default or base branch.

So we should have our first preview run after merging the PR. I've set it to run Monday-Friday at 5am UTC but other preferences are welcomed!


Badges preview

Added badges to README.md for the above Github Actions workflows. They should look as below:

Modules Status

Modules Status

Modules Status

Modules Status

+ daily one

@luchihoratiu luchihoratiu requested a review from a team September 9, 2020 12:11
@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 4 times, most recently from 8115be5 to eeb100a Compare September 9, 2020 14:45
@puppetcla
Copy link

CLA signed by all contributors.

@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 6 times, most recently from d385725 to 46c2d61 Compare September 14, 2020 07:28
@ciprianbadescu ciprianbadescu changed the base branch from master to main September 15, 2020 10:55
@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 11 times, most recently from fede6ab to 8e35b3f Compare September 22, 2020 05:52
@luchihoratiu luchihoratiu requested a review from a team as a code owner September 22, 2020 06:11
@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 4 times, most recently from 4c04041 to 9d69a99 Compare September 22, 2020 09:03
@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 19 times, most recently from 1b86885 to 4efc4ad Compare September 23, 2020 16:11
Gemfile Outdated Show resolved Hide resolved
In preparation for the Puppet 7 release, the
`puppet-module-posix-dev-r2.7` and `puppet-module-posix-dev-r2.7` gems
had to be removed from `Gemfile` due to the following dependency error:
  `puppet-module-posix-dev-r2.7` depends on
    `puppet_litmus` which depends on
      `bolt` which depends on
        `puppet` which is locked to a version below 7

Also added the needed gems that were lost in the above removal process
with their respective uniformised version constraints.
Line endings mismatch (`\n` vs `\r\n`) in `*.erb` files caused test
failures when asserting content of generated puppet catalog. This is
solved by updating the `.gitatributes` file accordingly.

Some paths got expanded to Windows paths (starting with drive letter
such as `C:\`) and was causing test failures because of incorrect
expectation.
This commit restricts Rubocop checks by disabling most cops and excluding
nonessential paths so that it can be reenabled as a mandatory step in
CI. Offences remaining after that were also solved.

A future ticket should remove these restrictions and clean up the code
accordingly.
@luchihoratiu luchihoratiu force-pushed the MODULES-10806 branch 2 times, most recently from 7777618 to a3eb73a Compare September 24, 2020 08:01
Added GitHub Actions workflows for `Static Code Analysis`, `Unit Tests`
and `Task Acceptance Tests` that run each time there is a new `pull
request` or `git push`.  `Unit tests` are also set to run every workday
at `05:00:00 UTC`.

The `.yaml` config file for `Travis` has been removed.
Copy link
Contributor

@GabrielNagy GabrielNagy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the module:push task has all the required dependencies to run. LGTM 👍

@GabrielNagy GabrielNagy merged commit 41b6d46 into puppetlabs:main Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants