while (true) {

hanser

Ars Legatus Legionis
43,847
Subscriptor++
Man it has been a week, or maybe two.

Anyone in the development space not inventorying their supply chains, and creating sane auto-update processes is setting themselves up to fight fires all the time for the next 18 months or so. It should be pushed into the build process as a build failure to not address these things immediately. It's EVERY developer's responsibility.

Anyone not doing the same on the operations side (OS updates, browser updates, other software updates + enforcement) is also setting themselves up for heroics for however long this lasts.

All I have done for the last 2 weeks is security. Security at the perimeter. Security at the identity layer. Security at the base infrastructure layer. Security in software supply chains. Security automation in base OS and/or base container images.

We've increased what we're logging from some layers of the platform that haven't really mattered before, because we're seeing breadcrumbs from increasingly-sophisticated probes of our infra that are being caught by these layers where we haven't seen it before, and now we need a way to both quantify and qualify it, so we're building that observability.

Today and next week is more security: already inventoried roles that shape RBAC in our platform, and there's a bunch of findings in there that will need to be burned down. We have a whole-ass AWS account/environment that's NOT on the aforementioned auto-updating train that I inventoried yesterday, and there's a bunch of findings THERE that I need to address.

We burn them down one by one, finding by finding. Relentless.


No breaches. No privilege escalations. No data leakage. But definitely some things that should have been caught in the first or second layers that got further than they should have. I closed a bunch of those yesterday. I had ChatGPT Pro make me an exhaustive list of patterns and antipatterns for each layer of our onion, and then fed that to Astra Ultra to audit and inventory, and then turned that into a backlog of hypotheses to check and either close or remediate. The list is huge. Your org's list is probably bigger than ours. You just have to make sure it's been written down, otherwise outsiders are going to write the list for you. I used half my $200 Codex quota on like... 3 of those inventories. Absolutely worth it. So glad I did it.

Now I'm punching out the backlog one by one. My infra engineer has taken the more complicated identity backlog, and he's doing the same, one by one. "Can you help me with X?" "No, sorry. Ask me next week."

Good intentions + YOLO isn't sufficient anymore. The sophistication of these probes is too high, and only going to get worse. You have to be boring and systematic. Emphasis on systematic.
 

svdsinner

Ars Legatus Legionis
15,152
Subscriptor
Quick process question to see if anyone has a good solution:
  • Medium sized team (3-4 devs, 1-2 testers, UX dedsigner) doing new UI development of a major application off of Figma mockup.
  • Roughly 1-3 big PRs and 3-7 small bug fix or clean-up PRs per week.
  • Not using Agile sprints, so we don't have written user stories, just the Figma mockups
  • Jiras only create for bug fixes that got beyond the developers and were reported by testers
The issue we want to improve is to create a pipeline to our testers that says "These are the areas we just wrote and need your initial testing." to help guide testing and make sure that no broken functionality slipping into the code base. (Testers are already testing major functionality at the end of milestones. This new pipeline is to have earlier non-developer eyes looking at the newest code.)
The question is: How do we get this pipeline going in the simplest, least bureaucratic way possible? Does anyone have a system they like for something like this? To be clear, "Make a full Jira for every single PR" is NOT the answer. (Full Jiras already have a testing pipeline)
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
"Make a full Jira for every single PR" is NOT the answer.
Why is it not the answer? I will create a Jira ticket if I want to change so much as a line ending. Every change goes through the full workflow. It's not hard, at least not if your process is reasonably lean, and not once you get used to it.

(Full Jiras already have a testing pipeline)
So you already have a process, and a pipeline, and want to invent a second one of each?
 
  • Like
Reactions: Pino90

svdsinner

Ars Legatus Legionis
15,152
Subscriptor
Why is it not the answer? I will create a Jira ticket if I want to change so much as a line ending. Every change goes through the full workflow. It's not hard, at least not if your process is reasonably lean, and not once you get used to it.
Two issues with Jiras-for-everything.
  1. Our Jira system only allows 3 levels of nesting. The project is level one. The 8 major sections of the app are sub-tasks of it (level 2) The chunks of code that get worked on in sprint-sized pieces are sub-tasks of level 2 (Level 3) Our Jira system doesn't allow us to break Level 3 tasks into further sub tasks. Stupid limitation of our Jira system.
  2. I don't think "Create a full Jira for everything, including minor things like cleanup of line endings" and "your process is reasonably lean" can exist together in the same world. One excludes the other.
 
  • Like
Reactions: bjn

rain shadow

Ars Tribunus Angusticlavius
6,679
Subscriptor++
Two issues with Jiras-for-everything.
  1. Our Jira system only allows 3 levels of nesting. The project is level one. The 8 major sections of the app are sub-tasks of it (level 2) The chunks of code that get worked on in sprint-sized pieces are sub-tasks of level 2 (Level 3) Our Jira system doesn't allow us to break Level 3 tasks into further sub tasks. Stupid limitation of our Jira system.
  2. I don't think "Create a full Jira for everything, including minor things like cleanup of line endings" and "your process is reasonably lean" can exist together in the same world. One excludes the other.
The merging from that 2nd level back into main/master is where you should track changes. Branches under branches can just be collected under a Jira sprint item.

But I do Jiras-for-everything because if I don't document something, QA will see any change in behavior or output as a regression or bug and it will come back to me. If they can see from the Jira item it was an intentional change then they don't bother me about it.

If your QA is more casual or is automated, then it's not so critical.
 
Last edited:

rain shadow

Ars Tribunus Angusticlavius
6,679
Subscriptor++
I will create a Jira ticket if I want to change so much as a line ending.
True story, my boss edited an include file using visual studio, which silently changed the line endings for the whole file from LF to CRLF, not just the part he changed. He checked it in and it broke the build.

Turns out one of the existing #defines (which he didn't edit) spanned multiple lines and an old sun studio compiler would only allow backslash line continuation in a macro when it was \<lf> not \<cr><lf>.

It happened right after we converted from svn to git, so the svn magic thing that always corrected the linefeeds wasn't set up in git yet.
 

gregatron5

Ars Legatus Legionis
13,003
Subscriptor++
If you're not willing to or can't change Jira, your only other option is a separate workflow.

Pick some issue tracker or kanban-style thing and track actual changes there. Or use whatever issue tracker your git provider has built in (assuming it has one). Worst case, create a Confluence page for each Figma effort where PRs and their functionality are logged.
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
Our Jira system only allows 3 levels of nesting. The project is level one. The 8 major sections of the app are sub-tasks of it (level 2) The chunks of code that get worked on in sprint-sized pieces are sub-tasks of level 2 (Level 3) Our Jira system doesn't allow us to break Level 3 tasks into further sub tasks. Stupid limitation of our Jira system.
Ok, let's work within this framework.

First, if your Jira set-up isn't working well for you, you may want to consider pushing for change in this area. Jira is technically pretty malleable, but the real work is of course at the "adjusting how we do our work" level. Should you be having a conversation with your product managers as to how the work is parcelled out?

Now, if your "level 3 tasks" are the smallest unit you can get, I would consider using this for your smaller tasks. You say you're doing UI design off of Figma mockups; so, why not have a dedicated task for each screen in the Figma UI: small coding effort, deploy it, give it to the tester, fix broken stuff, merge, repeat.

(I'm sorry if I'm sounding trite; I'm an outsider trying to build a mental model of your situation.)

I don't think "Create a full Jira for everything, including minor things like cleanup of line endings" and "your process is reasonably lean" can exist together in the same world. One excludes the other.
But they can, you just need a certain amount of trust in the organisation. My team lead will trust me to identify the bug, fix it, test it, and ship it (there is always code review by at least one other person), and his manager trusts him that he and his team will deliver results.

I don't know what creating a Jira ticket entails on your end, but for me it takes 5-10 minutes, depending on how thorough I am in the description. "We will be removing this subsystem because it hasn't been used for the past two years, which we know due to the configuration being like so and due to there being zero instances of 'foobar' in the logs, etc."

(Or I just ask the AI "can I safely remove X?" and it says "yes, here are ten reasons why: <wall of text>", whereupon I go "great, put that in a Jira ticket" and then it's there.)
 

VanillaG

Ars Scholae Palatinae
1,287
Now, if your "level 3 tasks" are the smallest unit you can get, I would consider using this for your smaller tasks. You say you're doing UI design off of Figma mockups; so, why not have a dedicated task for each screen in the Figma UI: small coding effort, deploy it, give it to the tester, fix broken stuff, merge, repeat.
This is how I used Jira in the past. Breakdown the project into the smallest pieces possible and include detailed requirements and expected behaviors in each ticket. When a PR was created the list of Jira Ids was included so people had an understanding of how the change(s) was supposed to work.

Depending on the scope of each Jira item you could either kick back the specific Jira item with notes about what doesn't work correctly or create another specific Jira item for each specific bug.

Nobody likes writing documentation/requirements but without some kind of paper trail of how things are supposed to work you never really know when things are complete. Without the documentation you open yourself up to scope creep and you never really improve the process for the next project because the same mistakes will be made.
 

Rowan

Ars Tribunus Militum
1,629
Our Jira system only allows 3 levels of nesting. The project is level one. The 8 major sections of the app are sub-tasks of it (level 2) The chunks of code that get worked on in sprint-sized pieces are sub-tasks of level 2 (Level 3) Our Jira system doesn't allow us to break Level 3 tasks into further sub tasks. Stupid limitation of our Jira system.

BLUF: Epics (level 2 items in your parlance, although I condider them top-level items inside a Jira-project) should be mini-projects with defined end-states, not components.

I'm firmly of the opinion that everything (with very small exceptions) under Jira project should have a limited lifetime. If your level 2 is called Epic then the Epic should encapsulate a certain functionality that will, at some point in time, be considered to be "Done" and the epic closed. Every Story, Task, Bug or whatever 3rd level item under the epic should be related to the epic and take it closer to being Done. Ie. your epic should be named "Auth workflow implementation" or "Migrate payment backend to X" instead of something static like "Authentication" or "Check-out".

Now your Figma implementation items can be either epics (level 2) or stay at level 3, but your developers can create their own level 3 tickets and all of them have the same workflow.

There's a separate "Component" field in Jira to track which components an item relates to.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
It's amazing how much CI has become the bottleneck on literally everything.
Testing needs to be a ladder where the right checks happen at the right level (and people tune the ladder)

One nice thing about agents is they are very good at knowing the scope of their change (was faster than a human) so they can either trigger tests themselves, or opt in a PR to specific targeted checks earlier in the process than normal. It needs a decently sophisticated CI system though, what I have is not fit for purpose :( .
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
It's amazing how much CI has become the bottleneck on literally everything.
If you have this problem you're in a good position. My org still does not have enough tests to be able to release with confidence -- at least, not everywhere -- so we haven't run into the CI bottleneck yet.
 

hanser

Ars Legatus Legionis
43,847
Subscriptor++
It's the reality of all heavy AI shops that I'm aware of, tbh. I've set up two old laptops to serve as GitHub build runners on my bookshelf behind my desk, because we are cranking, and we regularly go through > 50,000 build minutes on GitHub actions with just 4.5 people. (Thank god for residential gbit fiber.)

Other build optimizations I've done:
  • Open PRs in Draft mode, review them in Draft mode, and only build when it flips from Draft to Ready
  • On PR builds: don't publish anything. Just run lint, build, and test on PR builds
  • On merge builds: just build and publish (nothing gets to main without going through PR)
  • Stop parallelizing individual builds (latency), and prioritize throughput instead
  • Replace all node with bun for our frontend stuff; lint is all oxlint
  • Push all security-related CI activities into a PR build step only, and don't allow merge before they're addressed (shift left; advisory "builds" that block nothing have no value)
  • Convert all non-tiny(*) jobs into an ubuntu-slim "Plan" job that calculates what needs building (if anything) and then routes to a chonkier "Build" runner that's either one of the laptops or a GH-hosted machine that actually does the work.
  • For non-latency sensitive programs (like internal tooling), just queue up on one of the self-hosted machines if they're online
  • All MacOS builds wait for the self-hosted macOS runner (10x minute multipliers will eat quota like nobody's business)
We're lucky that .NET is very fast to build and test; the front-end is much less so.

If I could figure out a way to consistently push linting, build, and testing into pre-push hooks, I might be inclined to drop some of those steps from the PR builds, too.

(*) A "tiny" job is a set of activities that will fit into < 3 minutes of ubuntu-slim build time. 3 slim minutes is the quota equivalent of one minute of ubuntu-latest build time.
 

herko

Tone down Your Control issues.
7,012
Moderator
It's the reality of all heavy AI shops that I'm aware of, tbh. I've set up two old laptops to serve as GitHub build runners on my bookshelf behind my desk, because we are cranking, and we regularly go through > 50,000 build minutes on GitHub actions with just 4.5 people. (Thank god for residential gbit fiber.)

Other build optimizations I've done:
  • Open PRs in Draft mode, review them in Draft mode, and only build when it flips from Draft to Ready
  • On PR builds: don't publish anything. Just run lint, build, and test on PR builds
  • On merge builds: just build and publish (nothing gets to main without going through PR)
  • Stop parallelizing individual builds (latency), and prioritize throughput instead
  • Replace all node with bun for our frontend stuff; lint is all oxlint
  • Push all security-related CI activities into a PR build step only, and don't allow merge before they're addressed (shift left; advisory "builds" that block nothing have no value)
  • Convert all non-tiny(*) jobs into an ubuntu-slim "Plan" job that calculates what needs building (if anything) and then routes to a chonkier "Build" runner that's either one of the laptops or a GH-hosted machine that actually does the work.
  • For non-latency sensitive programs (like internal tooling), just queue up on one of the self-hosted machines if they're online
  • All MacOS builds wait for the self-hosted macOS runner (10x minute multipliers will eat quota like nobody's business)
We're lucky that .NET is very fast to build and test; the front-end is much less so.

If I could figure out a way to consistently push linting, build, and testing into pre-push hooks, I might be inclined to drop some of those steps from the PR builds, too.

(*) A "tiny" job is a set of activities that will fit into < 3 minutes of ubuntu-slim build time. 3 slim minutes is the quota equivalent of one minute of ubuntu-latest build time.
This is so true. My little hobby project fails to build regularly because macOS runners are just unavailable, or time out. They seem to be in perpetually short supply, and also Swift is kinda slow to compile. I build locally as much as possible, but releases get built by CI, so that's a problem.

Since it's Open Source and public, I can't really set up a runner at home; any PR code would run on it, so that's asking for strangers to run arbitrary code on one of my own machines.
 
  • Hug
Reactions: hanser

hanser

Ars Legatus Legionis
43,847
Subscriptor++
  1. That's cool AF
  2. Try starting your PRs as Draft, and configuring CI to not run until you're ready to think about merging? I know I regularly push more commits to a PR before I'm ready-ready to merge. I also run adversarial code review agents on all of my PRs, so I want to get those changes in before I bother using CI build time.
 

herko

Tone down Your Control issues.
7,012
Moderator
  1. That's cool AF
  2. Try starting your PRs as Draft, and configuring CI to not run until you're ready to think about merging? I know I regularly push more commits to a PR before I'm ready-ready to merge. I also run adversarial code review agents on all of my PRs, so I want to get those changes in before I bother using CI build time.
1. Thanks! It's a cool project, and it scratches my own itch pretty well.
2. Most of the work is already built locally, and tested locally. Because of the nature of the beast, it's not just chock-full of tests, it goes through actual integration and real-target testing on my own homelab. In fact, I (well, Claude) wrote a Claude plugin to allow it to drive disposable VMs just to test this in a repeatable manner. There's still a lot of clicking and observing behavior from yours truly, though.

GH is reserved for the for-real for-real builds, and so it's more of an annoyance than a real problem. And Claude knows to look skeptically at CI and release build issues on GH for this reason.
 
  • Like
Reactions: hanser