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

chore: remove dependabot groups #1582

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

mdelapenya
Copy link
Collaborator

@mdelapenya mdelapenya commented Sep 6, 2023

What does this PR do?

This PR removes the dependabot groups, turning back to a state where each update comes in a single PR

At the same time, skips the GH actions for any PR from @dependabot that is not already approved:

# do not run this job if it's a PR from dependabot that is not approved yet
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.state != 'approved' && github.triggering_actor == 'dependabot[bot]') }}

That way, we will be able to manually combine the PRs if/when needed, not exhausting the allocated workers in the GH organisation every time @dependabot sends updates (in a monthly manner).

To extract the above condition, we created this truth table:

image

Resulting in that we want to process the jobs for the contrary cases of:

  • the github event is a pull_request, and
  • the pull_request state is not approved, and
  • the author of the pull_request is dependabot

Why is it important?

The release notes, that are generated from the PRs, are not clear and it's very difficult for users to understand what's new in terms of dependencies.

Therefore, we are going back to the old, semi-automatic process of combining dependabot PRs using https://github.com/mdelapenya/gh-combine-prs

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner September 6, 2023 08:09
@mdelapenya mdelapenya added the dependencies Dependencies or external services label Sep 6, 2023
@mdelapenya mdelapenya self-assigned this Sep 6, 2023
@netlify
Copy link

netlify bot commented Sep 6, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 5eeca9f
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64f83e166a2c9000076c44ad
😎 Deploy Preview https://deploy-preview-1582--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sonarcloud
Copy link

sonarcloud bot commented Sep 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -9,12 +9,6 @@ type Config struct {
Updates Updates `yaml:"updates"`
}

type Group struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can keep groups in the model as it is omitempty. You can just remove it from the constructor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was tempted to keep them , but YAGNI made me think about the removal. Do you think we are going to use it at some point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@mmorel-35 if you agree, I'm merging this one now

@mdelapenya mdelapenya merged commit c1fa035 into testcontainers:main Sep 6, 2023
98 checks passed
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Sep 6, 2023
* main:
  chore(deps): bump github.com/tidwall/gjson in /modules/vault (testcontainers#1586)
  chore(deps): bump github.com/elastic/go-elasticsearch/v8 from 8.0.0 to 8.9.0 in /modules/elasticsearch (testcontainers#1593)
  chore(deps): bump github.com/aws/aws-sdk-go and aws-sdk-go-v2 in /modules/localstack (testcontainers#1599)
  chore(deps): bump golang.org/x/text from 0.12.0 to 0.13.0 (testcontainers#1583)
  chore(deps): bump github.com/docker/docker from 24.0.5+incompatible to 24.0.6+incompatible (testcontainers#1584)
  chore(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (testcontainers#1585)
  chore: remove dependabot groups (testcontainers#1582)
  chore(deps): bump actions/checkout from 3 to 4 (testcontainers#1576)
@mdelapenya mdelapenya deleted the dependabot-groups branch September 6, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependencies or external services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rollback dependabot groups
2 participants