-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Build hassfest docker image and pushlish it on beta/stable releases #124706
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fe8b13e
Fix hassfest to use hassfest docker image to verify core
edenhaus 2dac4e8
Add hassfest argument to specify core integration path
edenhaus 733ea78
fix
edenhaus 37bfe95
Fix tests
edenhaus abd29c6
Move hassfest docker image to core
edenhaus 00da659
fix
edenhaus b94cd20
Fix workflow
edenhaus 04bb36a
Remove "
edenhaus c7991fe
chmod
edenhaus 84c989b
Typo
edenhaus faa489c
Merge remote-tracking branch 'origin/dev' into edenhaus-hassfest-dock…
edenhaus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG BASE_IMAGE=ghcr.io/home-assistant/home-assistant:beta | ||
FROM $BASE_IMAGE | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN \ | ||
uv pip install stdlib-list==0.10.0 \ | ||
$(grep -e "^pipdeptree" -e "^tqdm" /usr/src/homeassistant/requirements_test.txt) \ | ||
$(grep -e "^ruff" /usr/src/homeassistant/requirements_test_pre_commit.txt) | ||
|
||
WORKDIR "/github/workspace" | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
LABEL "name"="hassfest" | ||
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>" | ||
|
||
LABEL "com.github.actions.name"="hassfest" | ||
LABEL "com.github.actions.description"="Run hassfest to validate standalone integration repositories" | ||
LABEL "com.github.actions.icon"="terminal" | ||
LABEL "com.github.actions.color"="gray-dark" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bashio | ||
declare -a integrations | ||
declare integration_path | ||
|
||
shopt -s globstar nullglob | ||
for manifest in **/manifest.json; do | ||
manifest_path=$(realpath "${manifest}") | ||
integrations+=(--integration-path "${manifest_path%/*}") | ||
done | ||
|
||
if [[ ${#integrations[@]} -eq 0 ]]; then | ||
bashio::exit.nok "No integrations found!" | ||
fi | ||
|
||
cd /usr/src/homeassistant | ||
exec python3 -m script.hassfest --action validate "${integrations[@]}" "$@" |
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
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
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
Oops, something went wrong.
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.
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.
I think we did not target dev for this because there was no ":dev" tag.
As we are now inside the builder that also builds dev, is there still a reason to not update this on dev?
As this is used by custom integration authors, its better to get a new version of hassfest out to them as soon as possible right?