-
Notifications
You must be signed in to change notification settings - Fork 168
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
Internal: Move Behat CI over to new PHP images #3429
Draft
Kingdutch
wants to merge
10
commits into
main
Choose a base branch
from
internal/ci-new-images
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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
Kingdutch
added
team: bananas
status: needs review
This pull request is waiting for a requested review
prio: medium
type: repository
Improvements to working with the repository (e.g. templates, README files, or workflows)
labels
Jun 20, 2023
Thanks for contributing towards Open Social! A maintainer from the @goalgorilla/maintainers group might not review all changes from all teams/contributors. Please don't be discouraged if it takes a while. In the meantime, we have some automated checks running and it might be that you will see our comments with some tips or requests to speed up the review process. 😊 |
Kingdutch
force-pushed
the
internal/ci-new-images
branch
16 times, most recently
from
June 27, 2023 14:49
0e8707b
to
cead25d
Compare
The CI images are optimized differently (they use opcache like production, but have assertions enabled like development). The images now also include `jq` by default which means we don't need to install it as CI step.
We (Alexander and Bram) have decided that for our new images we'll move to using `/app` across development, CI and production to mirror our current production set-up. This means we need to fix where we work in GitHub actions to ensure our paths are correct.
We need to use the new images which have the docker settings file where we must provide connection details for the database and file system through environment variables.
We were caching the previous Open Social version based on the commit that we're testing, but the previous version doesn't actually change with that commit. So instead we cache it based on a few factors: - The previous release number - The contents of our workflow file - The contents of our scaffold composer.json That should ensure that we can re-use the previous installation across our PRs (since the contents are constant) but also ensure we regenerate it if we change our Behat workflow or our test scaffolding set-up.
The new image takes better care of how the user in the image is set which ensures the ownership issue doesn't arise.
The CLI container has everything set-up to actually use the PHP tools (like Drush) that we install. We add an opensocial service which will run the PHP-FPM container that the web container can route requests to.
This fixes the Behat tests in the CI but will break it in the local development set-up until we migrate that to new images too.
tbsiqueira
force-pushed
the
internal/ci-new-images
branch
from
July 11, 2023 09:24
20a7cfe
to
7204967
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
prio: medium
status: needs review
This pull request is waiting for a requested review
type: repository
Improvements to working with the repository (e.g. templates, README files, or workflows)
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.
Problem
Our current CI images are difficult to maintain which makes testing different versions of PHP difficult.
Solution
Use the new dev images that are part of our SaaS build process which provide more versions.
Issue tracker
Internal CI issue no change.
How to test
Definition of done
Before merge
After merge