Skip to contentমূল লেখায় যান

Topic 25 · AI/ML testingটপিক 25 · AI/ML testing

CI/CD Integration and Capstone Presentation

A test suite that only runs on your laptop is a suite someone will forget to run.

7 min read7 মিনিটে পড়া যায় · 6 sections6টি সেকশন · 4 sources4টি সোর্স · updated Nov 2026আপডেট: Nov 2026

A required check blocks the mergerequired check মার্জ আটকায়

Flip the required-check switch and see a failing run either block the merge or slip through.required-check সুইচ বদলান আর দেখুন একটা ব্যর্থ রান মার্জ আটকায় নাকি পার হয়ে যায়।

2 min2 মিনিট7 steps7টি ধাপ
  • Exit codeএক্সিট কোড–
  • Requiredরিকোয়ার্ডON
  • Mergeমার্জ?
  • Fast suiteদ্রুত suite2 min
pull requestpull requestyou · developerআপনি · ডেভেলপারFast suiteদ্রুত suitewaitingঅপেক্ষায়mainmainbranchব্রাঞ্চNightlyনাইটলিslow suitesধীর suiteschedule · cronschedule · cron

You’ll learnআপনি শিখবেন

  • What exit code 100 meansএক্সিট কোড 100 কী বোঝায়
  • Only a required check blocks a mergeশুধু required check মার্জ আটকায়
  • Why the PR comment helps the reviewerPR comment কেন reviewer-কে সাহায্য করে
  • Why slow suites run on a scheduleধীর suite কেন schedule-এ চলে
  • What to check in branch protectionbranch protection-এ কী দেখবেন

In plain words

The last technical step of the capstone is making the test pipeline run itself, on every pull request, without anyone remembering to trigger it. GitHub Actions is the CI platform that runs a defined job on a repository event such as a pull request Source 1সোর্স 1, and Promptfoo ships first-class support for running its evals inside that kind of pipeline Source 2সোর্স 2.

The job of the CI job is narrow: run the fast suites (the eval, the hallucination tests) on every PR as a required check, and run the slower ones (red team, Giskard scan, full UI suite) on a schedule or on demand, because they are too slow to block every single commit.

The presentation half of this session is not a technical artifact, but it has a technical dependency: the quality dashboard from the metrics module and the findings table from the test pipeline are what gets presented, not a narrative with no numbers behind it.

সহজ English

The last technical step of the capstone is to make the tests run by themselves. They should run on every pull request. Nobody should have to remember to start them.

GitHub Actions is the CI platform for this. It runs a job you define when something happens in a repository, such as a pull request Source 1সোর্স 1. Promptfoo has built-in support for running its evals inside that kind of pipeline Source 2সোর্স 2.

The CI job has a narrow task. Run the fast suites on every PR as a required check. These are the eval and the hallucination tests. Run the slower suites on a schedule or on demand. These are the red team, the Giskard scan, and the full UI suite. They are too slow to block every commit.

The presentation part of this session is not a technical artifact. It still depends on technical work. You present the quality dashboard from the metrics module. You also present the findings table from the test pipeline. You do not present a story with no numbers behind it.

বাংলা ব্যাখ্যা

Capstone-এর শেষ প্রযুক্তিগত ধাপ হলো test pipeline-কে নিজে নিজে চালানো, প্রতিটা pull request-এ, কাউকে এটা trigger করার কথা মনে রাখতে না দিয়ে। GitHub Actions হলো সেই CI platform যা একটা pull request-এর মতো repository event-এ একটা নির্ধারিত job চালায় Source 1সোর্স 1, আর Promptfoo তার eval এই ধরনের pipeline-এর ভেতরে চালানোর জন্য প্রথম-শ্রেণির সমর্থন দেয় Source 2সোর্স 2।

CI job-এর কাজ সংকীর্ণ: দ্রুত suite (eval, hallucination test) প্রতিটা PR-এ একটা required check হিসেবে চালান, আর ধীর suite (red team, Giskard scan, পূর্ণ UI suite) একটা schedule-এ বা চাহিদামতো চালান, কারণ সেগুলো প্রতিটা একক commit ব্লক করার জন্য খুব ধীর।

এই session-এর presentation অংশ একটা প্রযুক্তিগত artifact নয়, কিন্তু এর একটা প্রযুক্তিগত নির্ভরতা আছে: metrics module-এর quality dashboard আর test pipeline-এর findings table-ই উপস্থাপন করা হয়, সংখ্যা ছাড়া একটা narrative নয়।

How it works

The split between what blocks a merge and what runs on a schedule Source 1সোর্স 1:

on every pull request (required check, blocks merge)
    Promptfoo eval
    DeepEval hallucination suite

on a schedule, or manually triggered (visible, not blocking)
    Promptfoo red team
    Giskard scan
    full Playwright suite

Exit code. npx promptfoo eval returns exit code 100 when at least one test case fails (or when the pass rate is below PROMPTFOO_PASS_RATE_THRESHOLD) Source 3সোর্স 3. Running it as a CI step is what lets the job fail and block a merge Source 3সোর্স 3.

GitHub Action. Promptfoo also ships a GitHub Action that, when prompt files change in a pull request, runs a before-and-after comparison and posts a comment with a link to the results on the pull request Source 2সোর্স 2. It needs github-token, prompts, and config inputs and pull-requests: write permission Source 2সোর্স 2.

PR comment. The PR comment itself is the smallest version of the quality dashboard from the metrics module. It shows the same numbers and same gate logic, surfaced at the point a human actually makes the merge decision instead of a separate page they would need to remember to check.

সহজ English

Some checks block a merge. Others run on a schedule. Here is the split Source 1সোর্স 1:

on every pull request (required check, blocks merge)
    Promptfoo eval
    DeepEval hallucination suite

on a schedule, or manually triggered (visible, not blocking)
    Promptfoo red team
    Giskard scan
    full Playwright suite

npx promptfoo eval returns exit code 100 when at least one test case fails. It also does this when the pass rate is below PROMPTFOO_PASS_RATE_THRESHOLD. So when you run it as a CI step, the job can fail and block a merge Source 3সোর্স 3.

Promptfoo also has a GitHub Action. It works when prompt files change in a pull request. It compares the results before and after the change. Then it posts a comment with a link to the results on the pull request. It needs the inputs github-token, prompts, and config. It also needs pull-requests: write permission Source 2সোর্স 2.

The PR comment is the smallest version of the quality dashboard from the metrics module. It shows the same numbers and uses the same gate logic. But it appears where a person decides on the merge. It is not a separate page they must remember to check.

বাংলা ব্যাখ্যা

কী merge ব্লক করে আর কী schedule-এ চলে তার বিভাজন Source 1সোর্স 1:

on every pull request (required check, blocks merge)
    Promptfoo eval
    DeepEval hallucination suite

on a schedule, or manually triggered (visible, not blocking)
    Promptfoo red team
    Giskard scan
    full Playwright suite

npx promptfoo eval অন্তত একটা test case ব্যর্থ হলে (বা pass rate PROMPTFOO_PASS_RATE_THRESHOLD-এর নিচে হলে) exit code 100 ফেরত দেয়, তাই এটাকে CI step হিসেবে চালালেই job ব্যর্থ হয়ে merge ব্লক করতে পারে Source 3সোর্স 3। Promptfoo-র একটা GitHub Action-ও আছে যা pull request-এ prompt ফাইল বদলালে before-and-after তুলনা চালিয়ে pull request-এ ফলাফলের লিংকসহ একটা comment পোস্ট করে; এর জন্য github-token, prompts, config input আর pull-requests: write permission লাগে Source 2সোর্স 2।

PR comment-টাই metrics module-এর quality dashboard-এর সবচেয়ে ছোট সংস্করণ: একই সংখ্যা, একই gate logic, ঠিক সেই বিন্দুতে দেখানো যেখানে একজন মানুষ আসলে merge সিদ্ধান্ত নেয়, একটা আলাদা পেজের বদলে যা তাদের চেক করার কথা মনে রাখতে হতো।

In practice

A workflow file with the required-vs-scheduled split Source 1সোর্স 1 Source 2সোর্স 2:

# .github/workflows/capstone.yml
name: capstone checks
on:
  pull_request:
  schedule:
    - cron: "0 6 * * *"  # nightly, for the slow suites
jobs:
  fast-gate:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo eval -c promptfooconfig.yaml   # exit code 100 on any failing test
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m pytest tests/hallucination/
  nightly-slow-suite:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo redteam run --config redteam-config.yaml
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m scripts.run_giskard_scan
      - run: python -m pytest tests/ui/

A short presentation outline built from the suite's own output, not written from memory:

1. architecture        the diagram from capstone-project-setup
2. test strategy       the plan's scope, risks, and gates
3. results             the quality dashboard: current values vs. gates
4. vulnerabilities     the red team + Giskard findings table, by OWASP id
5. CI/CD               the PR comment from a real run, screenshotted
6. what broke          one real failure found during the capstone, and the fix

Tutorial advice

This advice is the tutorial's own. It does not come from the sources.

  • Put the fast suite on pull_request as a required status check, not just a workflow that runs; a workflow that runs but is not required can still be merged past.
  • Keep the nightly suite's results somewhere a reviewer finds without asking, such as a pinned issue or a status badge in the README.
  • Present the one real failure you found and fixed during the capstone; it is more convincing than a suite that has always been green.

সহজ English

Here is a workflow file that splits required checks from scheduled ones Source 1সোর্স 1 Source 2সোর্স 2:

# .github/workflows/capstone.yml
name: capstone checks
on:
  pull_request:
  schedule:
    - cron: "0 6 * * *"  # nightly, for the slow suites
jobs:
  fast-gate:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo eval -c promptfooconfig.yaml   # exit code 100 on any failing test
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m pytest tests/hallucination/
  nightly-slow-suite:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo redteam run --config redteam-config.yaml
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m scripts.run_giskard_scan
      - run: python -m pytest tests/ui/

Build your presentation outline from the suite's own output. Do not write it from memory. Here is a short outline:

1. architecture        the diagram from capstone-project-setup
2. test strategy       the plan's scope, risks, and gates
3. results             the quality dashboard: current values vs. gates
4. vulnerabilities     the red team + Giskard findings table, by OWASP id
5. CI/CD               the PR comment from a real run, screenshotted
6. what broke          one real failure found during the capstone, and the fix

Tutorial advice. This advice is the tutorial's own. It does not come from the sources.

  • Set the fast suite on pull_request as a required status check. Do not only run it as a workflow. A workflow that runs but is not required can still be merged past.
  • Keep the nightly suite's results where a reviewer finds them without asking. A pinned issue or a status badge in the README would work.
  • Present the one real failure you found and fixed during the capstone. It is more convincing than a suite that has always been green.

বাংলা ব্যাখ্যা

Required-বনাম-scheduled বিভাজন সহ একটা workflow ফাইল Source 1সোর্স 1 Source 2সোর্স 2:

# .github/workflows/capstone.yml
name: capstone checks
on:
  pull_request:
  schedule:
    - cron: "0 6 * * *"  # nightly, for the slow suites
jobs:
  fast-gate:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo eval -c promptfooconfig.yaml   # exit code 100 on any failing test
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m pytest tests/hallucination/
  nightly-slow-suite:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
      - uses: actions/setup-python@v7
        with:
          python-version: '3.12'
      - run: pip install -r requirements.txt
      - run: npx promptfoo redteam run --config redteam-config.yaml
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
      - run: python -m scripts.run_giskard_scan
      - run: python -m pytest tests/ui/

Suite-এর নিজস্ব output থেকে বানানো একটা সংক্ষিপ্ত presentation outline, স্মৃতি থেকে লেখা নয়:

1. architecture        the diagram from capstone-project-setup
2. test strategy       the plan's scope, risks, and gates
3. results             the quality dashboard: current values vs. gates
4. vulnerabilities     the red team + Giskard findings table, by OWASP id
5. CI/CD               the PR comment from a real run, screenshotted
6. what broke          one real failure found during the capstone, and the fix

Tutorial advice

এই পরামর্শ টিউটোরিয়ালের নিজস্ব। এটি সোর্স থেকে আসেনি।

  • দ্রুত suite-কে pull_request-এ একটা required status check হিসেবে বসান, শুধু চলে এমন একটা workflow নয়; required নয় এমন একটা workflow তবুও merge করে পার হওয়া যায়।
  • nightly suite-এর ফলাফল এমন কোথাও রাখুন যা একজন reviewer জিজ্ঞেস না করেই খুঁজে পায়, যেমন একটা pinned issue বা README-তে একটা status badge।
  • capstone-এর সময় পাওয়া আর ঠিক করা একটা real failure উপস্থাপন করুন; এটা সবসময় green থাকা একটা suite-এর চেয়ে বেশি বিশ্বাসযোগ্য।

Common mistakes

Mistake 1: a workflow that runs but is not required. GitHub blocks a merge only on required status checks (set in branch protection or a ruleset) Source 4সোর্স 4.

Mistake 2: running the slow suites on every PR. This either makes every PR wait ten minutes or teaches the team to ignore a check that is always still running when they want to merge.

Mistake 3: no PR comment, only a pass/fail badge. A reviewer who has to click into logs to see which assertion failed will eventually stop checking. This is the tutorial's own view.

Mistake 4: presenting a suite that has never found anything. It reads as untested, not as high quality; show the real failure that was found and fixed.

Mistake 5: the presentation has no numbers from the actual dashboard. A narrative description of quality is not evidence of it.

সহজ English

Mistake 1: a workflow that runs but is not required. GitHub blocks a merge only on required status checks (set in branch protection or a ruleset) Source 4সোর্স 4.

Mistake 2: running the slow suites on every PR. Every PR then waits ten minutes. Or the team learns to ignore a check that is still running when they want to merge.

Mistake 3: no PR comment, only a pass/fail badge. A reviewer must click into logs to see which assertion failed. Sooner or later, that reviewer stops checking. This is the tutorial's own view.

Mistake 4: presenting a suite that has never found anything. It looks untested, not high quality. Show the real failure that you found and fixed.

Mistake 5: the presentation has no numbers from the actual dashboard. A story about quality is not proof of quality.

বাংলা ব্যাখ্যা

ভুল ১: চলে কিন্তু required নয় এমন একটা workflow। GitHub শুধু required status check-এ merge ব্লক করে (branch protection বা ruleset-এ সেট করা) Source 4সোর্স 4।

ভুল ২: প্রতিটা PR-এ ধীর suite চালানো। এটা হয় প্রতিটা PR-কে দশ মিনিট অপেক্ষা করায় অথবা দলকে একটা check উপেক্ষা করতে শেখায় যা merge করতে চাওয়ার সময় সবসময় চলছে থাকে।

ভুল ৩: কোনো PR comment নেই, শুধু একটা pass/fail badge। একজন reviewer যাকে কোন assertion ব্যর্থ হয়েছে দেখতে log-এ ক্লিক করতে হয় সে শেষ পর্যন্ত চেক করা বন্ধ করে দেবে। এটা টিউটোরিয়ালের নিজস্ব মত।

ভুল ৪: কখনো কিছু খুঁজে পায়নি এমন একটা suite উপস্থাপন করা। এটা untested মনে হয়, high quality নয়; capstone-এ পাওয়া আর ঠিক করা real failure দেখান।

ভুল ৫: presentation-এ আসল dashboard থেকে কোনো সংখ্যা নেই। quality-র একটা narrative বর্ণনা এর প্রমাণ নয়।

What a tester can check

Tutorial advice

This advice is the tutorial's own. It does not come from the sources.

  • Confirm the fast suite is marked a required check in branch protection, not just present in the workflow file.
  • Confirm the nightly suite's results are visible somewhere a reviewer checks without being told to.
  • Build the presentation from the dashboard and findings table directly, not from a separately written summary.
  • Include at least one real failure found and fixed during the project.

সহজ English

Tutorial advice

This advice is the tutorial's own. It does not come from the sources.

  • Confirm the fast suite is marked a required check in branch protection, not just present in the workflow file.
  • Confirm the nightly suite's results are visible somewhere a reviewer checks without being told to.
  • Build the presentation from the dashboard and findings table directly, not from a separately written summary.
  • Include at least one real failure found and fixed during the project.

বাংলা ব্যাখ্যা

Tutorial advice

এই পরামর্শ টিউটোরিয়ালের নিজস্ব। এটি সোর্স থেকে আসেনি।

  • দ্রুত suite branch protection-এ একটা required check হিসেবে চিহ্নিত তা নিশ্চিত করুন, শুধু workflow ফাইলে উপস্থিত থাকা নয়।
  • nightly suite-এর ফলাফল এমন কোথাও দৃশ্যমান তা নিশ্চিত করুন যা একজন reviewer না বলা সত্ত্বেও চেক করে।
  • presentation সরাসরি dashboard আর findings table থেকে বানান, আলাদাভাবে লেখা একটা সারাংশ থেকে নয়।
  • project-এর সময় পাওয়া আর ঠিক করা অন্তত একটা real failure অন্তর্ভুক্ত করুন।

Key words

WordWhat it means
Required checkA CI job marked in branch protection so a failure blocks the merge
Fast gateThe subset of tests fast enough to run on every pull request
Scheduled suiteSlower tests run nightly or on demand instead of on every commit
PR commentA CI result posted directly on the pull request for the reviewer

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

  1. [1]
    GitHub Actions documentation

    GitHub · accessed 2026-11-01দেখা হয়েছে: 2026-11-01

  2. [2]
    CI/CD integration

    Promptfoo (docs) · accessed 2026-11-01দেখা হয়েছে: 2026-11-01

  3. [3]
    Command line

    Promptfoo (docs) · accessed 2026-11-01দেখা হয়েছে: 2026-11-01

  4. [4]
    About protected branches

    GitHub Docs · accessed 2026-11-27দেখা হয়েছে: 2026-11-27