summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Testbschubert/test-skipsBenjamin Schubert2019-10-0947-180/+180
|
* _fuse/mount.py: Monitor the fuse process while waiting for the mountbschubert/fuse-permissionsBenjamin Schubert2019-10-091-14/+35
| | | | | | | | | | | In some cases, users might not have permissions to use fuse, or fuse might crash. This was previously leading to a hanged process and, with chance an error message on the UI, which could be overwritten. This ensures we are explicitely monitoring the fuse process while waiting and adds better reporting of the fuse errors.
* Merge branch 'bschubert/fix-overnight' into 'master'Javier Jardón2019-10-091-3/+3
|\ | | | | | | | | | | | | .gitlab-ci.yml: Bump versions for overnight tests Closes #1090 See merge request BuildStream/buildstream!1631
| * .gitlab-ci.yml: Bump versions for overnight testsBenjamin Schubert2019-10-091-3/+3
|/ | | | | This fixes the overnight tests by updating the freedesktop-sdk and the bst-plugins-experimental version
* Merge branch 'bschubert/fix-empty-buildtree' into 'master'bst-marge-bot2019-10-083-2/+47
|\ | | | | | | | | | | | | _artifactcache.py: Don't push artifact blobs when no files are present Closes #1145 See merge request BuildStream/buildstream!1630
| * _artifactcache.py: Don't push artifact blobs when no files are presentBenjamin Schubert2019-10-083-2/+47
|/ | | | | | | | | | Previously, if an artifact proto had no files at all in it, we would fail at pushing it, making BuildStream crash. When no files are part of an artifact proto, we can short-circuit the call and avoid pushing them unecessarily. - Add a test to ensure this doesn't come back.
* Merge branch 'bschubert/casd-listen-failures' into 'master'bst-marge-bot2019-10-083-2/+44
|\ | | | | | | | | | | | | Listen for casd failures and abort the run when they happen Closes #1157 See merge request BuildStream/buildstream!1620
| * _scheduler.py: Listen for buildbox-casd failure and terminateBenjamin Schubert2019-10-083-2/+44
|/ | | | | | | This adds a listener on the scheduler's event loop to ensure that the buildbox-casd process stays alive during the run. If that fails, terminate all running processes, we know they can't succeed anyways and exit accordingly.
* Merge branch 'bschubert/fix-windows-symlink' into 'master'bst-marge-bot2019-10-082-1/+16
|\ | | | | | | | | tests/frontend/buildcheckout.py: Create required symlinks on the fly See merge request BuildStream/buildstream!1629
| * tests/frontend/buildcheckout.py: Create required symlinks on the flybschubert/fix-windows-symlinkBenjamin Schubert2019-10-082-1/+16
|/ | | | | | | | | Windows checks out symlinks as a file with content is the path of the symlink. This makes it impossible to mount the buildstream folder in a docker container and run the tests. This removes the symlink, and creates it on the fly for tests that use it, which fixes the problem.
* Merge branch 'traveltissues/1159' into 'master'bst-marge-bot2019-10-083-10/+10
|\ | | | | | | | | | | | | Defer workspace source commits Closes #1159 See merge request BuildStream/buildstream!1628
| * Defer committing workspace files to cachetraveltissues/1159Darius Makovsky2019-10-083-10/+10
|/ | | | | | | | | Remove XFAIL mark from test_workspace_visible and remove the explicit SourceCache.commit() in the workspace source plugin. Allow buildstream to handle the commit logic. Add handling for non-cached workspace sources in `source.Source._generate_keys()`.
* Merge branch 'bschubert/fix-xdg-temppaths' into 'master'bst-marge-bot2019-10-083-8/+23
|\ | | | | | | | | setup.cfg: Fix xdg env vars to not affect the host See merge request BuildStream/buildstream!1627
| * setup.cfg: Fix xdg env vars to not affect the hostbschubert/fix-xdg-temppathsBenjamin Schubert2019-10-083-8/+23
|/ | | | | | | | | | | | | | | | A fix was made in https://gitlab.com/BuildStream/buildstream/merge_requests/1244 in order to set xdg_* env variables inside of the test's directory to avoid importing data from the host. There was however still two problems: - When a variable was not set, it was set with a relative path, which would create a configuration for BuildStream that is invalid. - When a variable was set and running with pytest directly, we would still use the variable's value, which would be the host one. This ensure this can never happen, by not relying on the same variable's name and always overriding them.
* Merge branch 'aevri/no_win32_fcntl' into 'master'bst-marge-bot2019-10-081-9/+18
|\ | | | | | | | | cli.py: no fcntl on Windows See merge request BuildStream/buildstream!1623
| * cli.py: no fcntl on WindowsAngelos Evripiotis2019-10-081-9/+18
|/ | | | | | | | | | | | | Work around the fact that we can't import 'fcntl' on Windows, and confine the workaround to as small a scope as we can. This enables us to run at least these commands on Windows: bst help bst init We can't run any commands that require a Platform object though, which is most commands.
* Merge branch 'bschubert/propagate-log-level-to-casd' into 'master'bst-marge-bot2019-10-073-4/+23
|\ | | | | | | | | | | | | Propagate buildstream's log level to buildbox-casd Closes #1155 See merge request BuildStream/buildstream!1621
| * cascache.py: add a 'log_level' parameter and use it to run buildbox-casdBenjamin Schubert2019-10-073-4/+23
|/ | | | | | | | | | This changes how we instantiate the CASCache by reusing the log level parameters from BuildStream and forward them to buildbox-casd. By default, buildbox-casd will now have '--log-level warning', and --verbose will enable 'info' and --debug will enable 'trace'. This way, we can easily tweak buildbox-casd's verbosity
* Merge branch 'chiaratolentino/fix-docs' into 'master'bst-marge-bot2019-10-0710-12/+14
|\ | | | | | | | | | | | | Fix incorrectly displaying bst output in docs Closes #1141 See merge request BuildStream/buildstream!1626
| * doc/Makefile: exit 1 if running bst command failschiaratolentino/fix-docsctolentino82019-10-071-3/+1
| |
| * doc/bst2html.py: Error out if bst command in doc failsctolentino82019-10-071-2/+5
| |
| * doc/sessions/junctions.run: Fix typo in 'remove-dir' optionctolentino82019-10-071-1/+1
| |
| * Update doc commands to use 'artifact checkout'ctolentino82019-10-071-1/+1
| |
| * Update doc commands to use 'source fetch'ctolentino82019-10-075-5/+5
| |
| * tox.ini: Add bst-plugins-experimental to docs depsctolentino82019-10-071-0/+1
|/
* Merge branch 'traveltissues/benchmark' into 'master'Darius Makovsky2019-10-0631-95/+73
|\ | | | | | | | | | | | | element.py: remove call to _source_cached() Closes #1150 and #1143 See merge request BuildStream/buildstream!1612
| * element.py: remove call to _source_cached()traveltissues/benchmarkDarius Makovsky2019-10-0530-29/+29
| | | | | | | | | | | | | | Remove call to Element._source_cached() in _calculate_cache_key and do not recalculate workspace keys. tests: shell browsing of workspaces is currently broken
| * element.py: remove concept of key instabilityDarius Makovsky2019-10-052-66/+44
|/ | | | | | | Workspace keys are determined by contained files at time of opening and are not forcibly reset tests: workspaces have keys when they're opened and are not recalculated
* Merge branch 'bschubert/casd-sigint' into 'master'bst-marge-bot2019-10-041-5/+11
|\ | | | | | | | | | | | | Better SIGINT handling for CASD Closes #1120 See merge request BuildStream/buildstream!1625
| * cascache.py: Block SIGINT in the CasUsageMonitor processBenjamin Schubert2019-10-041-2/+5
| | | | | | | | | | | | We don't want this process to be killed if someones CTRL+C BuildStream and the continues the build. We can therefore just ignore SIGINT there.
| * cascache.py: Block SIGINT in the buildbox-casd processBenjamin Schubert2019-10-041-3/+6
|/ | | | | | We don't want SIGINT to be forwarded to the buildbox-casd process, otherwise it would get killed if someone CTRL+C the BuildStream process and then continues the build, which would make everything fail.
* Merge branch 'aevri/job_sort_imports' into 'master'bst-marge-bot2019-10-041-4/+4
|\ | | | | | | | | _scheduler/jobs/job.py: sort imports See merge request BuildStream/buildstream!1622
| * _scheduler/jobs/job.py: sort importsAngelos Evripiotis2019-10-041-4/+4
|/
* Merge branch 'bschubert/casd-logs' into 'master'bst-marge-bot2019-10-042-3/+83
|\ | | | | | | | | | | | | cascache.py: Save casd logs in a file for retrieval Closes #1156 See merge request BuildStream/buildstream!1616
| * cascache.py: Show path to log file when buildbox-casd doesn't exit normallyBenjamin Schubert2019-10-041-2/+12
| |
| * cascache.py: Save casd logs in a file for retrievalBenjamin Schubert2019-10-042-1/+71
|/ | | | | Save all casd logs in a log file under its cas/ directory, and keep only the last 10 of them.
* Merge branch 'jjardon/overnigth_casd_already' into 'master'bst-marge-bot2019-10-031-3/+0
|\ | | | | | | | | Revert ".gitlab-ci.yml: overnigth tests need buildbox-casd" See merge request BuildStream/buildstream!1619
| * Revert ".gitlab-ci.yml: overnigth tests need buildbox-casd"Javier Jardón2019-10-041-3/+0
|/ | | | | | | The docker image already have this, see commit 23c66d2bd397b84c8905fa16027e0ba163d1b4cd This reverts commit 99b0117a7d5d4b053c91d00f6e7117b007e4f72e.
* Merge branch 'jjardon/overnigth_casd' into 'master'bst-marge-bot2019-10-031-0/+3
|\ | | | | | | | | .gitlab-ci.yml: overnigth tests need buildbox-casd See merge request BuildStream/buildstream!1618
| * .gitlab-ci.yml: overnigth tests need buildbox-casdJavier Jardón2019-10-041-0/+3
|/
* Merge branch 'jjardon/overnigth_bst2' into 'master'bst-marge-bot2019-10-031-2/+2
|\ | | | | | | | | .gitlab-ci.yml: Use latest fdsdk patches and bst-plugins-experimental for overnigth tests See merge request BuildStream/buildstream!1617
| * .gitlab-ci.yml: Use latest fdsdk patches and bst-plugins-experimentalJavier Jardón2019-10-041-2/+2
|/ | | | | | This will not fix the CI but at least we can see what is the actual error when trying to build (Rigth now It doesn't build at all because the format version is not compatible)
* Merge branch 'bschubert/ensure-buildbox-alive' into 'master'bst-marge-bot2019-10-022-17/+116
|\ | | | | | | | | Report when Buildbox-casd is not alive at the end of a run See merge request BuildStream/buildstream!1605
| * cascache.py: Send message in case of unclean termination of buildbox-casdBenjamin Schubert2019-10-022-2/+90
| | | | | | | | | | | | | | This adds messages in the various mis-termination of Buildbox-casd, to notify users that something might have gone wrong there. It also adds a few tests to validate the various behaviors.
| * cascache.py: Extract buildbox-casd termination in its own methodBenjamin Schubert2019-10-021-17/+28
|/
* Merge branch 'tlater/fix-casdless-completion' into 'master'bst-marge-bot2019-10-022-3/+9
|\ | | | | | | | | | | | | Do not check for casd in bash completion Closes #1149 See merge request BuildStream/buildstream!1615
| * Do not check for casd in bash completionTristan Maat2019-10-022-3/+9
|/ | | | | | | | | This caused stacktraces when a user didn't have buildbox-casd installed, even though it wasn't required for completion, even for artifacts. It does add a slightly ugly parameter to Context, long-term it might make sense to create a special slimmed-down context for completion.
* Merge branch 'juerg/capture-tree' into 'master'bst-marge-bot2019-10-023-73/+65
|\ | | | | | | | | | | | | Use buildbox-casd CaptureTree() to import directories Closes #1132 See merge request BuildStream/buildstream!1611
| * _casbaseddirectory.py: Use CASCache.import_directory()juerg/capture-treeJürg Billeter2019-10-021-56/+13
| |
| * cascache.py: Add import_directory() methodJürg Billeter2019-10-021-0/+35
| | | | | | | | | | This allows import of a whole directory tree with a single gRPC call to buildbox-casd CaptureTree() instead of importing files one at a time.