/srv/irclogs.ubuntu.com/2020/05/29/#launchpad-dev.txt

tomwardillwgrant: do you know much about our CSS build pipeline and why it's structured the way it is?08:39
tomwardillsomething something 'components are odd'08:39
wgranttomwardill: I don't. The most recent serious contact I had with our CSS was before I was with the company, laughing at the silly idea of redesigning the whole thing in one month.08:40
tomwardillah, right08:40
wgrant... they did it and you see the result.08:40
wgrantColin might have touched it a bit more recently.08:41
wgrantBut I haven't made non-trivial changes in a decade.08:41
tomwardillwe appear to rewrite all the URLs in the CSS, which means the plan to just do a straight node-sass concatentation doesn't work.08:41
tomwardillI was wondering if something along the lines of a collectstatic approach might be better08:41
wgrantIs the rewriting thing just for absolute icing paths, or something else?08:42
tomwardillthe former I think08:43
tomwardillat the point of concatenation, we grab all the CSS files from components and yui, then rewrite any urls in the CSS (for icons, etc) to point at the right place08:43
tomwardillthen do the concat08:43
tomwardillbut there's also something to do with revision numbers that I don't quite understand yet08:44
SpecialK|Canonpure guess but prepending revision number to output paths so users get stable UI experience?08:46
wgrantRight, outside dev we always prefix media with a path containing revinfo and Expires: 5eva08:47
wgrant(there should be an RFC for that)08:47
tomwardillyeah, that makes sense08:48
tomwardilldoesn't always seem to apply though08:48
tomwardillI may well be reading the access logs wrong however08:48
wgrantSome HTML or JS likely uses non-revved paths because it's lazy08:51
tomwardillbefore swearing a lot and trying to work out why your fixed code is still generation 404s, ensure that the file actually exists on disk and that you haven't rm'd it and not regerated it14:04
tomwardillI'M LOOKING AT YOU, bg_steps-estatus.gif'14:04
ilasc:)14:07
ilascnice one14:07
tomwardillcan someone re-review https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/384706 given the last commit is a change in behaviour and is new since ilasc looked at it last.14:17
* pappacena checking14:18
tomwardillpappacena: it might be worth starting the branch (via checkout, make clean, make run) and clicking some pages14:21
tomwardilland checking the logs for 404s14:21
* pappacena 👍14:21
tomwardillentirely possible it's still broken and I've just missed some14:21
pappacenait depends on this one, right? https://code.launchpad.net/~twom/lp-source-dependencies/+git/lp-source-dependencies/+merge/38464314:35
tomwardilloh, ydx14:36
tomwardill*yes14:36
* pappacena pulling it!14:36
tomwardillpappacena: you may need to apt upgrade nodejs too14:42
pappacenaShould it work with `$ node --version` == v8.10.0 ?14:43
pappacenabecause apparently it worked oO14:43
tomwardillah yes, that is the updated version14:53
tomwardill(origianl is v4)14:53
tomwardillSpecialK|Canon: I have no idea what longopts is15:03
tomwardillotherwise, maybe?15:03
SpecialK|Canontomwardill: ah sorry! --help vs -h15:03
tomwardillah, fair15:03
SpecialK|Canon(I had to look up `ln -n`)15:04
tomwardilloh, I wasn't going to change that one (it's copy+paste fromt he block above it)15:05
SpecialK|Canonfair enough!15:05
tomwardillthere's perhaps a job in going through the Makefile for that though15:05
SpecialK|CanonSure, no biggie, I just like/encourage the general convention15:06
tomwardillI've changed the one on the node-sass line to `--recursive` over `-r` though15:06
tomwardillwell, this is a fun diff, but transcription to SCSS: https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/38483415:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!