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

Enable CI tests for discovery node #1047

Merged
merged 32 commits into from
Jan 7, 2025

Conversation

noursaidi
Copy link
Collaborator

No description provided.

@noursaidi noursaidi requested a review from grafnu December 9, 2024 20:32
@@ -148,13 +150,53 @@ jobs:
env:
IMAGE_NAME: ${{ github.repository }}
REF_NAME: ${{ github.ref_name }}
DEVICE_ID: ${{'AHU-1'}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No ${{

run: |
docker run --net udminet --name registrar -v $(realpath site_model):/root/site_model \
ghcr.io/$IMAGE_NAME:validator-$REF_NAME bin/registrar site_model/cloud_iot_config.json
- name: Start discoverynode
run: |
export IMAGE_TAG=ghcr.io/$IMAGE_NAME:misc-$REF_NAME
# This currently fails (no config), but just check that it actually runs.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove comment

@@ -11,8 +11,8 @@ ROOT_DIR=$(realpath $(dirname $0)/..)
BASE_CONFIG=$(realpath $ROOT_DIR/etc/base_config.json)
TMP_CONFIG="/tmp/discoverynode_config.json"

if [[ $# -ne 3 ]]; then
error Usage: $0 SITE_MODEL TARGET DEVICE_ID
if (( $# -le 4 )); then
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be -le 2 since the [OPTIONS] bit is optional? Or -lt 3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's three required options:

  • site model
  • target
  • device ID


cat $TMP_CONFIG | jq -r "$substitutions" | sponge $TMP_CONFIG

for option in "$@"
Copy link
Collaborator

Choose a reason for hiding this comment

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

convention is to have "; do" at the end, rather than "do" on a new line

@grafnu
Copy link
Collaborator

grafnu commented Dec 10, 2024 via email

@grafnu
Copy link
Collaborator

grafnu commented Jan 6, 2025

what's the status of this? Submit? Draft? Close?

@noursaidi
Copy link
Collaborator Author

in progress, there's some peculiar auth bug in the non integration test environment so I'm just going to split the PR so the working integration test can be merged in

@noursaidi noursaidi merged commit 8aaa057 into faucetsdn:master Jan 7, 2025
3 of 7 checks passed
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.

2 participants