Skip to content

About

This repo will holds automation used our integrations like reusable workflows and the automations that are already in this repo.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

8 watching

Forks

New Relic Open Source community project banner.

Core Integrations team automation

This repository acts as a place to put actions automating tasks for the Core Integrations team.

Shared Workflows

All Workflows located under .github/workflows with prefix reusable_ are meant to be used by external repos (mainly ohi).

reusable_trigger_prerelease

Reusable workflow to create a Github pre-release (not to actually build the pre-release packages, which is done by reusable_pre-release). This is used by ohai repos trigger_prerelease workflow

Find real example at: nri-redis

reusable_push_pr

Reusable workflow that combines the standard testing process for pull requests with the testing of package creation.

Find real example at: nri-redis

on_release

Reusable workflow to release. This is used by ohai repos on_release.yaml workflow

Find real example at: nri-redis

Automatic releases block endpoint

This repo exposes a github page from the gh_page branch containing a file automatic_release_enable which is used as a block endpoint. Automatic pre-releases executes a GET request to it and fails if the status response is different than 200.

The block mechanism can be manually set by manually executing the workflow Block automatic releases and unset by the workflow Unblock automatic releases from the Actions panel.

Batch integrations

The integrations that are published to S3 with the batch workflows (batch_scan_*, batch_publish_*) have their own block endpoint, the file automatic_release_enable_batch of the same page. It is set and unset by the workflows Block automatic releases (batch) and Unblock automatic releases (batch), and it does not depend on the global one. Without the file, the batch integrations create no pre-release and promote none.

They call reusable_release_automation_batch.yaml in automated_release.yaml and reusable_on_release_batch.yaml in on_release.yaml. Releasing only changes GitHub; the packages are sent to S3 by running Batch scan (production) and Batch publish (production) manually.

The batch integrations keep their existing workflows and add batch_automated_release.yaml, batch_on_prerelease.yaml and batch_on_release.yaml. The global switch controls the existing flow and the batch switch the batch one. The pre-releases created by the batch flow have the marker <!-- release-flow=batch --> in their notes: the batch_* release workflows of the integrations run only for releases with the marker, and the existing on_prerelease.yaml / on_release.yaml skip them.

The pre-releases of the batch flow are titled <tag> (artifacts-pending) and cannot be promoted until the title is the tag. After Batch publish (staging) has finished, run Batch clear artifacts-pending: for every repo in .github/batch/repos.json it renames the latest open pre-release (older ones are not looked at) when it has that suffix and its tarballs (and fips tarballs, where the repo has them) are in the staging bucket, and leaves the others as they are. It only changes the title; use the dry_run input to see what would be renamed first.

Renovate shared config

renovate-base.json5 defines a base renovate configuration to be used in all core-int repositories.

It can be used directly like this:

{
  "extends": [
    "github>newrelic/coreint-automation:renovate-base.json5"
  ]
}

Or include additional rules if needed:

 "extends": [
   "github>newrelic/coreint-automation:renovate-base.json5"
  ],
  "packageRules": [
    // ...
  ]

Check Shareable Config Presets in Renovate Docs for further information.

Renovate configuration resources

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

If you would like to contribute to this project, review these guidelines.

To all contributors, we thank you! Without your contribution, this project would not be what it is today. We also host a community project page dedicated to Project Name.

Deprecated

Reposettings

Upstream: txqueuelen/reposettings

Reposettings reads a YAML file and ensures that repositories match the specified config. It is deprecated because there is an organization level policy that forces branch protections. I leave the configuration just in case we need to set labels globally in a easy way. But the workflow that runs the cronjob has been removed.

Support

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub.

License

[Project Name] is licensed under the Apache 2.0 License.

[If applicable: The [project name] also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third-party notices document.]

About

This repo will holds automation used our integrations like reusable workflows and the automations that are already in this repo.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages