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

Update compose ps command to show container hash for DC v2.14 #770

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

rocketage
Copy link
Contributor

@rocketage rocketage commented Apr 26, 2023

Background

It seems that the behaviour of docker-compose ps --quiet has changed from v2.13 to v2.14 of docker-compose

In v1 this command would return the stopped containers, but in v2.14 it only returns the containers if they are running.

The fix is to use the --all flag. With that the command lists all stopped containers.

Changes

  1. Add --all flag to all docker-compose ps commands in enable.sh

@rocketage
Copy link
Contributor Author

I was able to avoid the first build error by updating compose.json but the next build error is this from the Spryker test:

Exception - Exception: Value mismatch for "Address.firstName" transfer property. Value1: "firstName()"; Value2: "firstName". To fix this, search for 'property name="firstName"' in the code base and fix the wrong one. 

in /app/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/TransferDefinitionMerger.php (160)

I assume we need to merge this first to get a green build: #744

@g-foster2020
Copy link
Contributor

I assume we need to merge this first to get a green build: #744

Yes unless Spryker tests are skipped.

@andytson-inviqa andytson-inviqa changed the base branch from 1.5.x to feature/phpcsutils-version-fix April 28, 2023 08:05
@andytson-inviqa andytson-inviqa added harness-magento1 Magento 1.x harness harness-magento2 Magento 2.x harness harness-php PHP harness harness-drupal8 Drupal 8.x harness, obsolete as of 1.5.x harness-wordpress Wordpress harness harness-symfony Symfony harness harness-drupal Drupal harness, since 1.5.x labels Apr 28, 2023
@andytson-inviqa andytson-inviqa force-pushed the feature/fix-build-check-for-dc2 branch from 73b68cb to 42c50d3 Compare April 28, 2023 08:07
Base automatically changed from feature/phpcsutils-version-fix to 1.5.x April 28, 2023 11:00
@andytson-inviqa andytson-inviqa enabled auto-merge (squash) April 28, 2023 11:06
@andytson-inviqa andytson-inviqa enabled auto-merge (squash) April 28, 2023 11:11
@andytson-inviqa andytson-inviqa merged commit 37ccd84 into 1.5.x Apr 28, 2023
@andytson-inviqa andytson-inviqa deleted the feature/fix-build-check-for-dc2 branch April 28, 2023 11:41
@andytson-inviqa andytson-inviqa added this to the 1.5.0 milestone May 12, 2023
@@ -77,7 +77,7 @@ dynamic_console()
{
if console_enabled; then
# ensure it is started
if [ -z "$("${COMPOSE_BIN[@]}" ps --quiet console)" ]; then
if [ -z "$("${COMPOSE_BIN[@]}" ps --quiet --all console)" ]; then
Copy link
Contributor

@andytson-inviqa andytson-inviqa May 12, 2023

Choose a reason for hiding this comment

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

erm, not actually relevant here as its not started if it's not started, but as it's only reproducing same behaviour as before, there's no new bug

@andytson-inviqa andytson-inviqa added the bug Something isn't working label May 12, 2023
@andytson-inviqa andytson-inviqa changed the title Update compose ps command to show container hash for DC v2 Update compose ps command to show container hash for DC v2.15 May 12, 2023
@andytson-inviqa andytson-inviqa changed the title Update compose ps command to show container hash for DC v2.15 Update compose ps command to show container hash for DC v2.14 May 12, 2023
@andytson-inviqa andytson-inviqa removed the harness-magento1 Magento 1.x harness label Jun 20, 2023
@andytson-inviqa andytson-inviqa added harness-all Changes required to all harness directories and removed harness-magento2 Magento 2.x harness harness-php PHP harness harness-drupal8 Drupal 8.x harness, obsolete as of 1.5.x harness-wordpress Wordpress harness harness-symfony Symfony harness harness-drupal Drupal harness, since 1.5.x labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working harness-all Changes required to all harness directories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants