Skip to content

Conversation

@sirugh
Copy link
Contributor

@sirugh sirugh commented Feb 4, 2025

❗ DO NOT MERGE ❗

Retry logic.

Pausing for now. We were stuck as for some reason the workspace is being deleted so the retry script was failing.

We will instead add output instructions to guide users in event of mesh provision failure.

// TODO: Replace with detached childProcess.
if (shouldCreateMesh) {
await checkAndRetryMeshUpdate(runAIOCommand)
// Spawn detached child process to verify mesh in the background, without disrupting user's CLI session.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So this will kick off a detached child process and will log to mesh-verify.log. I'm a little concerned that it could fail and the user would not know. Based on my findings in node docs, If we want the parent process to exit before this, we cannot log to the terminal.

Perhaps we should add a log here, before we kick off the command, like Verifying Mesh Creation. Please check mesh-verify.log for details, or run "aio commerce:mesh-verify" if there are failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And actually, I don't think this is working. When I run through the CLI for the first time, and select my project/workspace and "use for future operations", the mesh-verify command is still asking for user to select project/workspace.

image image

Copy link
Collaborator

@revanth0212 revanth0212 Feb 5, 2025

Choose a reason for hiding this comment

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

Yeah probably because you cleared the config.console. Ideally that shouldn't be the case. Ill verify it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not though - unless I missed it programatically. I ran the cli, which would have had it set after picking mesh, and then immediately after, the mesh-verify command runs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed the mesh-verify issue in the past few commits. Also with d2e06e1 we can run mesh-verify command with few optional flags like this aio commerce mesh-verify --orgId 233240 --projectId 4566206088344816749 --workspaceId 4566206088344817114

…patibility and instructions for setting up cli

Signed-off-by: Stephen Rugh <rugh@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants