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

feat: add message when build id is not supported #58

Merged
merged 3 commits into from
Dec 30, 2022

Conversation

vitaliimelnychuk
Copy link
Contributor

Closes #54

Adding a function that will check for support of build ID from CI environment variables.

I am unsure if the message is informative enough or if we should add a link to the documentation. @agoldis What do you think?

Copy link
Contributor

@agoldis agoldis left a comment

Choose a reason for hiding this comment

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

Please see the inline comment.

* The process will stop if we cannot do it
* https://docs.cypress.io/guides/references/error-messages#We-could-not-determine-a-unique-CI-build-ID
*/
function checkForCiBuildFromCi() {
Copy link
Contributor

Choose a reason for hiding this comment

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

  • This file becomes too bloated, please move into `ciProvider
  • We implemented programmatic API access via run function - we don't want the upstream program to just exit. Please throw an exception instead.
  • Please move this validation into ciProvider -> getCI. getCI can get the explicit ciBuildId as a parameter,

Copy link
Contributor

@agoldis agoldis left a comment

Choose a reason for hiding this comment

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

Please see the inline comment.

@agoldis agoldis merged commit 57b2b42 into main Dec 30, 2022
@agoldis agoldis deleted the feat/show-error-when-build-id-undefined branch December 30, 2022 09:43
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.

Warning when cannot determine ciBuildId
2 participants