Skip to content
GitLab
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
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
80e912e6
Commit
80e912e6
authored
6 years ago
by
Tristan Van Berkom
Browse files
Options
Downloads
Patches
Plain Diff
tests/artifactcache/expiry.py: Fix test case expectations.
parent
70971f24
No related branches found
No related tags found
1 merge request
!779
Tristan/fix cache exclusivity 1.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/artifactcache/expiry.py
+19
-0
19 additions, 0 deletions
tests/artifactcache/expiry.py
with
19 additions
and
0 deletions
tests/artifactcache/expiry.py
+
19
−
0
View file @
80e912e6
...
...
@@ -175,6 +175,22 @@ def test_keep_dependencies(cli, datafiles, tmpdir):
# Assert that we never delete a dependency required for a build tree
#
# NOTE: This test expects that a build will fail if it attempts to
# put more artifacts in the cache than the quota can hold,
# and expects that the last two elements which don't fit into
# the quota wont even be built.
#
# In real life, this will not be the case, since once we reach
# the estimated quota we launch a cache size calculation job and
# only launch a cleanup job when the size is calculated; and
# other build tasks will be scheduled while the cache size job
# is running.
#
# This test only passes because we configure `builders` to 1,
# ensuring that the cache size job runs exclusively since it
# also requires a compute resource (a "builder").
#
@pytest.mark.datafiles
(
DATA_DIR
)
def
test_never_delete_dependencies
(
cli
,
datafiles
,
tmpdir
):
project
=
os
.
path
.
join
(
datafiles
.
dirname
,
datafiles
.
basename
)
...
...
@@ -183,6 +199,9 @@ def test_never_delete_dependencies(cli, datafiles, tmpdir):
cli
.
configure
({
'
cache
'
:
{
'
quota
'
:
10000000
},
'
scheduler
'
:
{
'
builders
'
:
1
}
})
...
...
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