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 generators specs target branch #9284
Merged
andreslucena
merged 5 commits into
decidim:develop
from
mainio:fix/generators-specs-target-branch
May 11, 2022
Merged
Fix generators specs target branch #9284
andreslucena
merged 5 commits into
decidim:develop
from
mainio:fix/generators-specs-target-branch
May 11, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
andreslucena
added
the
type: internal
PRs that aren't necessary to add to the CHANGELOG for implementers
label
May 11, 2022
andreslucena
approved these changes
May 11, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽
Do you want me to do the backport @ahukkanen? |
ahukkanen
added a commit
to mainio/decidim
that referenced
this pull request
May 11, 2022
* Dynamically get the edge release branch based on the current version * Move the current generators spec to the runtime directory * Add spec for testing the generators edge version git branch * Fix the repo root path at the generators runtime specs * Require the Decidim::Generators base module for the generators tests
@andreslucena I created the backport at #9290. |
andreslucena
pushed a commit
that referenced
this pull request
May 19, 2022
* Dynamically get the edge release branch based on the current version * Move the current generators spec to the runtime directory * Add spec for testing the generators edge version git branch * Fix the repo root path at the generators runtime specs * Require the Decidim::Generators base module for the generators tests
andreslucena
pushed a commit
that referenced
this pull request
May 19, 2022
* Dynamically get the edge release branch based on the current version * Move the current generators spec to the runtime directory * Add spec for testing the generators edge version git branch * Fix the repo root path at the generators runtime specs * Require the Decidim::Generators base module for the generators tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
module: generators
type: internal
PRs that aren't necessary to add to the CHANGELOG for implementers
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
After we upgraded to Ruby 3, the generators specs started to fail at the release branches because they are trying to install the version from the
develop
branch on Ruby 2.7, as the previous release version targets Ruby 2.7.When merging backport PRs to the
release/0.26-stable
branch, we started to get the following kind of errors from the CI:This caused the whole pipeline to fail because it couldn't install Decidim.
This PR interprets the target "edge" branch based on the
Decidim::Generators
version number:.dev
, install the version at thedevelop
branchrelease/0.xx-stable
branch where0.xx
is replaced with the correct version📌 Related Issues
Testing
Run the generators specs against the
release/0.26-stable
branch.For
develop
this should not have any effect.📋 Checklist
docs/
.