summaryrefslogtreecommitdiff
path: root/tests/cachekey/project/sources
Commit message (Collapse)AuthorAgeFilesLines
* element.py: change cache key dict fieldstraveltissues/cache-key-changesDarius Makovsky2019-07-1216-16/+16
| | | | relates to #1073
* Remove OSTree plugin; It lives now in the bst-plugins-experimental repoJavier Jardón2019-05-141-6/+0
|
* Bump artifact version for changes in symlink handlingJürg Billeter2019-02-1417-17/+17
|
* Cache Keys: Update to use JSON rather than pickledanielsilverstone-ct/json-cache-keyDaniel Silverstone2019-02-1417-17/+17
| | | | | | | | This affects the cache key version (updated to 7) and introduces a dependency on `ujson` which is BSD licenced as of the version locked in `requirements.txt` Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* utils.py: Return all directories in list_relative_paths()Jürg Billeter2019-02-132-2/+2
| | | | | | | | | | | | | | | Returning only empty directories leads to inconsistencies when computing a manifest by combining results from multiple list_relative_paths() calls as done by the compose plugin. I.e., the same directory may be empty in one dependency and non-empty in another dependency. The merged file list will still contain that directory even though it's no longer empty. This inconsistency causes problems when calculating differences between manifests. Returning all directories fixes these inconsistencies. This is a change in API behavior.
* projectconfig.yaml: Consistently include directories in split rulesJürg Billeter2019-02-1317-17/+17
| | | | | | | | | Most split rules already included the relevant directories themselves in addition to the directory contents. Add the missing bin, sbin, and libexec directories. This is required to fix tests with the following commit that changes list_relative_paths() to return all directories.
* _config.py: Use os and architecture settingsRaoul Hidalgo Charman2018-12-0517-17/+17
| | | | | | In element, platform asks for host os and architecture to default to when SandboxConfig is initialised. This changes element cache keys so those have been updated in the tests.
* git source plugin: Track git tags and save them to reproduce a minimum ↵Valentin David2018-12-052-0/+13
| | | | | | | | | | | | | | | shallow repository Instead of tag information being fetched which can change with time, they are tracked and saved in the projects.refs/.bst. Then we re-tag automatically the closest tag so that `git describe` works and is reproducible. This new feature is opt-in with the new `track-tags` configuration, and must be used to fix modules which are broken by our new policy of omitting the `.git/` repository when staging git sources. This fixes issue #487
* Bump Artifact VersionRichard Maw2018-09-1616-16/+16
| | | | | Since we now set PWD in the environment of builds existing builds may behave differently so must cache differently now.
* Add pip source pluginChandan Singh2018-08-152-0/+13
| | | | | | | | | | | `pip` source plugin can stage python packages that are either specified directly in the element definition or picked up from `requirements.txt` from previous sources. In order to support the latter use-case (which is also the primary motivation for this plugin), this plugin requires access to previous sources and hence is an example of a Source Transform source. Also, bump `BST_FORMAT_VERSION` as this patch adds a new core plugin.
* _project.py: Add fatal-warnings configuration itemJosh Smith2018-08-1515-15/+15
| | | | | | | | | | | | | | | | | | | | This allows for users to configure fatal-warnings to be either a list of warnings. This commit deprecates the use of fail-on-overlap within project.conf, this will now use the fatal-warnings configuration item. element.py: Cache key calculation now takes into account all of the fatal-warnings tests: This modifys the tests/frontend/overlaps.py tests to support the new fatal-warnings configuration. Backwards compatibility is also tested for `fail-on-overlap` _versions.py: BST_FORMAT_VERSION bumped to 15 for fatal-warnings BST_CORE_ARTIFACT_VERSION bumpted to 5 for fatal-warnings Fixes: #526
* remote source: Add cachekey testChandan Singh2018-08-134-0/+15
| | | | | Add cachekey tests for the recently added `remote` source plugin to ensure that future changes do not break API compatibility.
* Bump BST_CORE_ARTIFACT_VERSION for deterministic source pluginsValentin David2018-08-1213-13/+13
|
* Adding caching build treesPhillip Smyth2018-07-2313-13/+13
| | | | | buildstream/element.py: Adding build tree to cache buildstream/_versions.py: Bumping BST_CORE_ARTIFACT_VERSION
* tests/cachekey: Update expected cache keys after switch to CASJürg Billeter2018-07-1713-13/+13
|
* buildstream/_versions.py: Increment BST_CORE_ARTIFACT_VERSIONTristan Van Berkom2018-04-1113-13/+13
| | | | | Now that we've restructured the artifact metadata into separate files, we need to rev the artifact version.
* element.py, source.py: Cleanup how Source cache keys are calculated.Tristan Van Berkom2018-04-1113-13/+13
| | | | | | | | Recently after a refactor we kept the Source adding workspace keys to the source keys because, now clean this up to have the workspace key added directly in the Element cache key calculation. This breaks cache keys.
* tests/cachekey: Updating cache key test for new artifact versioncache-keys-os-archTristan Van Berkom2018-02-0713-13/+13
|
* tests/cachekey: Enhanced tests to consider local sources with multiple files.Tristan Van Berkom2018-01-102-2/+2
| | | | | | | We had a cache key instability issue with local sources generating inconsistent cache keys due to iterating over their files in a random order. Tests did not catch this previously due to the local source sample only using one file to iterate over.
* Updating all test cases for the removal of architecture conditionals and optionsTristan Van Berkom2017-11-0613-13/+13
|
* Add a new zip sourcezipMathieu Bridon2017-11-034-0/+13
| | | | This is equivalent to the tar source, but for Zip archives.
* tests/cachekey: Fixing cache key test after modifying project.conf default ↵Tristan Van Berkom2017-10-2111-22/+11
| | | | environment
* Add platform factoriesTristan Maat2017-09-2811-11/+22
|
* tests/cachekey: Adding cache key tests for new patch sourceTristan Van Berkom2017-09-096-0/+19
|
* tests/cachekey: Adding Cache Key testsTristan Van Berkom2017-09-0116-0/+54
This test should contain an entry for every element and source plugin in buildstream. Further, an entry should exist for every feature of every plugin which may effect cache key calculation. MANIFEST.in: Adding .expected files used in this test to the generated dist tarballs.