Flow of work and traceability

AZ-400 DevOps EngineerProcesses and communicationsAbout 20 minutesBy Cloud Hands On

GitHub Flow, GitHub Issues and Projects, Azure Boards, and linking work to code so every change can be traced.

In this lesson you'll learn

1. A structure for the flow of work

New to DevOps planning? Start here

DevOps teams need to see what's being worked on, what's next and what's blocked. A work item (or GitHub issue) describes one piece of work. A board shows those items moving through states such as New, Active and Done. The aim is a steady flow of small changes, not big batches.

GitHub Flow is a simple way to move work from idea to production:

  1. Create a branch from main for one change.
  2. Commit small changes and push them.
  3. Open a pull request to start a review and run automated checks.
  4. Fix review comments; checks must pass.
  5. Deploy (often from the branch to a test environment) and merge into main.

Because main is always deployable, GitHub Flow suits teams that release often.

2. Tracking work: GitHub Projects and Azure Boards

GitHub Issues track bugs and tasks inside a repository. GitHub Projects pull issues and pull requests from many repositories into tables, boards and roadmaps, with custom fields such as priority or iteration, and built-in automation (for example, move an item to Done when its pull request merges).

Azure Boards offers work item types (epics, features, user stories or product backlog items, tasks, bugs), backlogs, sprints, Kanban boards and queries. Its process templates (Basic, Agile, Scrum, CMMI) decide which types and states you get.

NeedGood fit
Small team, code already in GitHubGitHub Issues and Projects
Portfolio planning across many teams, detailed reportingAzure Boards
Code in GitHub, planning in Azure BoardsAzure Boards with the Azure Boards app for GitHub

3. Linking work to code

With the Azure Boards app for GitHub, you mention AB#123 in a commit message, pull request title or description, and Azure Boards links work item 123 to it. Writing Fixes AB#123 in a pull request moves the item to its done state when the pull request merges. In Azure Repos, you link work items to commits and pull requests directly, and branch policies can require linked work items.

For feedback cycles, people watch repositories and subscribe to notifications, and teams use issue templates and labels so bug reports arrive with the information needed.

4. Traceability

Source traceability means you can go from a work item to the commits and pull requests that implemented it. Bug traceability links a bug to the change that fixed it and the build that shipped it. Quality traceability links requirements to the tests that check them (Azure Test Plans can link test cases to user stories).

Example

SS Kaiser keeps code in GitHub and plans in Azure Boards. A developer's pull request says "Fixes AB#4127". When it merges, the user story closes, and the release pipeline lists the story in its release notes, so support can see which release fixed the customer's problem.

Exam traps to remember

  • AB# links GitHub to Azure Boards work items; # alone links to GitHub issues.
  • GitHub Projects can span many repositories; issues belong to one repository.
  • Requiring linked work items is a branch policy in Azure Repos.

Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-400 DevOps Engineer app.

Practise in the app

Keep going