Add environment file parameter to exe
What does this MR do and why?
This adds the --environment-issues-output-file parameter that was never added to the executable in the gem, only in the RelateFailureIssue class to accept the parameter. It was missed in local testing by calling the command with the file directly as shown below.
This was found by errors such as
https://ops.gitlab.net/gitlab-org/quality/production/-/jobs/20827484#L448
invalid option: --environment-issues-output-file (OptionParser::InvalidOption) 	from /builds/gitlab-org/quality/production/.gems/gems/gitlab_quality-test_tooling-2.23.0/exe/relate-failure-issue:11:in `new' 	from /builds/gitlab-org/quality/production/.gems/gems/gitlab_quality-test_tooling-2.23.0/exe/relate-failure-issue:11:in `<top (required)>' 	from /builds/gitlab-org/quality/production/.gems/bin/relate-failure-issue:25:in `load' 	from /builds/gitlab-org/quality/production/.gems/bin/relate-failure-issue:25:in `<main>'Relates to gitlab-org/quality/quality-engineering/team-tasks#3885 (closed)
How to set up and validate locally
From past MR !340 (merged):
Test environment issue detection:
bundle exec relate-failure-issue --group-similar \ --input-files './spec/gitlab_quality/test_tooling/report/fixtures/rspec-reports/group-failures/job1/rspec-*.json' \ --project "gitlab-org/quality/e2e-test-issues" \ --token "<YOUR_TOKEN>" \ --dry-runExpected output:
- Logs showing "Identified as environment error"
- "Found 1 groups after filtering"
- Creates /tmp/environment_issues.jsonwith grouped failure data
Test Slack notification:
bundle exec post-to-slack 
--environment-issues-file /tmp/environment_issues.json 
--slack-webhook-url "$CI_SLACK_WEBHOOK_URL" 
--channel "#your-test-channel" 
--username "GitLab QA Bot" 
--icon-emoji ""MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
- 
I have evaluated the MR acceptance checklist for this MR. 
Edited  by Tim Beauchamp