| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| | |
`utils.py`: Make `magic_timestamp` a public variable
See merge request BuildStream/buildstream!1369
|
|/
|
|
|
|
|
| |
Some plugin elements, such as docker-element and tar-element, require
to set `created` and/or `modified` meta-data fields. It would be nice
to use `magic_timestamp` to ensure these fields are being set in a
consistent and deterministic way.
|
|\
| |
| |
| |
| | |
Extract 'Messenger' from 'Context' and use directly
See merge request BuildStream/buildstream!1445
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Change the argument name on the 'silence' context manager, to avoid the
interpretation that non-nested messages may be silenced, or that it can
'un-silence' (it can't).
Be more specific about what 'important' means w.r.t. messages.
Require 'actually_silence' to be specified as a keyword, so that
callsites are easier to understand.
|
| |
| |
| |
| | |
Replace the _message_depth list with an int, "_silence_scope_depth".
|
| |
| |
| |
| |
| | |
Simplify by not calling _{push,pop}_message_depth outside of the silence
context manager, let that do the work instead.
|
| | |
|
| |
| |
| |
| | |
Use some Python features to make Messenger._message_depth a bit simpler.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reduce the amount of context shared with child jobs, by only sending the
messenger portion of it rather than the whole thing. Also send the
logdir.
This also means that we will need to pickle less stuff when using the
'spawn' method of multi-processing, as opposed to the 'fork' method.
|
| |
| |
| |
| |
| |
| | |
Instead of having methods in Context forward calls on to the Messenger,
have folks call the Messenger directly. Remove the forwarding methods in
Context.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Separate out the responsibility of messaging from the rest of the
Context object.
This change removes some member variables and some code from member
functions, but keeps the existing member functions. In later work we'll
want things to use the Messenger directly, so we can remove some member
functions too, and de-couple further.
Update some comments to refer to the "Messenger API" instead of the
"Context API" in the copied code.
Fixup the arg documentation to timed_activity() while we're there.
|
|\
| |
| |
| |
| | |
_scheduler: don't pass whole queue to child job
See merge request BuildStream/buildstream!1408
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Stop passing the scheduler's job queue's across to child jobs, via the
'action_cb' parameter. Instead pass a module-level function, which will
pickle nicely.
This isn't much of a problem while we are in the 'fork' multiprocessing
model. As we move towards supporting the 'spawn' model for win32, then
we need to consider what we will be pickling and unpickling, to cross
the process boundary.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
utils.py: Change permissions for rootpath in `_force_rmtree`
Closes #912
See merge request BuildStream/buildstream!1441
|
|/
|
|
|
| |
This is needed in the case where the temp directory permissions
are changed between creation and deletion.
|
|\
| |
| |
| |
| | |
element.py: Do not implicitly import sources into source cache
See merge request BuildStream/buildstream!1446
|
| |
| |
| |
| | |
This should always be handled by Element._fetch().
|
| |
| |
| |
| |
| |
| |
| |
| | |
If the junction source consistency is cached but the junction is not in
the source cache, also use Stream.fetch_subprojects() to import sources
into source cache instead of doing this implicitly in
Element._stage_sources_at(). This is in preparation for buildbox-casd,
which will disallow local CAS cache writes from the main process (gRPC).
|
|/
|
|
|
| |
The sources of a workspaced element may be inconsistent. Do not try
generating source cache keys.
|
|\
| |
| |
| |
| | |
Minor fixups in _context.py
See merge request BuildStream/buildstream!1443
|
| | |
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Add bst init argument
Closes #702
See merge request BuildStream/buildstream!1430
|
|/
|
|
|
|
|
| |
Calling runcli with project set to None results in
setting the directory to the string 'None'.
Instead, only set it when the given project argument is not None.
|
|\
| |
| |
| |
| |
| |
| | |
tar.py: Make link target renaming work between base-dirs
Closes #1052
See merge request BuildStream/buildstream!1431
|
|/
|
|
| |
Fixes #1052
|
|\
| |
| |
| |
| | |
platform: re-scope set_resource_limits
See merge request BuildStream/buildstream!1419
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Rename 'set_resource_limits' to 'maximize_open_file_limit', as this
seems to more accurately reflect it's function.
Remove unused flexibility from the implementation, to make it easier to
understand.
Simplify the Mac implementation, and add some explanation for the
OPEN_MAX magic number. In later work we should remove the magic number.
Import 'resource' late, which is not available on Windows.
|
|\
| |
| |
| |
| | |
cascache.py: pick some nits
See merge request BuildStream/buildstream!1433
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
Fetch sources as needed for bst source checkout
See merge request BuildStream/buildstream!1427
|
| | |
|
|/
|
|
|
| |
This removes the --fetch option of bst source checkout, always enabling
fetch support. This is in line with fetching subprojects as needed.
|
|\
| |
| |
| |
| |
| |
| | |
Capabilities service
Closes #915
See merge request BuildStream/buildstream!1410
|
| |
| |
| |
| |
| |
| | |
Not needed now that capabilities service is used.
Part of #915
|
| |
| |
| |
| |
| |
| |
| |
| | |
This is used in the remote initialisation to check that artifact service
is supported. This should allow us to seperate the endpoints of
different services more easily in future.
Part of #915
|
| |
| |
| |
| | |
Part of #915
|
| |
| |
| |
| | |
Part of #915
|
|/
|
|
| |
Part of #915
|
|\
| |
| |
| |
| |
| |
| | |
README.rst: Fix path for badge images
Closes #1056
See merge request BuildStream/buildstream!1422
|
|/
|
|
|
|
|
|
|
|
|
| |
These badges are not committed to `bst-1.2` branch and hence are not
available on docs.buildstream.build website.
As it was mentioned in the issue comments, the correct place to obtain
these badges is always from the `master` branch, which is what the
buildstream.gitlab.io/buildstream website corresponds to.
Fixes #1056.
|
|\
| |
| |
| |
| | |
.gitignore: Fix path of .egg-info
See merge request BuildStream/buildstream!1420
|
|/
|
|
|
|
| |
.egg-info directory is created next to setup.py and not inside the src
directory, so restore its original path. This line was incorrectly
modified as part of !1322.
|
|\
| |
| |
| |
| | |
Do not leak subproject remotes
See merge request BuildStream/buildstream!1416
|
| |
| |
| |
| |
| |
| | |
project_overrides and project_extra_specs were moved in 24c0de16.
However, their removal was accidentally reverted in f4dbce44.
This patch removes the unnecessary code.
|
| |
| |
| |
| |
| | |
Assert that junction elements are pushed to a parent project's
cache. This is the current default behaviour in BuildStream.
|