summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* requirements/requirements.in: require Click >= 7.0abderrahim/protobuf-versionAbderrahim Kitouni2019-01-281-1/+1
| | | | This is needed since 629a6e524, and was lost in the conversion to requirements.in
* requirements/requirements.in: require protobuf >= 3.6Abderrahim Kitouni2019-01-281-1/+1
| | | | This is needed since 0f2bc3754
* Merge branch 'tpollard/829' into 'master'Tom Pollard2019-01-283-30/+94
|\ | | | | | | | | | | | | Download buildtrees on demand for bst shell --use-buildtree Closes #829 See merge request BuildStream/buildstream!1050
| * Download buildtrees on demand for bst shell --use-buildtreetpollard/829Tom Pollard2019-01-283-29/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide bst shell --use-buildtree the ability to attempt to acquire missing buildtrees, given respective option, user pull-buildtree context and remote availability. _frontend/cli.py: Refactor logic for determining --use-buildtree option with given opportunity to attempt pulling a non-local buildtree. Element loaded with artifact_config to allow remote querying. _stream.py: With given user option and element state, construct PullQueue to fetch remote buildtree. Continue or Error without buildtree if cannot be attained. tests/integration/build-tree.py: Update to support new usecases
| * _stream.py: Add use_artifact_config opt arg for load_selection()Tom Pollard2019-01-281-2/+5
|/ | | | | use_artifact_config added as an optional default arg, allowing for loading of given elements artifact remote config.
* Merge branch 'aevri/bst_track_guidance' into 'master'Angelos Evripiotis2019-01-2813-18/+18
|\ | | | | | | | | Fixup refs to 'bst track' and 'bst fetch' See merge request BuildStream/buildstream!1086
| * Fixup refs to 'bst fetch'Angelos Evripiotis2019-01-283-4/+4
| | | | | | | | | | Now that 'bst fetch' is obsolete, change guidance to refer to the replacement 'bst source fetch' instead.
| * Fixup refs to 'bst track'Angelos Evripiotis2019-01-2812-13/+13
| | | | | | | | | | Now that 'bst track' is obsolete, change guidance to refer to the replacement 'bst source track' instead.
| * news: fix 'osbolete' spellingAngelos Evripiotis2019-01-281-1/+1
|/
* Merge branch 'chandan/toxic-man' into 'master'Tristan Van Berkom2019-01-2629-145/+122
|\ | | | | | | | | | | | | Generate man pages using tox & update them Closes #880 and #881 See merge request BuildStream/buildstream!1107
| * setup.py: Do not error out when man directory is empty/missingchandan/toxic-manChandan Singh2019-01-251-2/+6
| | | | | | | | | | | | | | | | | | | | If the `man` directory is empty, then it won't be copied in the source distribution, and `list_man_pages()` will throw an exception when trying to list files in a non-existent directory. This prevents us from installing the BuildStream package when the man pages are not there. The most common use-case for this is when we want to re-generate the man pages but want to install the package before re-generating them.
| * setup.py, CONTRIBUTING.rst: Recommend using tox to generate man pagesChandan Singh2019-01-252-10/+4
| | | | | | | | | | | | Simplify our docs, by requesting users to run `tox -e man` to update man pages, instead of manually installing `click-man` and running the command manually.
| * man: Refresh man pagesChandan Singh2019-01-2526-133/+102
| | | | | | | | | | | | | | | | | | | | Notable changes: * New `source` and `artifact` command groups * Man pages corresponding to obsolete commands, that were marked as hidden in Click, have now been removed. Fixes #881.
| * tox.ini: Add environment to update man pagesChandan Singh2019-01-251-0/+10
|/ | | | | | Previously, one had to manually install `click-man` package, and remember to run the correct command. Now, we can simply run `tox -e man` to update the man pages.
* Merge branch 'tristan/cache-quota-max-only' into 'master'Tristan Van Berkom2019-01-254-24/+63
|\ | | | | | | | | | | | | _artifactcache.py: Don't require the quota to be available on disk. Closes #869 and #733 See merge request BuildStream/buildstream!1106
| * _artifactcache.py: Don't require the quota to be available on disk.tristan/cache-quota-max-onlyTristan Van Berkom2019-01-254-24/+63
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead only rely on the headroom to be enough to protect against out of space conditions. The headroom can become configurable as a separate step is required. The changes to achieve this are: * Rename ArtifactCache.has_quota_exceeded() to ArtifactCache.full(). * ArtifactCache.full() now also reports True if the available space on the artifact cache volume is smaller than the headroom. This ensures jobs get triggered to cleanup the cache when reaching the end of the disk. * When loading the artifact quota, it is now only an error if the quota exceeds the overall disk space, not if it does not fit in the available space. It is still a warning if the quota does not fit in the available space on the artifact cache volume. * Updated scheduler.py and buildqueue.py for the API rename * tests: Updated the artifactcache/expiry.py test for its expectations in this regard. Added a new test to test an error when quota was specified to exceed total disk space, and adjusted the existing tests to expect a warning when the quota does not fit in the available space. This fixes issue #733 and #869.
* Merge branch 'jennis/add_new_profile_topic' into 'master'James Ennis2019-01-253-0/+17
|\ | | | | | | | | Add new 'scheduler' and 'load-selection' profiling topics See merge request BuildStream/buildstream!1088
| * _profile.py: Update copyright statementjennis/add_new_profile_topicJames Ennis2019-01-251-0/+2
| |
| * _profile.py: Added a new profiling topic, load-selectionJames Ennis2019-01-252-0/+8
| | | | | | | | | | profile_start() and profile_end() calls have been added to Stream.load_selection()
| * _profile.py: Added a new profiling topic, schedulerJames Ennis2019-01-252-0/+7
|/ | | | | profile_start() and profile_end() calls have been incorporated into Scheduler.run()
* Merge branch 'tristan/cache-management-logging' into 'master'Tristan Van Berkom2019-01-2410-63/+260
|\ | | | | | | | | Cache management logging enhancements See merge request BuildStream/buildstream!1105
| * _artifactcache.py: Correcting API documenting comment for remove()Tristan Van Berkom2019-01-241-2/+1
| | | | | | | | | | | | This seems to have been copy/pasted from cascache, and documents the function to possibly return None if defer_prune was specified, but this function does not expose defer_prune.
| * _scheduler/jobs/cleanupjob.py: Update cache size while processingTristan Van Berkom2019-01-241-1/+14
| | | | | | | | | | | | Updates the known cache size in the main process while the cleanup process is ongoing, so that the status indicators update live while the cleanup happens.
| * _scheduler/jobs/job.py: Allow subclasses to message the frontendTristan Van Berkom2019-01-241-19/+50
| |
| * _artifactcache.py: Added client progress callback to ArtifactCache.clean()Tristan Van Berkom2019-01-241-1/+12
| |
| * _artifactcache.py: Add status messages in cache management operationsTristan Van Berkom2019-01-241-5/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | Added some useful status messages when: * Calculating a new artifact cache usage size * Starting a cleanup * Finishing a cleanup Also enhanced messaging about what was cleaned up so far when aborting a cleanup.
| * _frontend/status.py: Added Cache size usage indicator to status barTristan Van Berkom2019-01-241-7/+35
| | | | | | | | | | This also adds some comments around the main status bar heading rendering function.
| * _frontend/widget.py: Added cache usage entry in the startup headingTristan Van Berkom2019-01-241-0/+1
| |
| * _context.py: Added get_artifact_cache_usage()Tristan Van Berkom2019-01-241-1/+11
| | | | | | | | | | | | | | | | A frontend facing API for obtaining usage statistics. I would have put this on Stream instead, but the Context seems to be the de facto place for looking up the artifact cache in general so let's put it here.
| * _artifactcache.py: Added ArtifactCacheUsage()Tristan Van Berkom2019-01-241-0/+35
| | | | | | | | | | A simple object which creates a snapshot of current usage statistics for easy reporting in the frontend.
| * _artifactcache.py: Refactored to use utils._get_volume_size()Tristan Van Berkom2019-01-243-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will benefit from a better UtilError being raised, and and turns the artifact cache's local function into a one liner. The loop which finds the first existing directory in the given path has been removed, being meaningless due to the call to os.makedirs() in ArtifactCache.__init__(). The local function was renamed to _get_cache_volume_size() and no longer takes any arguments, which is more suitable for the function as it serves as a testing override surface for unittest.mock(). The following test cases which use the function to override the ArtifactCache behavior have been updated to use the new overridable function name: tests/artifactcache/cache_size.py tests/artifactcache/expiry.py
| * utils.py: Add _get_volume_size()Tristan Van Berkom2019-01-241-2/+22
| | | | | | | | We can streamline this call to os.statvfs() in a few places.
| * _frontend/app.py: Initialize logging before preflighting the artifact cacheTristan Van Berkom2019-01-241-5/+7
|/ | | | The artifact cache emits messages, and we want to allow that in preflight.
* Merge branch 'tristan/cache-management' into 'master'Tristan Van Berkom2019-01-245-24/+141
|\ | | | | | | | | Cache management fixes See merge request BuildStream/buildstream!1091
| * tests/artifactcache/expiry.py: Test that expiry happens firsttristan/cache-managementTristan Van Berkom2019-01-241-0/+64
| |
| * _frontend/widget.py: Render core messages more like other messagesTristan Van Berkom2019-01-243-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to test when core activities occur by parsing the stderr in tests, we should make the messages conform more. At the same time, this restores alignment of columns in core messages with the element processing related messages. Also, _scheduler/scheduler.py is updated to make it's activity names conform to the (current) 5 character limit for the sake of alignment. The tests/frontend/logging.py test gets it's regexes updated for the log lines it checks for in stderr.
| * _scheduler/scheduler.py: Run cache size exclusively at startupTristan Van Berkom2019-01-241-2/+59
| | | | | | | | | | | | | | | | | | | | | | | | When running any session that has Queues which require Resource.CACHE, check if our loaded estimated size exceeds the quota, and if so; lock the Resource.CACHE resource exclusively right away and run an exclusive initial cache size job. This ensures we cleanup first before doing anything which might add to the cache at startup time, if deemed needed. This is a partial fix for issue #737
| * _scheduler/resources.py: Dont error out in unregister_exclusive_interest()Tristan Van Berkom2019-01-241-1/+1
|/ | | | | | Don't require the interest to be registered, just discard any interest, this function just sets a bit in a mask, and is not intended to maintain a balance like the reserve() function is.
* Merge branch 'issue-638-validate-all-files' into 'master'Jürg Billeter2019-01-2432-45/+519
|\ | | | | | | | | Add support for default targets See merge request BuildStream/buildstream!925
| * NEWS: Add entry for default target featurePhillip Smyth2019-01-241-0/+4
| |
| * tests/frontend/buildcheckout.py: Add default target test with junctionJürg Billeter2019-01-244-0/+56
| | | | | | | | | | Test that `bst build` does not fail in a project where the list of default targets includes a junction (junctions cannot be built).
| * tests/frontend/pull.py: Add default target test for bst push/pullJürg Billeter2019-01-241-0/+50
| |
| * tests/frontend/fetch.py: Add default target test for bst source fetchJürg Billeter2019-01-241-0/+35
| |
| * tests/frontend: Add default target tests for bst show and buildPhillip Smyth2019-01-2419-0/+179
| |
| * format_project.rst: Add documentation for default targetsJürg Billeter2019-01-241-0/+38
| |
| * _frontend/cli.py: Ignore junctions in default targets where appropriateJürg Billeter2019-01-241-2/+17
| | | | | | | | | | | | | | Junctions cannot be built, pulled, or pushed. Specifying a junction on the command line for these commands will result in an error. However, junctions may be in the list of default targets, so they need to be ignored for build, pull, and push commands.
| * _stream.py: Add ignore_junction_targets parameterJürg Billeter2019-01-241-0/+15
| | | | | | | | This filters out junctions from the list of targets.
| * _project.py: Add get_default_target() and get_default_targets() methodsJürg Billeter2019-01-243-41/+115
| | | | | | | | | | | | _frontend/cli.py: Use new methods. Based on patches by Phillip Smyth.
| * projectconfig.yaml: Add key for default targetsPhillip Smyth2019-01-242-1/+9
| | | | | | | | _versions.py: Bump format version
| * _frontend/cli.py: Guess element also for bst build --allJürg Billeter2019-01-241-1/+1
|/ | | | There is no reason to disallow guess_element() for bst build --all.