[Notes] [Git][BuildStream/buildstream][valentindavid/crash_in_scheduler_857] 5 commits: news: fix 'osbolete' spelling



Title: GitLab

Valentin David pushed to branch valentindavid/crash_in_scheduler_857 at BuildStream / buildstream

Commits:

14 changed files:

Changes:

  • NEWS
    ... ... @@ -20,7 +20,7 @@ buildstream 1.3.1
    20 20
         an element's sources and generated build scripts you can do the command
    
    21 21
         `bst source-checkout --include-build-scripts --tar foo.bst some-file.tar`
    
    22 22
     
    
    23
    -  o BREAKING CHANGE: `bst track` and `bst fetch` commands are now osbolete.
    
    23
    +  o BREAKING CHANGE: `bst track` and `bst fetch` commands are now obsolete.
    
    24 24
         Their functionality is provided by `bst source track` and
    
    25 25
         `bst source fetch` respectively.
    
    26 26
     
    

  • buildstream/_gitsourcebase.py
    ... ... @@ -605,7 +605,7 @@ class _GitSourceBase(Source):
    605 605
                     detail = "The ref provided for the element does not exist locally " + \
    
    606 606
                              "in the provided track branch / tag '{}'.\n".format(self.tracking) + \
    
    607 607
                              "You may wish to track the element to update the ref from '{}' ".format(self.tracking) + \
    
    608
    -                         "with `bst track`,\n" + \
    
    608
    +                         "with `bst source track`,\n" + \
    
    609 609
                              "or examine the upstream at '{}' for the specific ref.".format(self.mirror.url)
    
    610 610
     
    
    611 611
                     self.warn("{}: expected ref '{}' was not found in given track '{}' for staged repository: '{}'\n"
    

  • buildstream/_loader/loader.py
    ... ... @@ -557,7 +557,7 @@ class Loader():
    557 557
                             ticker(filename, 'Fetching subproject from {} source'.format(source.get_kind()))
    
    558 558
                         source._fetch(sources[0:idx])
    
    559 559
                     else:
    
    560
    -                    detail = "Try fetching the project with `bst fetch {}`".format(filename)
    
    560
    +                    detail = "Try fetching the project with `bst source fetch {}`".format(filename)
    
    561 561
                         raise LoadError(LoadErrorReason.SUBPROJECT_FETCH_NEEDED,
    
    562 562
                                         "Subproject fetch needed for junction: {}".format(filename),
    
    563 563
                                         detail=detail)
    
    ... ... @@ -565,7 +565,7 @@ class Loader():
    565 565
                 # Handle the case where a subproject has no ref
    
    566 566
                 #
    
    567 567
                 elif source.get_consistency() == Consistency.INCONSISTENT:
    
    568
    -                detail = "Try tracking the junction element with `bst track {}`".format(filename)
    
    568
    +                detail = "Try tracking the junction element with `bst source track {}`".format(filename)
    
    569 569
                     raise LoadError(LoadErrorReason.SUBPROJECT_INCONSISTENT,
    
    570 570
                                     "Subproject has no ref for junction: {}".format(filename),
    
    571 571
                                     detail=detail)
    

  • buildstream/_pipeline.py
    ... ... @@ -373,7 +373,7 @@ class Pipeline():
    373 373
                         if source._get_consistency() == Consistency.INCONSISTENT:
    
    374 374
                             detail += "    {} is missing ref\n".format(source)
    
    375 375
                     detail += '\n'
    
    376
    -            detail += "Try tracking these elements first with `bst track`\n"
    
    376
    +            detail += "Try tracking these elements first with `bst source track`\n"
    
    377 377
     
    
    378 378
                 raise PipelineError("Inconsistent pipeline", detail=detail, reason="inconsistent-pipeline")
    
    379 379
     
    
    ... ... @@ -406,7 +406,7 @@ class Pipeline():
    406 406
                         if source._get_consistency() != Consistency.CACHED:
    
    407 407
                             detail += "    {}\n".format(source)
    
    408 408
                     detail += '\n'
    
    409
    -            detail += "Try fetching these elements first with `bst fetch`,\n" + \
    
    409
    +            detail += "Try fetching these elements first with `bst source fetch`,\n" + \
    
    410 410
                           "or run this command with `--fetch` option\n"
    
    411 411
     
    
    412 412
                 raise PipelineError("Uncached sources", detail=detail, reason="uncached-sources")
    

  • buildstream/_scheduler/scheduler.py
    ... ... @@ -314,10 +314,10 @@ class Scheduler():
    314 314
         #    job (Job): The job to spawn
    
    315 315
         #
    
    316 316
         def _spawn_job(self, job):
    
    317
    -        job.spawn()
    
    318 317
             self._active_jobs.append(job)
    
    319 318
             if self._job_start_callback:
    
    320 319
                 self._job_start_callback(job)
    
    320
    +        job.spawn()
    
    321 321
     
    
    322 322
         # Callback for the cache size job
    
    323 323
         def _cache_size_job_complete(self, status, cache_size):
    

  • buildstream/plugins/elements/junction.py
    ... ... @@ -79,7 +79,7 @@ depend on a junction element itself.
    79 79
     
    
    80 80
        Therefore, if you require the most up-to-date version of a subproject,
    
    81 81
        you must explicitly track the junction element by invoking:
    
    82
    -   `bst track JUNCTION_ELEMENT`.
    
    82
    +   `bst source track JUNCTION_ELEMENT`.
    
    83 83
     
    
    84 84
        Furthermore, elements within the subproject are also not tracked by default.
    
    85 85
        For this, we must specify the `--track-cross-junctions` option. This option
    
    ... ... @@ -93,7 +93,7 @@ cached yet. However, they can be fetched explicitly:
    93 93
     
    
    94 94
     .. code::
    
    95 95
     
    
    96
    -   bst fetch junction.bst
    
    96
    +   bst source fetch junction.bst
    
    97 97
     
    
    98 98
     Other commands such as ``bst build`` implicitly fetch junction sources.
    
    99 99
     
    
    ... ... @@ -146,7 +146,7 @@ class JunctionElement(Element):
    146 146
     
    
    147 147
         def get_unique_key(self):
    
    148 148
             # Junctions do not produce artifacts. get_unique_key() implementation
    
    149
    -        # is still required for `bst fetch`.
    
    149
    +        # is still required for `bst source fetch`.
    
    150 150
             return 1
    
    151 151
     
    
    152 152
         def configure_sandbox(self, sandbox):
    

  • buildstream/plugins/sources/bzr.py
    ... ... @@ -46,7 +46,7 @@ bzr - stage files from a bazaar repository
    46 46
        # but revisions on a branch are of the form
    
    47 47
        # <revision-branched-from>.<branch-number>.<revision-since-branching>
    
    48 48
        # e.g. 6622.1.6.
    
    49
    -   # The ref must be specified to build, and 'bst track' will update the
    
    49
    +   # The ref must be specified to build, and 'bst source track' will update the
    
    50 50
        # revision number to the one on the tip of the branch specified in 'track'.
    
    51 51
        ref: 6622
    
    52 52
     
    

  • buildstream/plugins/sources/deb.py
    ... ... @@ -34,7 +34,7 @@ deb - stage files from .deb packages
    34 34
        kind: deb
    
    35 35
     
    
    36 36
        # Specify the deb url. Using an alias defined in your project
    
    37
    -   # configuration is encouraged. 'bst track' will update the
    
    37
    +   # configuration is encouraged. 'bst source track' will update the
    
    38 38
        # sha256sum in 'ref' to the downloaded file's sha256sum.
    
    39 39
        url: upstream:foo.deb
    
    40 40
     
    

  • buildstream/plugins/sources/git.py
    ... ... @@ -112,7 +112,7 @@ git - stage files from a git repository
    112 112
        #     o Enable `track-tags` feature
    
    113 113
        #     o Set the `track` parameter to the desired commit sha which
    
    114 114
        #       the current `ref` points to
    
    115
    -   #     o Run `bst track` for these elements, this will result in
    
    115
    +   #     o Run `bst source track` for these elements, this will result in
    
    116 116
        #       populating the `tags` portion of the refs without changing
    
    117 117
        #       the refs
    
    118 118
        #     o Restore the `track` parameter to the branches which you have
    

  • buildstream/plugins/sources/remote.py
    ... ... @@ -37,7 +37,7 @@ remote - stage files from remote urls
    37 37
        # executable: true
    
    38 38
     
    
    39 39
        # Specify the url. Using an alias defined in your project
    
    40
    -   # configuration is encouraged. 'bst track' will update the
    
    40
    +   # configuration is encouraged. 'bst source track' will update the
    
    41 41
        # sha256sum in 'ref' to the downloaded file's sha256sum.
    
    42 42
        url: upstream:foo
    
    43 43
     
    

  • buildstream/plugins/sources/tar.py
    ... ... @@ -33,7 +33,7 @@ tar - stage files from tar archives
    33 33
        kind: tar
    
    34 34
     
    
    35 35
        # Specify the tar url. Using an alias defined in your project
    
    36
    -   # configuration is encouraged. 'bst track' will update the
    
    36
    +   # configuration is encouraged. 'bst source track' will update the
    
    37 37
        # sha256sum in 'ref' to the downloaded file's sha256sum.
    
    38 38
        url: upstream:foo.tar
    
    39 39
     
    

  • buildstream/plugins/sources/zip.py
    ... ... @@ -29,7 +29,7 @@ zip - stage files from zip archives
    29 29
        kind: zip
    
    30 30
     
    
    31 31
        # Specify the zip url. Using an alias defined in your project
    
    32
    -   # configuration is encouraged. 'bst track' will update the
    
    32
    +   # configuration is encouraged. 'bst source track' will update the
    
    33 33
        # sha256sum in 'ref' to the downloaded file's sha256sum.
    
    34 34
        url: upstream:foo.zip
    
    35 35
     
    

  • doc/source/format_project_refs.rst
    ... ... @@ -21,9 +21,9 @@ When a ``project.refs`` file is in use, any source references found
    21 21
     in the :ref:`inline source declarations <format_sources>` are considered
    
    22 22
     invalid and will be ignored, and a warning will be emitted for them.
    
    23 23
     
    
    24
    -When ``bst track`` is run for your project, the ``project.refs`` file
    
    24
    +When ``bst source track`` is run for your project, the ``project.refs`` file
    
    25 25
     will be updated instead of the inline source declarations. In the absence
    
    26
    -of a ``project.refs`` file, ``bst track`` will create one automatically
    
    26
    +of a ``project.refs`` file, ``bst source track`` will create one automatically
    
    27 27
     with the tracking results.
    
    28 28
     
    
    29 29
     An interesting property of ``project.refs`` is that it allows for
    

  • tests/frontend/completions.py
    ... ... @@ -160,7 +160,7 @@ def test_options(cli, cmd, word_idx, expected):
    160 160
         ('bst show --deps b', 3, ['build ']),
    
    161 161
         ('bst show --deps=b', 2, ['build ']),
    
    162 162
         ('bst show --deps r', 3, ['run ']),
    
    163
    -    ('bst track --deps ', 3, ['all ', 'none ']),
    
    163
    +    ('bst source track --deps ', 4, ['all ', 'none ']),
    
    164 164
     ])
    
    165 165
     def test_option_choice(cli, cmd, word_idx, expected):
    
    166 166
         assert_completion(cli, cmd, word_idx, expected)
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]