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

Publishing to slack channel fails after update to v2.0.3 #192

Closed
otenta opened this issue Jun 3, 2024 · 4 comments · Fixed by #193 or #194
Closed

Publishing to slack channel fails after update to v2.0.3 #192

otenta opened this issue Jun 3, 2024 · 4 comments · Fixed by #193 or #194
Labels
bug Something isn't working

Comments

@otenta
Copy link

otenta commented Jun 3, 2024

Hello everyone, i recently updated from test reporter to test beats keeping the same config files etc.
Everything worked fine until the update from v2.0.2 to v2.0.3. When the update happened, my gitlab CI stage for publishing the results failed.

in my script i have
npm install -g testbeats@latest
testbeats publish -c testbeats.config.json
where my config.json is
{ "targets": [ { "name": "slack", "inputs": { "url": "https://hooks.slack.com/services/{SLACK_TOKEN}", "publish": "test-summary", "title": " Test Results * \n *- Branch:* {CI_COMMIT_REF_NAME} *-* \n *- Commit:* {CI_COMMIT_SHORT_SHA} *-" }, "extensions": [ { "name": "hyperlinks", "inputs": { "links": [ { "text": "Pipeline", "url": "{CI_PIPELINE_URL}" }, { "text": "Report Portal", "url": "{Report_portal_url}" } ] } }, { "name": "report-portal-analysis", "inputs": { "url": "{REPORT_PORTAL_BASE_URL}", "api_key": "{REPORT_PORTAL_TOKEN}", "project": "myproject", "launch_name": "my project test" } }, { "name": "quick-chart-test-summary" } ] } ], "results": [ { "type": "junit", "files": [ "{MODIFIED_XML_PATH}" ] } ] }
Now i get this error
🥁 TestBeats v2.0.3 Report publish failed: Config file not found: /builds/services/smth/smth2/myproject/devops/testbeats.config.json
Which is bizarre because in my bash script i pwd to check the working directory and cd to devops and ls and see the config there.

@ASaiAnudeep ASaiAnudeep added the bug Something isn't working label Jun 3, 2024
@ASaiAnudeep ASaiAnudeep linked a pull request Jun 3, 2024 that will close this issue
@ASaiAnudeep ASaiAnudeep reopened this Jun 3, 2024
@otenta
Copy link
Author

otenta commented Jun 3, 2024

Hello @ASaiAnudeep, does this PR fix the issue? When will it be available? Thanks for your effort!

@ASaiAnudeep ASaiAnudeep linked a pull request Jun 3, 2024 that will close this issue
@ASaiAnudeep ASaiAnudeep reopened this Jun 3, 2024
@ASaiAnudeep
Copy link
Member

@otenta I'm not able to replicate the issue. But added more logs to troubleshoot.

@ASaiAnudeep
Copy link
Member

ASaiAnudeep commented Jun 3, 2024

@otenta released new version. can you share the new logs here.

@otenta
Copy link
Author

otenta commented Jun 3, 2024

@ASaiAnudeep the issue has been solved! It was an error caused by the format of the testbeats config. It couldn't parse the target name properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants