Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
31a16992
Verified
Commit
31a16992
authored
3 years ago
by
Andrejs Cunskis
Browse files
Options
Downloads
Patches
Plain Diff
Use env variables to set knapsack paths
parent
9649d8e8
No related branches found
No related tags found
1 merge request
!77316
E2E: Integrate knapsack report setup in to QA framework
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qa/qa/tools/knapsack_report.rb
+5
-6
5 additions, 6 deletions
qa/qa/tools/knapsack_report.rb
with
5 additions
and
6 deletions
qa/qa/tools/knapsack_report.rb
+
5
−
6
View file @
31a16992
...
...
@@ -33,18 +33,17 @@ def upload(base_path)
#
# @return [void]
def
configure
ENV
[
"KNAPSACK_TEST_FILE_PATTERN"
]
||=
"qa/specs/features/**/*_spec.rb"
ENV
[
"KNAPSACK_REPORT_PATH"
]
=
report_path
Knapsack
.
logger
=
QA
::
Runtime
::
Logger
.
logger
Knapsack
.
report
.
config
(
# temp compatibility before all pipelines migrate to automatically setting report path
test_file_pattern:
ENV
[
"KNAPSACK_TEST_FILE_PATTERN"
]
||
"qa/specs/features/**/*_spec.rb"
,
report_path:
ENV
[
"KNAPSACK_REPORT_PATH"
]
||
report_path
)
download_report
rescue
StandardError
=>
e
logger
.
warn
(
"Failed to download latest knapsack report:
#{
e
}
"
)
logger
.
warn
(
"Falling back to 'knapsack/master_report.json'"
)
Knapsack
.
report
.
config
(
report_path:
"knapsack/master_report.json"
)
ENV
[
"KNAPSACK_REPORT_PATH"
]
=
"knapsack/master_report.json"
end
# Download knapsack report from gcs bucket
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment