๐Ÿ”ง DevOps

Agile

Agile

An iterative, incremental software development methodology. Scrum and Kanban are representative examples. An alternative to the waterfall model.

๐Ÿ“– Detailed Explanation

Agile is a software development philosophy that began with the "Agile Manifesto" in 2001. The key is responding quickly to change. Rather than drawing up a 6-month plan and carrying it out as is even when the world changes, you build working software in 2-week increments, gather feedback, and adjust direction.

The most widely used Agile frameworks are Scrum and Kanban. Scrum works in fixed cycles called sprints (usually 2 weeks) and has ceremonies such as Daily Standup, Sprint Planning, and Retrospective. Kanban sets WIP (Work In Progress) limits and focuses on optimizing flow. Scrumban, which mixes the two depending on the team's situation, is also widely used.

DevOps and Agile go well together. If Agile says "build quickly and get feedback quickly," DevOps says "deploy what you built quickly." CI/CD pipelines, automated testing, and infrastructure automation must be in place to actually deploy in every sprint.

To do Agile properly in practice, you need to focus on "principles" rather than "ceremonies." What matters more than holding the Daily Standup as a formality is a culture where the team quickly shares and resolves blockers. A situation like "We did Agile, so why did we get slower?" usually occurs when only tools are adopted and there is no change in mindset.

๐Ÿ’ป Code Example

# GitHub Projects๋ฅผ ํ™œ์šฉํ•œ Agile ๋ณด๋“œ ์ž๋™ํ™” (GitHub Actions)
# .github/workflows/agile-automation.yml

name: Agile Board Automation

on:
  issues:
    types: [opened, closed, labeled]
  pull_request:
    types: [opened, closed, review_requested]

jobs:
  update-board:
    runs-on: ubuntu-latest
    steps:
      # ์ƒˆ ์ด์Šˆ๊ฐ€ ์—ด๋ฆฌ๋ฉด ์ž๋™์œผ๋กœ Backlog์— ์ถ”๊ฐ€
      - name: Add issue to project
        if: github.event_name == 'issues' && github.event.action == 'opened'
        uses: actions/add-to-project@v0.5.0
        with:
          project-url: https://github.com/orgs/myorg/projects/1
          github-token: ${{ secrets.PROJECT_TOKEN }}

      # PR์ด ์—ด๋ฆฌ๋ฉด ์—ฐ๊ฒฐ๋œ ์ด์Šˆ๋ฅผ "In Progress"๋กœ ์ด๋™
      - name: Move to In Progress
        if: github.event_name == 'pull_request' && github.event.action == 'opened'
        run: |
          # PR ๋ณธ๋ฌธ์—์„œ "Fixes #123" ํŒจํ„ด์œผ๋กœ ์—ฐ๊ฒฐ๋œ ์ด์Šˆ ์ฐพ๊ธฐ
          ISSUE_NUM=$(echo "${{ github.event.pull_request.body }}" | grep -oP 'Fixes #\K\d+')
          if [ -n "$ISSUE_NUM" ]; then
            gh api graphql -f query='
              mutation {
                updateProjectV2ItemFieldValue(
                  input: {projectId: "PVT_xxx", itemId: "PVTI_xxx", fieldId: "PVTF_xxx",
                          value: {singleSelectOptionId: "in_progress"}}
                ) { projectV2Item { id } }
              }'
          fi
        env:
          GH_TOKEN: ${{ secrets.PROJECT_TOKEN }}

      # Sprint velocity ๊ณ„์‚ฐ (์Šคํ”„๋ฆฐํŠธ ์ข…๋ฃŒ ์‹œ)
      - name: Calculate Sprint Velocity
        if: github.event.label.name == 'sprint-complete'
        run: |
          # ์™„๋ฃŒ๋œ ์ด์Šˆ์˜ story point ํ•ฉ๊ณ„
          VELOCITY=$(gh issue list --state closed --label "sprint-10" \
            --json number,labels --jq '[.[] | .labels[] | select(.name | startswith("sp:")) | .name | ltrimstr("sp:") | tonumber] | add')
          echo "Sprint 10 Velocity: $VELOCITY points"

๐Ÿ—ฃ๏ธ How It's Said in Practice

PM: "This sprint's velocity was 32 points. Can we commit to 35 points in the next sprint?"

Developer: "The average of the last 3 sprints is 30, and there's a holiday too, so I think it's safer to plan for around 28."

Senior: "I agree. Maintaining a sustainable pace is faster in the long run. If we burn out, the next sprint is ruined."

Interviewer: "Do you have experience working in an Agile environment?"

Candidate: "Yes, I ran Scrum based on 2-week sprints for 3 years. We estimated with story points in sprint planning and shared blockers in the daily standup. What helped the most was the retrospective: as the team continuously found and applied improvements, we shortened our release cycle from once a month to twice a week."

Take a mock interview on this topic โ†’ WIA SOOM AI Interview ยท Start for free

Reviewer: "How does this PR connect to the sprint goal? Please attach an issue number."

Author: "Oh, I forgot. I'll add Fixes #234. It's a subtask of the story 'Improve API response speed'."

โš ๏ธ Cautions

๐Ÿ“š Learn More