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: quick deploy polling uses the new deploy ID #815

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Nov 16, 2023

What does this PR do?

Changes quick deploy to use the new deploy ID and not the validation ID. Augments NUTs to ensure this behavior.

What issues does this PR fix or reference?

@W-14481091@
forcedotcom/cli#2537

exitCode: 0,
});
assert(deploy);
assert(deploy.result.id !== validation.result.id, 'deploy result ID should not be the validation ID');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This assertion verifies the correct behavior. If you remove the fix from quick.ts these tests will fail.

apiOptions: {
rest: api === API['REST'],
},
});
const result = await mdapiDeploy.pollStatus({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The polling was reusing the MetadataApiDeploy instance created from the validation ID (aka jobId) so it was polling for the validation deploy status, not the deployRecentValidation status.

@mshanemc mshanemc merged commit 217004a into main Nov 17, 2023
40 checks passed
@mshanemc mshanemc deleted the sh/fix-quick-deploy-polling branch November 17, 2023 20:49
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