Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 30 17:18
    peterebden opened #887
  • Mar 29 09:15

    peterebden on master

    Give slightly more useful infor… (compare)

  • Mar 29 08:26

    the-hogfather on v14.3.7

    (compare)

  • Mar 29 08:20

    peterebden on master

    14.3.7 (compare)

  • Mar 29 08:08

    peterebden on master

    Fix plz init (#886) * Add a te… (compare)

  • Mar 29 08:08
    peterebden closed #886
  • Mar 28 11:49
    peterebden opened #886
  • Mar 28 09:45

    peterebden on master

    fix: use unified class and file… (compare)

  • Mar 28 09:45
    peterebden closed #885
  • Mar 28 09:45
    peterebden commented #885
  • Mar 28 09:03
    noxxious opened #885
  • Mar 27 11:30
    macripps added as member
  • Mar 27 11:20
    macripps labeled #866
  • Mar 27 11:20
    macripps labeled #857
  • Mar 27 11:18
    macripps assigned #866
  • Mar 27 11:18
    macripps commented #866
  • Mar 27 11:17
    macripps labeled #876
  • Mar 27 11:16
    macripps labeled #875
  • Mar 27 11:16
    macripps labeled #874
  • Mar 27 11:16
    macripps labeled #873
seekerr
@seekerr_twitter
Ah gotcha, thanks so much!
Adirelle
@Adirelle
hello there, is it possible to generate rules using a list comprehension, like [genrule(...) for item in list] ?
Adirelle
@Adirelle
oh, I see, I have to assign it so it gets eval'ed
Peter Ebden
@peterebden
yep it is exactly possible to do that - I guess if you don't assign it maybe it gets optimised out
possibly it shouldn't do that for a non-trivial comprehension though
sarvi
@sarvi
does please build support cross-compiler toolchains ?
and disitributed bulds that ca leverage a cluster
I am evaluating different build system needs to support distributed builds, cross-compile toolchain and caching. Bazel is one of the canndaidates and but not fond of having to have jre and its startup and memory implications
I like please seems similar but written in golang. But I can't tell much about how actively the developmennt community is around it
sarvi
@sarvi
The functionality we need, that I can't seem figure from the documentation , if it is supported ie. please can build. 1. cross compiling different CPU architectures. 2. Building a platform/package that can contain multiple libraries/components meant for different CPU architectures. 3. Distributed Builds that can be run on multiple remote compute nodes(This, I think is "remote" and is marked experimental
Peter Ebden
@peterebden
cross-compiling yes; we have some support described here: https://please.build/cross_compiling.html
it's stopped being a priority for us internally but support isn't going to go away (although it might need some more polish in places)
Distributed builds are in active development at the moment
unfortunately it's taking a while, among other things we decided to use Google's RE API for it which has been very complicated to integrated
Mitch Davis
@mitchelldavis
Would anyone like to help me with an error I can't get past?
Emma Y
@StreamTwilight_twitter
Hello , is there any example to using PLZ to build node.js ?
Ernst de Ridder
@hnridder
There's a pleasings js repo. Is it any help?
Emma Y
@StreamTwilight_twitter
@hnridder ,is there any example about PLZ for nodejs? sorry newbie in both nodejs and PLZ
Ernst de Ridder
@hnridder
Take a look at the pleasing js repo, https://github.com/thought-machine/pleasings/tree/master/js . You can use them with subinclude('///pleasings//js'), see https://please.build/pleasings.html
Gytis Raciukaitis
@noxxious
@peterebden could you push a new release for please, we could benefit from the #870 to make coverage useful with tools like codecov
thanks
Peter Ebden
@peterebden
Sure, will do
have been tracking a bug in the last release, but the fix is taking too long so I'll roll that back for now
Gytis Raciukaitis
@noxxious
thanks
Gytis Raciukaitis
@noxxious
awesome
Sebastian Nowak
@sebastian-nowak
hey, is there a way for the gentest rule to rerun the test if a transitive dependency changes?
afaik it caches results based on stuff in data and the test script generated by cmd
the data doesn't seem to respect need_transitive_deps
I was thinking I could use $(hash ...) to force my .sh file to change, but it doesn't account for transitive deps too
Sebastian Nowak
@sebastian-nowak
it's actually an issue that affects binaries in general, I've been trying to figure out how to create them to respect transitive deps and I'm hitting a wall every time
it's easy to do for regular builds, needs_transitive_deps work well but when I start dealing with binaries that are run during build it gets messy
it would be great if someone could point me in the right direction, especially with the gentest thing
Sebastian Nowak
@sebastian-nowak
I'm beginning to think that whenever I create a binary, I should be somehow computing a hash of all deps and transitive deps and put that in .sh, but it wouldn't be efficient
Gytis Raciukaitis
@noxxious
@peterebden one more small fix to coverage reports #885
Ernst de Ridder
@hnridder
@sebastian-nowak Maybe if you duplicate the data as deps?
Sebastian Nowak
@sebastian-nowak
It doesn't work :/ It reruns the cmd, but it produces the same .sh no matter how transitive deps look like. So when it runs the test, the cmd output is the same as before, the data is the same as before (it doesn't count transitive deps) and it reuses the cached result instead of running the test again
I think a method similar to $(hash ...) would be very useful, if it would return a hash of the input, not of the output
Then I could add it to the cmd to include the hash in the .sh
Peter Ebden
@peterebden
yeah needs_transitive_deps literally applies to deps, not data (or anything else like srcs etc)
I suppose we could add a needs_transitive_data flag as well
you might be able to get the effect you want using stamp = True, needs_transitive_deps = True and echoing $STAMP into the binary
I think that would work
Sebastian Nowak
@sebastian-nowak
Thanks, I never heard about stamp before, I don't think it's documented. What does it do? I'm guessing it's a hash of the rule's input or something like that?
Peter Ebden
@peterebden
yes, and the rule itself & any relevant config
Sebastian Nowak
@sebastian-nowak
Awesome, sounds exactly what I need. Thanks again, I'll give it a try later today
Peter Ebden
@peterebden
Cool, hope it works!
Ernst de Ridder
@hnridder
can all build_rule arguments (like stamp) be applied to any other rule, or only some select few?
Peter Ebden
@peterebden
only a few
if you made say a python_binary stamped it wouldn't do anything with the variables