Fix for cannot 'TypeError: Cannot read property' when Dependabot submits a PR to upgrade a Jest Module

GitHub’s Dependabot is a great tool to help keep your dependencies up to date, and most of the time the PR it generates just merges without a problem. However, sometimes there are issues with other related dependencies. This was the case with a recent PR to update jest-circus to 28.x. The PR failed with the error TypeError: Cannot read property ’enableGlobally’ of undefined at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:39:25) at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13) at runJest (node_modules/@jest/core/build/runJest....

May 19, 2022 · 1 min · Richard Fennell

On-Demand video available for May's 'Microsoft and GitHub DevOps Forum: DevSecOps'

Did you miss the ‘Microsoft and GitHub DevOps Forum: DevSecOps’ event I presented at earlier in May? Well worry not, the on-demand stream is now available - here

May 17, 2022 · 1 min · Richard Fennell

More examples of using custom variables in Azure DevOps multi-stage YML

I have blogged in the past ( here , here and here) about the complexities and possible areas of confusion with different types of Azure DevOps pipeline variables. Well here is another example of how to use variables and what can trip you up. The key in this example is the scope of a variable, whether it is available outside a job and the syntax to access it Variables local to the Job So, if you create your variable as shown below...

May 5, 2022 · 1 min · Richard Fennell

Updating the Azure Application client_secret used by Packer

As I have posted about previously, we create our Azure DevOps build agent images using the same Packer definitions as used by Microsoft. This time when I ran my Packer command to build an updated VHD I got the error Build ‘vhd’ errored after 135 milliseconds 708 microseconds: adal: Refresh request failed. Status Code = ‘401’. Response body: {“error”:“invalid_client”,“error_description”:“AADSTS7000222: The provided client secret keys for app ‘6425416f-aa94-4c20-8395-XXXXXXX’ are expired. Visit the Azure portal to create new keys for your app: https://aka....

May 3, 2022 · 1 min · Richard Fennell

Speaking at the rescheduled Microsoft and GitHub DevOps Forum on the 4th of May

I’m speaking at the resheduled Microsoft and GitHub DevOps Forum on the 4th of March. To Register: https://mktoevents.com/Microsoft+Event/333304/157-GQE-382?wt.mc_id=AID3045587_QSG_EML_586670

April 7, 2022 · 1 min · Richard Fennell