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

chore(report-portal): run reports only when env is setup #363

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

Birkbjo
Copy link
Member

@Birkbjo Birkbjo commented Dec 11, 2023

After report-portal was added, it was run even if the required environment-variables wasn't configured. This causes a lot of verbose logging and error-messages in the console.

Not sure if this is the best way, but I couldn't find any native way to do this in agent-js-jest. I'm a bit surprised the tool is actually running even if these variables are not defined.
We might want a different jest.config for CI and local testing instead?

@Birkbjo Birkbjo requested review from adeldhis2 and kabaros December 11, 2023 13:07
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-363--dhis2-data-entry.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify December 11, 2023 13:12 Inactive
Copy link
Contributor

@adeldhis2 adeldhis2 left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thanks Birk for the fix!
I found also this link that could help: How to avoid local execution reported into project space

@adeldhis2 adeldhis2 merged commit 5bd53e7 into master Dec 13, 2023
15 checks passed
@adeldhis2 adeldhis2 deleted the chore/prevent-running-report-portal-locally branch December 13, 2023 10:43
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.3.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants