summaryrefslogtreecommitdiff
path: root/tests/sourcecache
Commit message (Collapse)AuthorAgeFilesLines
* Mark buildbox tests as xfail if they require non implemented featuresWilliam Salmon2019-07-251-1/+2
|
* tests/sourcecache: Fix typos in commentsJürg Billeter2019-07-163-3/+3
| | | | Spotted by Darius.
* tests/sourcecache/staging.py: Use dummy_context()Jürg Billeter2019-07-161-62/+48
|
* tests/sourcecache/push.py: Use dummy_context()Jürg Billeter2019-07-161-29/+26
|
* tests/sourcecache/fetch.py: Use dummy_context()Jürg Billeter2019-07-161-86/+74
|
* tests: Change all calls to _yaml.dump to _yaml.rountrip_dumpBenjamin Schubert2019-07-154-15/+15
| | | | | Now that both are equivalent, we can skip the sanitization part before the yaml call.
* Source cache uses new proto methodsRaoul Hidalgo Charman2019-07-084-21/+27
| | | | | | | | | This changes the location of source refs from `cache/cas/refs` to `cache/sources_protos` and fixes tests that looked in the old reference place. Source cache now uses the new protocol buffer and grpc methods defined, for storing locally, and pushing and pulling to remotes. Part of #1038
* Refactor, use context.messenger directlyAngelos Evripiotis2019-07-053-7/+7
| | | | | | Instead of having methods in Context forward calls on to the Messenger, have folks call the Messenger directly. Remove the forwarding methods in Context.
* Refactor: message handlers take 'is_silenced'Angelos Evripiotis2019-07-053-3/+3
| | | | | | | | Remove the need to pass the Context object to message handlers, by passing what is usually requested from the context instead. This paves the way to sharing less information with some child jobs - they won't need the whole context object, just the messenger.
* Fetch sources as needed for bst source checkoutJürg Billeter2019-06-271-8/+2
| | | | | This removes the --fetch option of bst source checkout, always enabling fetch support. This is in line with fetching subprojects as needed.
* _yaml: Remove useless calls to '_yaml.node_sanitize'Benjamin Schubert2019-06-252-6/+6
| | | | | | Calling '_yaml.dump' will itself call '_yaml.node_sanitize', therefore we can remove all calls to it in places where we directly after call dump.
* tests/sourcecache/push.py: Less strict initialisation checkjennis/fix_failing_testJames Ennis2019-06-061-2/+2
| | | | | | | | When we are testing push failures, we are being too strict when we try to verify that the remote has failed to be initialized. The assertion was failing because of slightly different gRPC error messages. Now the assertion is less strict but still appropriate.
* _artifact.py: Rework to use artifact protoRaoul Hidalgo Charman2019-05-151-0/+1
| | | | | | | | This will replace the previous use of a directory structure. Quite a lot is changed here, predominantly _artifact and _artifactcache modules. Part of #974
* Add tests for BST_REQUIRES_PREVIOUS_SOURCES_STAGERaoul Hidalgo Charman2019-05-145-0/+156
| | | | | | Tests that sources are cached seperately where appropriate. Part of #982
* plugintestutils: Rename 'plugintestutils' package to 'testing'phil/rename-plugintestutilsPhil Dawson2019-04-166-8/+8
| | | | | | | | | - Rename plugintestutils to testing. - Don't run the tests from bst-plugins-template. This imports buildstream.plugintestutils so will have to be disabled to get through CI. This can be re nabled once bst-plugins-template has been patched.
* testutils: move repo.py into buildstream.plugintestutilsPhil Dawson2019-04-122-3/+4
| | | | | | | | This needs to be exposed as part of the plugin author facing API so that plugin authors can define custom repo types which will can be passed to the set of tests which iterate over multiple source types. Part of the work towards #944
* tests: check source push for workspaced elementsRaoul Hidalgo Charman2019-03-251-0/+40
| | | | | | | Workspaced elements should not push their sources as consistency is marked as cached even if the sources are not necessarily available. Part of #440
* tests: check sources are pushed even if build failsRaoul Hidalgo Charman2019-03-254-0/+100
| | | | | | | Adds a plugin build element that always fails. The test tries to build an element of this kind. Part of #440
* tests: Add source cache push failure testRaoul Hidalgo Charman2019-03-251-0/+42
| | | | Part of #440
* tests: Add source cache pull after a push testRaoul Hidalgo Charman2019-03-251-0/+45
| | | | Part of #440
* tests: Add source cache push testRaoul Hidalgo Charman2019-03-251-0/+96
| | | | Part of #440
* tests: Add source cache fetch failure testRaoul Hidalgo Charman2019-03-251-0/+52
| | | | Part of #440
* tests: Add source cache test for fallbackRaoul Hidalgo Charman2019-03-251-0/+59
| | | | | | | Checks buildstream calls fetch method when remote source cache does not have a source. Part of #440
* tests: Add source cache fetch testRaoul Hidalgo Charman2019-03-251-0/+111
| | | | Part of #440
* element.py: move _generate_key to _source_cachedRaoul Hidalgo Charman2019-03-211-1/+1
| | | | | | This means that keys are only generated after tracking. Part of a fix for !1124
* tests:lint: disable 'unused-import' checks on pytest fixturesBenjamin Schubert2019-03-204-4/+4
| | | | | Pylint can't know that pytest's fixtures are used in a file and therefore reports false positives. Silencing all those errors
* tests:lint: silence redefined-outer-name in files using fixturesBenjamin Schubert2019-03-204-0/+16
| | | | | Pylint doesn't play well with pytest fixtures, we therefore need to silence this error.
* tests:lint: be explicit when not using a variableBenjamin Schubert2019-03-201-1/+0
| | | | Fix all pylint unused-variable issues
* tests:lint: reorder imports for consistencyBenjamin Schubert2019-03-202-2/+4
| | | | | - Remove all wrong-import-order from pylint - Order some subgroups of imports
* Source cache testsRaoul Hidalgo Charman2019-03-1415-0/+429
Few different source cache tests have been to check that sources are staged into the local CAS and fetched where appropriate Part of #440