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

fix failing workflow run #26

Closed

Conversation

s1ntaxe770r
Copy link

Description
the last workflow run for osm failed. this was caused by a case mismatch in the name of the osm binary
This PR fixes #
https://github.com/layer5io/meshery-smp-action/runs/4264742948?check_suite_focus=true
Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
Copy link
Contributor

@pottekkat pottekkat left a comment

Choose a reason for hiding this comment

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

@s1ntaxe770r Where do we use the mesh_deploy script?


echo "Checking if mesheryctl is installed"

if mesheryctl
Copy link
Member

Choose a reason for hiding this comment

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

Is this command can work well? If I remember right, we need to check the file to use -f parameter in shell.

if [ ! -f "path of mesheryctl" ]; then
        echo "Run"
    else
        echo "Not be found."
    fi

Copy link
Author

Choose a reason for hiding this comment

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

🤔 I tried this method but mesheryctl is not found even though I have it installed. The path I supplied is "/usr/local/bin/mesheryctl", I'm assuming that's the default location mesheryctl would be installed in ?

Copy link
Member

Choose a reason for hiding this comment

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

Agree with you here, we can check the default path of mesheryctl. And I show you an example:

https://github.com/microsoft/vscode-dev-containers/blob/ced3b71afd3e9b74e3da1e32505144371e35ba28/containers/mit-scheme/.devcontainer/library-scripts/common-debian.sh#L54

The command can wrok well on check file.

Copy link
Author

Choose a reason for hiding this comment

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

👍🏽 thanks for tip @Aisuko that worked

Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
@s1ntaxe770r
Copy link
Author

@s1ntaxe770r Where do we use the mesh_deploy script?

oops , that was meant to be a fix for #20

Copy link
Member

@Aisuko Aisuko left a comment

Choose a reason for hiding this comment

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

Please help check the format.



if [ -f "${MESHERYCTL}" ]; then
echo "Found mesheryctl, deploy $MESH"
Copy link
Member

Choose a reason for hiding this comment

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

Please check the format

echo "Found mesheryctl, deploy $MESH"
mesheryctl mesh deploy $MESH
else
printf "Mesheryctl not found. \nInstalling...\n"
Copy link
Member

Choose a reason for hiding this comment

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

Same

Copy link
Author

Choose a reason for hiding this comment

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

@Aisuko I'm afraid i don't understand what you mean here

Copy link
Member

@Aisuko Aisuko Jan 4, 2022

Choose a reason for hiding this comment

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

Hi @s1ntaxe770r, sorry for replying late.. I mean be careful the shell format. Some like the the indentation.

@leecalcote
Copy link
Member

@s1ntaxe770r still engaged here?

@s1ntaxe770r
Copy link
Author

Yes

Signed-off-by: Jubril Oyetunji <cyberdev01@protonmail.com>
@pottekkat
Copy link
Contributor

@s1ntaxe770r We should also switch the scripts used in the workflows with this new script, test and make sure it is working as intended. Any issues in mesheryctl that prevents this should be fixed.

@stale
Copy link

stale bot commented Mar 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the issue/stale Issue has not had any activity for an extended period of time label Mar 22, 2022
@leecalcote
Copy link
Member

@gyohuangxin will you review and decide which direction to go from here?

@stale stale bot removed the issue/stale Issue has not had any activity for an extended period of time label Mar 22, 2022
@gyohuangxin
Copy link
Member

@s1ntaxe770r I'm confused about the current status, there are same code changes mesh_deploy in https://github.com/layer5io/meshery-smp-action/pull/25/files. Can you please make this PR to only for fixing osm worflow, and move mesh_deploy codes to #25

@l5io
Copy link

l5io commented May 20, 2022

PR abandoned.

@l5io l5io closed this May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

6 participants