Skip to main content

Renovate on Azure DevOps: picking the right work item type

After our fix yesterday, we got our Renovate pipeline up-and-running. However the next hurdle showed up quickly. Right after the SSL certificate fix, I got the pipeline green, but the log showed this warning:

WARN: Azure: work item type does not exist in project (or the token lacks permission to it); skipping issue. The Dependency Dashboard needs a process that defines this work item type. Set one your project defines via the `azureWorkItemType` repo config option. (repository=Framework en Tooling/SOFACore)
       "workItemType": "Issue",
       "availableTypes": [
         "Bug",
         "Task",
         "Quality of Service Requirement",
         "Scenario",
         "Risk",
         "Code Review Request",
         "Code Review Response",
         "Feedback Request",
         "Feedback Response",
         "User Story",
         "Test Case",
         "Shared Steps",
         "Test Plan",
         "Test Suite",
         "Epic",
         "Feature",
         "Shared Parameter"
       ],

What's the Dependency Dashboard?

The Dependency Dashboard is a Renovate feature that opens (and keeps updated) a single issue in your repo, normally titled "Dependency Dashboard". It's not a PR, it's a living overview of everything Renovate is tracking: which updates are pending and why, PRs that are open or need rebasing, updates that errored out, and checkboxes to manually trigger specific updates on demand.

Azure DevOps doesn't have "issues" the way GitHub does, it has work items instead. So Renovate creates the dashboard as a work item, and by default tries to use the type Issue.

What's going on?

That type doesn't exist in every Azure DevOps process template. Our project runs a customized process, and Issue simply isn't one of the available types there. The log helpfully lists what is available: Bug, Task, User Story, Feature, Epic, and so on.

Renovate doesn't fail the pipeline over this. It just skips creating the dashboard issue and logs a warning. Easy to miss, easy to leave broken for weeks.

The fix

Renovate has a repo config option for exactly this: azureWorkItemType. You point it at a type your process actually defines.

I first tried to add it to the repository's renovate.json, but the pipeline didn't pick up the setting as expected. So I took a different approach and passed it as a CLI argument instead, via --azure-work-item-type:

trigger: none

pool:
  name: default

variables:
  NODE_EXTRA_CA_CERTS: 'd:\vlm-root.pem'

steps:
- task: RenovateMe@1
  inputs:
    renovateOptionsVersion: 'latest'
    renovateOptionsArgs: '--azure-work-item-type Task'
  env:
    RENOVATE_TOKEN: $(System.AccessToken)
    LOG_LEVEL: debug

Task exists in our process, so that's what I picked. Pick whatever fits your own workflow — Bug or Feature would work just as well if that matches how your team triages dependency updates.

Remark: the availableTypes list in the warning is our project's actual process definition. Renovate uses the Azure DevOps API to extract this data.

After this change, the warning is gone and the Dependency Dashboard work item shows up as a Task in the project.

 


That's it!

More information

Popular posts from this blog

Podman– Command execution failed with exit code 125

After updating WSL on one of the developer machines, Podman failed to work. When we took a look through Podman Desktop, we noticed that Podman had stopped running and returned the following error message: Error: Command execution failed with exit code 125 Here are the steps we tried to fix the issue: We started by running podman info to get some extra details on what could be wrong: >podman info OS: windows/amd64 provider: wsl version: 5.3.1 Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:2655: connectex: No connection could be made because the target machine actively refused it. That makes sense as the podman VM was not running. Let’s check the VM: >podman machine list NAME         ...

Cache stampede: when our cache turned against us

While investigating some performance issues, we ran into an ASP.NET Core API that cached a fairly expensive aggregation query for 60 seconds. Under normal load, that was fine: one request rebuilds the cache, everyone else reads from it. Under peak load, dozens of requests would arrive in that same expiry window, all see a cache miss, and all fire the same expensive query in parallel. The database didn't like that. That was the moment when our caching layer stopped helping and started hurting. A burst of requests comes in at the same time, all miss the cache, and all go hammer the database or the downstream API at once. That's a cache stampede . The cache was supposed to protect our backend, and for a few hundred milliseconds it did the opposite. Why this happens IMemoryCache.GetOrCreate (and its async sibling) looks like it protects you, but it doesn't add any locking on its own. Look at the naive version: public async Task<Report> GetReportAsync(string key) ...

A complex system designed from scratch never works

A few years ago, I worked as an architect on a big mainframe rewrite. I still count it as one of my failures. Not because the technology was wrong, but because I couldn't convince the management team to simplify the approach. Years later, the organization is still struggling to get the new system up and running. I left the project at the time, because I couldn't put my name behind an approach that would take very long and cost a lot of money without a working system to show for it along the way. Gall’s Law That memory keeps coming back to me, because it's a textbook case of Gall's Law playing out in real life. Gall's Law , from John Gall's Systemantics , states it plainly: A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works, and it cannot be patched to make it work. You have to start over with a simple system that works. What does that mean in practice,...