Skip to content

Conversation

@tianon
Copy link
Member

@tianon tianon commented May 30, 2023

This test isn't useful for "interoperability" like some of the language-specific tests, and is really very specific to this particular image (and we only use it as a tool to roughly validate that we've packaged the software correctly), so it makes more sense for it to live here.

This test isn't useful for "interoperability" like some of the language-specific tests, and is really very specific to this particular image (and we only use it as a tool to roughly validate that we've packaged the software correctly), so it makes more sense for it to live here.
@tianon
Copy link
Member Author

tianon commented May 31, 2023

This should make it a lot easier to update when it has to change during bumps too 😂

@tianon
Copy link
Member Author

tianon commented May 31, 2023

Might be worth merging docker-library/official-images#14757 first so we can double check this actually works correctly (although I'm not worried).

trap "docker rm -vf $mysqlCid > /dev/null" EXIT

# "Unknown database error" / "ECONNREFUSED" (and Ghost just crashing hard)
. "$dir/../../retry.sh" --tries 30 'docker exec -i -e MYSQL_PWD="$mysqlPassword" "$mysqlCid" mysql -h127.0.0.1 -u"$mysqlUser" --silent "$mysqlDatabase" <<<"SELECT 1"'
Copy link
Member

Choose a reason for hiding this comment

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

/home/runner/work/ghost/ghost/.test/tests/ghost-basics/run.sh: line 36: /home/runner/work/ghost/ghost/.test/tests/ghost-basics/../../retry.sh: No such file or directory
  'ghost-basics' [4/4]...failed

🤔 what do we do about these "lib" scripts?

Copy link
Member Author

Choose a reason for hiding this comment

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

😭

@tianon
Copy link
Member Author

tianon commented Jun 2, 2023

Gah, we also need to update the @docker-library-bot automation to look for this and run these tests as well (or finally do the hairy work to try and GitHub-Actions-ize those, which is ... a little complicated).

@yosifkit
Copy link
Member

yosifkit commented Sep 6, 2023

Going to close for now. We need to redesign the test harness a bit to make this work (possibly consider moving to a "real" testing framework or something).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants