*** anjan-349 has joined #buildstream | 02:20 | |
*** anjan-349 has quit IRC | 02:20 | |
*** bochecha_ has joined #buildstream | 05:53 | |
jennis | tristan, tlater, no worries, I'll reimplement with the more specific error | 07:58 |
---|---|---|
*** Phil has joined #buildstream | 08:33 | |
*** bethw has joined #buildstream | 08:39 | |
gitlab-br-bot | buildstream: merge request (jennis/alternative_remote_expiry->master: Expire artifacts in the remote artifact cache) #477 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/477 | 08:42 |
*** jonathanmaw has joined #buildstream | 08:54 | |
*** dominic has joined #buildstream | 09:20 | |
*** Phil has quit IRC | 10:01 | |
*** Phil has joined #buildstream | 10:01 | |
*** jonathanmaw has quit IRC | 10:03 | |
*** jonathanmaw has joined #buildstream | 10:19 | |
*** Phil has quit IRC | 10:44 | |
*** Phil has joined #buildstream | 10:44 | |
laurence | Nexus, is this a WIP or can it be removed? https://gitlab.com/BuildStream/buildstream/merge_requests/482 | 11:15 |
Nexus | erm | 11:15 |
Nexus | let me check something | 11:15 |
gitlab-br-bot | buildstream: merge request (reduce_history_in_cache->master: WIP: Reduce history in cache) #482 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/482 | 11:25 |
Nexus | kk, just fixed a couple of points that were raised on it | 11:25 |
gitlab-br-bot | buildstream: merge request (reduce_history_in_cache->master: Reduce history in cache) #482 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/482 | 11:26 |
Nexus | WIP removed | 11:26 |
*** xjuan has joined #buildstream | 12:42 | |
gitlab-br-bot | buildstream: merge request (valentindavid/update_mirror->master: WIP: update mirror) #440 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/440 | 12:58 |
valentind | jonathanmaw, I have looked at your branch. I do not have comments yet. | 13:06 |
jonathanmaw | valentind: okie doke | 13:06 |
valentind | I think I do not like the side effect in translate_url. And this iteration on all combination of mirrors. But I understand the reason. I think there should have been a change in the plugin API. | 13:08 |
valentind | I wonder what it means to have a source plugin requiring different alias prefixes. Then failing on some download and restart all download on another combination. | 13:09 |
valentind | It might end up trying downloading multiple times on a mirror that is down. | 13:11 |
jonathanmaw | valentind: yep, that's a possibility. The worst case is a source that fetches from multiple aliases (e.g. something complicated with submodules) when most of the mirrors are down, at which point it tries to fetch exhaustively with a lot of combinations | 13:16 |
valentind | jonathanmaw, I think it would have been nice to make plugin register some small objects that take care of downloading different resource, and return them. Objects that has an alias name, and you can call a method with the value for the alias which does the download. | 13:18 |
valentind | But that would require changes in source plugins. | 13:18 |
*** bethw has quit IRC | 13:21 | |
*** bethw has joined #buildstream | 13:50 | |
jonathanmaw | valentind: hrm, a smaller API change which would reduce the amount of bad fetching would be to have sources able to raise an exception that contains the alias that didn't work | 13:54 |
jonathanmaw | passing in the alias overrides in the `fetch` and `track` methods would be nicer than passing in the overrides at source creation time, but I think a lot of our sources are written with the assumption that the URL to fetch from is constant, and defined at configure time. | 14:02 |
valentind | jonathanmaw, passing an alias override to fetch would still consider that fetch should download all resources for an alias from a same mirror. | 14:07 |
gitlab-br-bot | buildstream: merge request (make->master: Add a kind for Make) #483 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/483 | 14:08 |
gitlab-br-bot | buildstream: merge request (make->master: Add a kind for Make) #483 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/483 | 14:09 |
jonathanmaw | valentind: ah yes, since an alias is a server, and it's possible the server is missing one repo but not all of them | 14:13 |
jonathanmaw | :/ | 14:13 |
jonathanmaw | I'd have to go back to generating combinations for each URL and passing those in as overrides | 14:24 |
valentind | In this case yes. | 14:26 |
jennis | Is there a way to retrieve project.conf settings in a plugin? | 14:38 |
jonathanmaw | jennis: plugins have the _get_project() method | 14:39 |
jonathanmaw | though how the settings are stored internally varies | 14:39 |
tlater | jennis: I thought you were looking specifically for options? | 14:40 |
tlater | arches, actually | 14:40 |
jennis | yes but I assumed if you could get the project.conf you could then work your way from there | 14:41 |
tlater | Probably, but if there's specific API it would be nicer to use that :) | 14:42 |
jennis | Does anyone know if the above exists? | 14:43 |
gitlab-br-bot | buildstream: merge request (jmac/cas_virtual_directory->master: WIP: CAS-backed virtual directory implementation) #481 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/481 | 15:01 |
noisecell | hi, when building https://gitlab.com/baserock/definitions/blob/master/elements/systems/minimal-system-image-x86_64.bst, and after mounting it, I discover that /sbin is linked to /usr/bin instead of /usr/sbin. https://paste.baserock.org/nolafigohu. is sbin and bin unified on buildstream or is this an error? | 15:30 |
*** Phil has quit IRC | 15:32 | |
tlater | valentind: Do you happen to know what the appropriate fix for this would be: https://gitlab.com/BuildStream/buildstream/issues/380 ? | 15:34 |
tlater | I've heard from a couple of people that they keep running into this | 15:34 |
tlater | Despite tristan's claims that it's practically impossible ;) | 15:35 |
tlater | Would like to push a fix so I can just tell them to update to the latest version | 15:35 |
*** xjuan has quit IRC | 15:35 | |
valentind | tlater, easy to reproduce. | 15:41 |
valentind | It is not practically impossible. | 15:43 |
tlater | Haha, well, tristan meant that it's unlikely for anyone to actually run into | 15:44 |
tlater | But apparently people do, so I'd like to fix it asap | 15:44 |
gitlab-br-bot | buildstream: merge request (jmac/cas_virtual_directory->master: WIP: CAS-backed virtual directory implementation) #481 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/481 | 15:47 |
jonathanmaw | jennis: fix dpkg plugin seems to have passed in CI, and looks okay to me (or okay as anything does when it has to do access _BuildElement__commands to work). Once this local test run has passed, I'll merge it. | 15:50 |
jennis | Ok sweet | 15:50 |
* jonathanmaw mashes the merge button | 15:54 | |
gitlab-br-bot | buildstream: merge request (jmac/cas_virtual_directory->master: WIP: CAS-backed virtual directory implementation) #481 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/481 | 16:01 |
gitlab-br-bot | buildstream: merge request (jmac/cas_virtual_directory->master: WIP: CAS-backed virtual directory implementation) #481 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/481 | 16:01 |
gitlab-br-bot | buildstream: merge request (make->master: Add a kind for Make) #483 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/483 | 16:23 |
gitlab-br-bot | buildstream: merge request (edbaunton/make-element->master: Add a kind for Make) #484 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/484 | 16:28 |
gitlab-br-bot | buildstream: merge request (make->master: Add a kind for Make) #483 changed state ("closed"): https://gitlab.com/BuildStream/buildstream/merge_requests/483 | 16:29 |
*** dominic has quit IRC | 16:30 | |
valentind | tlater, If you want to reproduce you can just run "git tag --delete $(git tag)" | 16:32 |
tlater | valentind: I know how to reproduce it, I'm just not sure what the proper fix is. What version do we want buildstream to think it is if there are no tags? | 16:33 |
valentind | tlater, For me it happened because I always do "git pull" and not "git fetch". And pull does not take tags. | 16:33 |
valentind | tlater, The one that is taken is fine. But we should not fail on parsing it. | 16:34 |
valentind | 0+untagged | 16:34 |
tlater | Right, that makes sense | 16:34 |
tlater | I'll see if I can whip up a patch for it :) | 16:34 |
valentind | I wonder if there is a way to store or override the version. Because when making a source package, we lose the git history. | 16:35 |
valentind | Otherwise package maintainers will get angry. | 16:35 |
tlater | I think we used to have a file that literally just specified the buildstream version | 16:36 |
tlater | This whole versioneer thing is quite new | 16:36 |
paulsherwood | version of what? | 16:46 |
gitlab-br-bot | buildstream: merge request (valentindavid/331_include->master: WIP: Add support for include in project.conf) #471 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/471 | 16:47 |
tlater | paulsherwood: Buildstream tries to figure out its own version using git tags | 16:47 |
paulsherwood | why does it need that? | 16:47 |
* tlater is not sure about the details of how this works | 16:47 | |
tlater | I think it's for logging? But I'm not even sure about that | 16:48 |
tlater | In either case, it's buggy and can currently cause crashes. I'd like to fix that, because it's embarrassing as hell that an odd git clone can cause bst to crash... | 16:48 |
* paulsherwood is absolutely sure it would be a bad idea to have a file defining the version | 16:48 | |
paulsherwood | FWIW ybd always reports its own version, using git describe | 16:49 |
tlater | paulsherwood: What do you do if the .git directory is gone? | 16:49 |
paulsherwood | good question... checking | 16:51 |
tlater | That's what we're debating right now :) Buildstream also uses git in this way atm | 16:51 |
valentind | Typically, when running "python3 setup.py sdist", we should generate the file and put it in the generated source tarball, and make sure to read it if we find it but not .git. | 16:51 |
tlater | Yeah, that sounds sensible | 16:53 |
paulsherwood | tlater: ybd reports 'no tag found' i believe | 16:54 |
tlater | Hm, that sounds like a packaging nightmare | 16:54 |
paulsherwood | +1 for valentind's idea, then | 16:55 |
tlater | bst currently crashes if .git is missing, but will report 0+unidentified soon enough | 16:55 |
tlater | Then we can consider sdists... | 16:55 |
paulsherwood | why can't the .git be installed with the package, so this never breaks? :-) | 16:56 |
valentind | Because distributions do not like binary files. | 16:57 |
tlater | It also makes little sense to keep the entire VC history in a package whose source code the end user will never touch | 16:57 |
jmac | What's the problem with using a file for the version? | 16:57 |
*** tristan has joined #buildstream | 16:59 | |
paulsherwood | jmac: just me being opinionated | 16:59 |
* paulsherwood worries that it will end up not getting updated in some situations | 16:59 | |
tlater | jmac: IMO the version file should be automatically generated | 17:00 |
tlater | For ^ reason :) | 17:00 |
tlater | But we have sdist in place for that | 17:00 |
tristan | valentind, fwiw versioneer is basically doing exactly that | 17:02 |
tristan | it'll use git where available and the version encoded into the package metadata otherwise, as I understand it | 17:02 |
tlater | Ah, so the *only* case in which we have a problem is if it reports 0+untagged because the local git repository hasn't copied tags | 17:03 |
tristan | the old thing we were using pre-versioneer, had the side effect of only ever reporting the version that it was at `python3 setup.py install` time | 17:03 |
tristan | tlater, there is that weird case which pops up yeah | 17:03 |
* tlater wonders if we should report an encoded version in that case, instead | 17:04 | |
tristan | tlater, there is no encoded version at that time; the user simply lacks enough info | 17:04 |
tristan | either the user gets git with the tags, or a dist tarball | 17:05 |
tlater | That's a bit annoying... Well, I suppose at least we can make it not crash. | 17:05 |
tristan | is there a reason why git repo without tag info is a case that should be supported ? | 17:05 |
tristan | tlater, a check in setup.py would probably be good yeah | 17:06 |
*** bethw has quit IRC | 17:06 | |
tlater | tristan: Well, the reason is that it's embarrassing when buildstream crashes because the user used an odd git command | 17:07 |
* tlater has also been asked why their builstream didn't work by 4 independent people who've managed to get a tag-less bst at this point | 17:08 | |
*** xjuan has joined #buildstream | 17:08 | |
tlater | If we don't support it, we should at least have a reasonable error message, rather than a cryptic stacktrace ;p | 17:09 |
tristan | tlater, do we have a ticket for it ? | 17:12 |
tlater | tristan: https://gitlab.com/BuildStream/buildstream/issues/380 | 17:12 |
tristan | I think valentind entered it yeah | 17:12 |
tlater | I asked because I wanted to write a patch, just wanted to check what expected behavior is first :) | 17:13 |
tristan | tlater, identify that that is the cause of the error, and print a user friendly error message without stack trace is perfect :) | 17:13 |
tristan | tlater, note depending on where this happens, raising AppError() is enough to have a clean exit with nicely formatted message | 17:14 |
tristan | this might happen before that, though | 17:14 |
valentind | If we could fail early saying you need to run "git fetch", that would be just what we need. | 17:19 |
tlater | Yeah, I think that's the best solution, too | 17:21 |
gitlab-br-bot | buildstream: merge request (tristan/remove-version-deadcode->master: _frontend/app.py: Remove unused variable at global scope) #485 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/485 | 17:23 |
*** tiago has quit IRC | 17:25 | |
tlater | Hm, I have no idea how to write a test case for this | 17:28 |
tlater | I suppose it's not really that important... | 17:29 |
gitlab-br-bot | buildstream: merge request (328-support-for-downloading-sources-from-mirrors->master: WIP: Resolve "Support for downloading sources from mirrors") #404 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/404 | 17:32 |
gitlab-br-bot | buildstream: merge request (jmac/cas_virtual_directory->master: WIP: CAS-backed virtual directory implementation) #481 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/481 | 17:41 |
*** jonathanmaw has quit IRC | 17:42 | |
gitlab-br-bot | buildstream: merge request (tristan/remove-version-deadcode->master: _frontend/app.py: Remove unused variable at global scope) #485 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/485 | 17:52 |
gitlab-br-bot | buildstream: merge request (edbaunton/make-element->master: Add a kind for Make) #484 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/484 | 17:57 |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path in pipeline summary) #486 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 17:57 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: WIP: _project.py: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 17:59 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: WIP: _project.py: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 18:26 |
gitlab-br-bot | buildstream: merge request (edbaunton/make-element->master: Add a kind for Make) #484 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/484 | 18:28 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: WIP: _project.py: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 18:30 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: _project.py: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 18:30 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 18:30 |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path in pipeline summary) #486 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 18:32 |
gitlab-br-bot | buildstream: merge request (tristan/make-element->master: Post merge changes to the make element) #487 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/487 | 19:05 |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path in pipeline summary) #486 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 19:25 |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path when failing to load elements) #486 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 19:26 |
*** cs_shadow has joined #buildstream | 19:27 | |
*** xjuan has quit IRC | 19:53 | |
gitlab-br-bot | buildstream: merge request (tristan/make-element->master: Post merge changes to the make element) #487 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/487 | 20:25 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 20:58 |
*** tristan has quit IRC | 21:03 | |
*** tristan has joined #buildstream | 21:07 | |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path when failing to load elements) #486 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 21:27 |
gitlab-br-bot | buildstream: issue #396 ("BuildStream is not reporting element-path in the startup summary") changed state ("closed") https://gitlab.com/BuildStream/buildstream/issues/396 | 22:10 |
gitlab-br-bot | buildstream: merge request (chandan/396-element-path-summary->master: _loader/loader.py: Report element-path when failing to load elements) #486 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/486 | 22:10 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: Allow running bst commands from subdirectories of project root) #428 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 22:10 |
*** tristan has quit IRC | 22:16 | |
*** xjuan has joined #buildstream | 22:56 | |
*** xjuan has quit IRC | 22:58 | |
*** cs_shadow has quit IRC | 23:15 | |
*** bochecha_ has quit IRC | 23:29 | |
gitlab-br-bot | buildstream: issue #368 ("Allow running bst commands from project sub-directories") changed state ("closed") https://gitlab.com/BuildStream/buildstream/issues/368 | 23:51 |
gitlab-br-bot | buildstream: merge request (chandan/368-bst-from-project-subdir->master: Allow running bst commands from subdirectories of project root) #428 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/428 | 23:51 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!