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

fix(gitlab): Prevent considering non-head pipelines skipped by default #3695

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

marceloboeira
Copy link
Contributor

what

By fixing nil pointer reference in #3428 we unveiled yet another bug now that the code is able to run further:

When an MR with no HeadPipeline exists its commits are set to skipped by default and thus create some mess when running "PullMergeable" (rendering the MR useless)

The bug was caught by the tests, however, in an attempt to make the build pass and unblock we create a patch to ignore that test.

In order to prevent further problems, this MR:

  • Updates the test stack to run all plan/apply commands in the context of "HeadLess" Pipelines
  • Fixes the default of skipped pipeline to false (as it is better to assume it is NOT skipped since that prevents the merge in most cases)
  • Make all integration tests pass

tests

references

@marceloboeira marceloboeira requested a review from a team as a code owner August 22, 2023 12:25
@github-actions github-actions bot added go Pull requests that update Go code provider/gitlab labels Aug 22, 2023
@marceloboeira
Copy link
Contributor Author

cc @nitrocode @GenPage @ghaiszaher @jamengual

By fixing nil pointer reference in 3428 we unveiled yet another bug now that the code is able to run further:

When an MR with no HeadPipeline exists its commits are set to skipped by default and thus create some mess when running "PullMergeable" (rendering the MR useless)

The bug was caught by the tests, however, in an attempt to make the build pass and unblock we create a patch to ignore that test.

In order to prevent further problems, this MR:

* Updates the test stack to run all plan/apply commands in the context
  of "HeadLess" Pipelines
* Fixes the default of skipped pipeline to false (as it is better to
  assume it is NOT skipped since that prevents the merge in most cases)
* Make all integratiion tests pass

References:

* Original MR: runatlantis#3428
* Tests Patch MR : runatlantis#3653
@GenPage GenPage enabled auto-merge (squash) August 23, 2023 21:07
@GenPage GenPage added this to the v0.26.0 milestone Aug 23, 2023
@GenPage GenPage merged commit bcd917f into runatlantis:main Aug 23, 2023
10 checks passed
@marceloboeira marceloboeira deleted the issue-1852-patch branch August 26, 2023 16:24
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
runatlantis#3695)

By fixing nil pointer reference in 3428 we unveiled yet another bug now that the code is able to run further:

When an MR with no HeadPipeline exists its commits are set to skipped by default and thus create some mess when running "PullMergeable" (rendering the MR useless)

The bug was caught by the tests, however, in an attempt to make the build pass and unblock we create a patch to ignore that test.

In order to prevent further problems, this MR:

* Updates the test stack to run all plan/apply commands in the context
  of "HeadLess" Pipelines
* Fixes the default of skipped pipeline to false (as it is better to
  assume it is NOT skipped since that prevents the merge in most cases)
* Make all integratiion tests pass

References:

* Original MR: runatlantis#3428
* Tests Patch MR : runatlantis#3653
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
runatlantis#3695)

By fixing nil pointer reference in 3428 we unveiled yet another bug now that the code is able to run further:

When an MR with no HeadPipeline exists its commits are set to skipped by default and thus create some mess when running "PullMergeable" (rendering the MR useless)

The bug was caught by the tests, however, in an attempt to make the build pass and unblock we create a patch to ignore that test.

In order to prevent further problems, this MR:

* Updates the test stack to run all plan/apply commands in the context
  of "HeadLess" Pipelines
* Fixes the default of skipped pipeline to false (as it is better to
  assume it is NOT skipped since that prevents the merge in most cases)
* Make all integratiion tests pass

References:

* Original MR: runatlantis#3428
* Tests Patch MR : runatlantis#3653
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code provider/gitlab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants