depot/tools/depot-scanner, branch refs/r/8721 monorepo for the virus lounge http://code.tvl.fyi/depot/atom?h=refs%2Fr%2F8721 2022-12-26T11:16:39+00:00 chore(tools): remove depot-scanner & tvlc 2022-12-26T11:16:39+00:00 Vincent Ambo mail@tazj.in 2022-12-26T09:49:53+00:00 urn:sha1:c6cb13856549907729e76035c818303f3c1fd244 These are both unused things from a long time ago, which we don't need to keep around anymore. Their design doc has been marked as archived. Change-Id: Icd2744e511e78ec95ec8f39e5f79ed1fe98e9e4a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7639 Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> chore(buf): Use nixpkgs-provided buf 2022-10-21T18:39:03+00:00 Florian Klink flokli@flokli.de 2022-10-21T16:01:02+00:00 urn:sha1:6025242fc7bc8ef883547ef81959f271eb847083 The version of buf used is quite old. nixpkgs provides a more recent version, but it requires us to migrate config to the latest version. depot_scanner.proto doesn't honor some of the conventions, so we need allow_comment_ignores and drop a bunch of comments in there. Change-Id: Ic978fe92fb7c8471f58c137497528f18aad8f3ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/7053 Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: tazjin <tazjin@tvl.su> chore(gerrit): migrate OWNERS files to code-owners style 2022-09-19T11:13:28+00:00 Luke Granger-Brown git@lukegb.com 2022-09-19T02:53:03+00:00 urn:sha1:f190712b7f35988cbf8520f6794ea99e91b8a630 Change-Id: Iacc521dfdd4b4a2d5cef3920cf8189bcce35a488 style: format entire depot with nixpkgs-fmt 2022-01-31T16:11:53+00:00 Vincent Ambo mail@tazj.in 2022-01-30T16:06:58+00:00 urn:sha1:aa122cbae78ce97d60c0c98ba14df753d97e40b1 This CL can be used to compare the style of nixpkgs-fmt against other formatters (nixpkgs, alejandra). Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: cynthia <cynthia@tvl.fyi> Reviewed-by: edef <edef@edef.eu> Reviewed-by: eta <tvl@eta.st> Reviewed-by: grfn <grfn@gws.fyi> feat(depot-scanner): forward non-processed stderr output 2021-12-25T05:19:14+00:00 zseri zseri.devel@ytrizja.de 2021-12-24T09:22:51+00:00 urn:sha1:536f7c134a96b18a4771e33f9a1ba695f8fced5e previously, depot-scanner swallowed/ignored all non-processed stderr output of nix-instantiate, which makes diagnosing failures of nix-instantiate (e.g. failed with exit status 1) difficult. This commit fixes that by always forwarding the remaining stderr messages. Example previous error message: panic: nix-instantiate failed: exit status 1 goroutine 1 [running]: main.main() /nix/store/8vb2j13bd7j5ipl7dhsnwvgr7nrrsqsi-main.go:160 +0xeb4 Example new error message: nix-inst> error: unrecognised flag '--trace-file-access' nix-inst> Try '/run/current-system/sw/bin/nix-instantiate --help' for more information. panic: nix-instantiate failed: exit status 1 goroutine 1 [running]: main.main() /nix/store/qy7v79a3harddirzmc0432vbzqhyf91i-main.go:165 +0xeb4 Change-Id: I666f3490fc648f77a5384b95edd74f6115f7920d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4553 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> fix(depot-scanner): Reenable CI runs 2021-12-24T10:18:40+00:00 Vincent Ambo mail@tazj.in 2021-09-18T14:32:58+00:00 urn:sha1:29db849849fc6744812a1f68dea418cd6d650ca9 (zseri:) It seems like relativePath should be replaced with relativeFlag, as no variable with the former name exists, a boolean is as far as I can tell expected, and a boolean with a similar name exists. Lets give it a try in the CI. Change-Id: I0e7e522a41a517a38222dcda3b66731344613c1e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3581 Reviewed-by: tazjin <mail@tazj.in> Autosubmit: tazjin <mail@tazj.in> Tested-by: BuildkiteCI chore: Add meta.ci=false to various broken projects 2020-08-26T23:49:32+00:00 Vincent Ambo mail@tazj.in 2020-08-26T22:55:32+00:00 urn:sha1:7e6b3e1b428bd5ea860c05d0c5a71cd1ecd23364 These projects, which are not currently included in CI runs, don't build at the moment. Upcoming logic changes would mean that we would start including them in CI, which is undesirable until they're fixed - but I'm not going to be doing that now. Change-Id: I7c337e098be8bff00db6d99fc7236a695f5a85f5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1850 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com> feat(tools/tvlc): pass list of derivations to depot-scanner 2020-08-25T22:34:02+00:00 Kane York kanepyork@gmail.com 2020-08-21T01:15:33+00:00 urn:sha1:a9650041bb73366d9be73bcbe34faf8694f9aa2c You can now provide a list of Nix derivations to tvlc to get a git worktree + sparse-checkout containing only the paths needed to build the specified derivations. Known bugs: even though //third_party is only passed to readdir(), git doesn't know this and includes all of //third_party/*. Change-Id: I9dccebd3fbff4bb04ebd568175cf0a7e37d71ab3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1826 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> feat(tools/depot-scanner): init project 2020-08-20T03:05:40+00:00 Kane York kanepyork@gmail.com 2020-08-10T22:13:20+00:00 urn:sha1:dfc351b4634aff4c56a08ab4f47139ccaf6dc652 depot-scanner is a tool that runs Nix and parses the --trace-file-access output to deduce what files are necessary to evaluate a derivation. Take DEPOT_ROOT from the environment. If depotRoot doesn't exist, print an error early. Fix the build of the protobuf library. Switch to the GRPC build rule, as a service is in this proto file. Create the PathType enum and parse it from cmdline flags. Change-Id: I537b5c6bceecf76ca510f7ac04ab9dad7785feb1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1769 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: lukegb <lukegb@tvl.fyi>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<feed xmlns="http://www.w3.org/2005/Atom">
<title>depot/tools/depot-scanner, branch refs/r/8721</title>
<subtitle>monorepo for the virus lounge</subtitle>
<id>http://code.tvl.fyi/depot/atom?h=refs%2Fr%2F8721</id>
<link rel="self" href="http://code.tvl.fyi/depot/atom?h=refs%2Fr%2F8721"/>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/"/>
<updated>2022-12-26T11:16:39+00:00</updated>
<entry>
<title>chore(tools): remove depot-scanner & tvlc</title>
<updated>2022-12-26T11:16:39+00:00</updated>
<author>
<name>Vincent Ambo</name>
<email>mail@tazj.in</email>
</author>
<published>2022-12-26T09:49:53+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=c6cb13856549907729e76035c818303f3c1fd244"/>
<id>urn:sha1:c6cb13856549907729e76035c818303f3c1fd244</id>
<content type="text"> These are both unused things from a long time ago, which we don't need to keep around anymore. Their design doc has been marked as archived. Change-Id: Icd2744e511e78ec95ec8f39e5f79ed1fe98e9e4a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7639 Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> </content>
</entry>
<entry>
<title>chore(buf): Use nixpkgs-provided buf</title>
<updated>2022-10-21T18:39:03+00:00</updated>
<author>
<name>Florian Klink</name>
<email>flokli@flokli.de</email>
</author>
<published>2022-10-21T16:01:02+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=6025242fc7bc8ef883547ef81959f271eb847083"/>
<id>urn:sha1:6025242fc7bc8ef883547ef81959f271eb847083</id>
<content type="text"> The version of buf used is quite old. nixpkgs provides a more recent version, but it requires us to migrate config to the latest version. depot_scanner.proto doesn't honor some of the conventions, so we need allow_comment_ignores and drop a bunch of comments in there. Change-Id: Ic978fe92fb7c8471f58c137497528f18aad8f3ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/7053 Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: tazjin <tazjin@tvl.su> </content>
</entry>
<entry>
<title>chore(gerrit): migrate OWNERS files to code-owners style</title>
<updated>2022-09-19T11:13:28+00:00</updated>
<author>
<name>Luke Granger-Brown</name>
<email>git@lukegb.com</email>
</author>
<published>2022-09-19T02:53:03+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=f190712b7f35988cbf8520f6794ea99e91b8a630"/>
<id>urn:sha1:f190712b7f35988cbf8520f6794ea99e91b8a630</id>
<content type="text"> Change-Id: Iacc521dfdd4b4a2d5cef3920cf8189bcce35a488 </content>
</entry>
<entry>
<title>style: format entire depot with nixpkgs-fmt</title>
<updated>2022-01-31T16:11:53+00:00</updated>
<author>
<name>Vincent Ambo</name>
<email>mail@tazj.in</email>
</author>
<published>2022-01-30T16:06:58+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=aa122cbae78ce97d60c0c98ba14df753d97e40b1"/>
<id>urn:sha1:aa122cbae78ce97d60c0c98ba14df753d97e40b1</id>
<content type="text"> This CL can be used to compare the style of nixpkgs-fmt against other formatters (nixpkgs, alejandra). Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: cynthia <cynthia@tvl.fyi> Reviewed-by: edef <edef@edef.eu> Reviewed-by: eta <tvl@eta.st> Reviewed-by: grfn <grfn@gws.fyi> </content>
</entry>
<entry>
<title>feat(depot-scanner): forward non-processed stderr output</title>
<updated>2021-12-25T05:19:14+00:00</updated>
<author>
<name>zseri</name>
<email>zseri.devel@ytrizja.de</email>
</author>
<published>2021-12-24T09:22:51+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=536f7c134a96b18a4771e33f9a1ba695f8fced5e"/>
<id>urn:sha1:536f7c134a96b18a4771e33f9a1ba695f8fced5e</id>
<content type="text"> previously, depot-scanner swallowed/ignored all non-processed stderr output of nix-instantiate, which makes diagnosing failures of nix-instantiate (e.g. failed with exit status 1) difficult. This commit fixes that by always forwarding the remaining stderr messages. Example previous error message: panic: nix-instantiate failed: exit status 1 goroutine 1 [running]: main.main() /nix/store/8vb2j13bd7j5ipl7dhsnwvgr7nrrsqsi-main.go:160 +0xeb4 Example new error message: nix-inst> error: unrecognised flag '--trace-file-access' nix-inst> Try '/run/current-system/sw/bin/nix-instantiate --help' for more information. panic: nix-instantiate failed: exit status 1 goroutine 1 [running]: main.main() /nix/store/qy7v79a3harddirzmc0432vbzqhyf91i-main.go:165 +0xeb4 Change-Id: I666f3490fc648f77a5384b95edd74f6115f7920d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4553 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> </content>
</entry>
<entry>
<title>fix(depot-scanner): Reenable CI runs</title>
<updated>2021-12-24T10:18:40+00:00</updated>
<author>
<name>Vincent Ambo</name>
<email>mail@tazj.in</email>
</author>
<published>2021-09-18T14:32:58+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=29db849849fc6744812a1f68dea418cd6d650ca9"/>
<id>urn:sha1:29db849849fc6744812a1f68dea418cd6d650ca9</id>
<content type="text"> (zseri:) It seems like relativePath should be replaced with relativeFlag, as no variable with the former name exists, a boolean is as far as I can tell expected, and a boolean with a similar name exists. Lets give it a try in the CI. Change-Id: I0e7e522a41a517a38222dcda3b66731344613c1e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3581 Reviewed-by: tazjin <mail@tazj.in> Autosubmit: tazjin <mail@tazj.in> Tested-by: BuildkiteCI </content>
</entry>
<entry>
<title>chore: Add meta.ci=false to various broken projects</title>
<updated>2020-08-26T23:49:32+00:00</updated>
<author>
<name>Vincent Ambo</name>
<email>mail@tazj.in</email>
</author>
<published>2020-08-26T22:55:32+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=7e6b3e1b428bd5ea860c05d0c5a71cd1ecd23364"/>
<id>urn:sha1:7e6b3e1b428bd5ea860c05d0c5a71cd1ecd23364</id>
<content type="text"> These projects, which are not currently included in CI runs, don't build at the moment. Upcoming logic changes would mean that we would start including them in CI, which is undesirable until they're fixed - but I'm not going to be doing that now. Change-Id: I7c337e098be8bff00db6d99fc7236a695f5a85f5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1850 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com> </content>
</entry>
<entry>
<title>feat(tools/tvlc): pass list of derivations to depot-scanner</title>
<updated>2020-08-25T22:34:02+00:00</updated>
<author>
<name>Kane York</name>
<email>kanepyork@gmail.com</email>
</author>
<published>2020-08-21T01:15:33+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=a9650041bb73366d9be73bcbe34faf8694f9aa2c"/>
<id>urn:sha1:a9650041bb73366d9be73bcbe34faf8694f9aa2c</id>
<content type="text"> You can now provide a list of Nix derivations to tvlc to get a git worktree + sparse-checkout containing only the paths needed to build the specified derivations. Known bugs: even though //third_party is only passed to readdir(), git doesn't know this and includes all of //third_party/*. Change-Id: I9dccebd3fbff4bb04ebd568175cf0a7e37d71ab3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1826 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> </content>
</entry>
<entry>
<title>feat(tools/depot-scanner): init project</title>
<updated>2020-08-20T03:05:40+00:00</updated>
<author>
<name>Kane York</name>
<email>kanepyork@gmail.com</email>
</author>
<published>2020-08-10T22:13:20+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=dfc351b4634aff4c56a08ab4f47139ccaf6dc652"/>
<id>urn:sha1:dfc351b4634aff4c56a08ab4f47139ccaf6dc652</id>
<content type="text"> depot-scanner is a tool that runs Nix and parses the --trace-file-access output to deduce what files are necessary to evaluate a derivation. Take DEPOT_ROOT from the environment. If depotRoot doesn't exist, print an error early. Fix the build of the protobuf library. Switch to the GRPC build rule, as a service is in this proto file. Create the PathType enum and parse it from cmdline flags. Change-Id: I537b5c6bceecf76ca510f7ac04ab9dad7785feb1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1769 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: lukegb <lukegb@tvl.fyi> </content>
</entry>
</feed>