<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: vasiliy0</title>
    <description>The latest articles on DEV Community by vasiliy0 (@vasiliy0).</description>
    <link>https://dev.to/vasiliy0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3929645%2F484a7119-9cc6-4bb7-92d5-ee4c5eb29514.jpg</url>
      <title>DEV Community: vasiliy0</title>
      <link>https://dev.to/vasiliy0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vasiliy0"/>
    <language>en</language>
    <item>
      <title>Run a no-token CI/CD preflight before your next release</title>
      <dc:creator>vasiliy0</dc:creator>
      <pubDate>Fri, 22 May 2026 15:10:35 +0000</pubDate>
      <link>https://dev.to/vasiliy0/run-a-no-token-cicd-preflight-before-your-next-release-2l7l</link>
      <guid>https://dev.to/vasiliy0/run-a-no-token-cicd-preflight-before-your-next-release-2l7l</guid>
      <description>&lt;p&gt;Most release checklists focus on the code that ships. But a lot of release pain comes from the repository around the code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a GitHub Actions workflow still using an old action major,&lt;/li&gt;
&lt;li&gt;test reports disappearing when CI fails,&lt;/li&gt;
&lt;li&gt;a release job with broad write permissions,&lt;/li&gt;
&lt;li&gt;missing &lt;code&gt;SECURITY.md&lt;/code&gt; or &lt;code&gt;CODEOWNERS&lt;/code&gt;,&lt;/li&gt;
&lt;li&gt;no dependency update config,&lt;/li&gt;
&lt;li&gt;publish workflows that are hard to audit before a tag is pushed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are usually small fixes, but they are easiest to catch before a repo is public, before a package release, or before a CI change becomes urgent.&lt;/p&gt;

&lt;p&gt;That is the use case for &lt;strong&gt;Repository Hygiene / CI Risk Preflight&lt;/strong&gt;: a no-token GitHub Action and local CLI for repository hygiene and CI/CD release-readiness signals.&lt;/p&gt;

&lt;p&gt;It reads files from a checked-out repository and produces a report. It does not call the GitHub API, require a token, upload source code, or need a SaaS account.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it checks
&lt;/h2&gt;

&lt;p&gt;The scanner is intentionally conservative. It looks for practical signals that maintainers often review by hand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CI deprecations&lt;/strong&gt;: old GitHub Actions majors such as &lt;code&gt;actions/upload-artifact@v3&lt;/code&gt;, &lt;code&gt;actions/download-artifact@v3&lt;/code&gt;, &lt;code&gt;actions/cache@v3&lt;/code&gt;, &lt;code&gt;actions/checkout@v3&lt;/code&gt;, and &lt;code&gt;actions/setup-node@v3&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI runtime risk&lt;/strong&gt;: local JavaScript actions using obsolete Node runtimes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workflow permissions&lt;/strong&gt;: broad &lt;code&gt;write-all&lt;/code&gt;, &lt;code&gt;contents: write&lt;/code&gt;, and &lt;code&gt;pull_request_target&lt;/code&gt; review prompts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repo hygiene&lt;/strong&gt;: missing &lt;code&gt;CODEOWNERS&lt;/code&gt;, &lt;code&gt;SECURITY.md&lt;/code&gt;, &lt;code&gt;CONTRIBUTING.md&lt;/code&gt;, changelog/release history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dependency hygiene&lt;/strong&gt;: missing Dependabot/Renovate config.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI observability&lt;/strong&gt;: missing report artifacts or uploads that do not run with &lt;code&gt;if: always()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release safety&lt;/strong&gt;: publish/release workflows without visible guardrails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI cost/safety&lt;/strong&gt;: jobs without visible &lt;code&gt;timeout-minutes&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is not a compliance scanner and it is not a replacement for security review. The goal is a fast preflight report you can run before a release or use as a report-only CI job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it from GitHub Actions
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;repo-hygiene-preflight&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;workflow_dispatch&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;hygiene&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;vasiliy0/repo-hygiene-ci-risk-preflight@v0.1.1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;markdown&lt;/span&gt;
          &lt;span class="na"&gt;output&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;repo-hygiene-report.md&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For gradual rollout, keep it report-only at first. After the team agrees on the baseline, turn on a gate only for findings that should block a merge or release.&lt;/p&gt;

&lt;p&gt;Marketplace listing: &lt;a href="https://github.com/marketplace/actions/repository-hygiene-ci-risk-preflight" rel="noopener noreferrer"&gt;https://github.com/marketplace/actions/repository-hygiene-ci-risk-preflight&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Or run it locally
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install &lt;/span&gt;repo-hygiene-ci-risk-preflight
repo-hygiene-preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--format&lt;/span&gt; markdown
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Generate JSON for automation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;repo-hygiene-preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--format&lt;/span&gt; json &lt;span class="nt"&gt;--output&lt;/span&gt; repo-hygiene-report.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use a severity gate after reviewing the first report:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;repo-hygiene-preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--fail-on-severity&lt;/span&gt; high
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Example findings
&lt;/h2&gt;

&lt;p&gt;A report may include findings like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- high workflow-write-all-permissions
  Why: Broad workflow permissions increase blast radius if a workflow is abused.
  Fix: Prefer least-privilege permissions at workflow/job scope.

- medium missing-security-policy
  Why: Public repos should tell users how to report vulnerabilities.
  Fix: Add SECURITY.md with supported versions and a private reporting path.

- medium missing-ci-report-artifact
  Why: Test-heavy CI is harder to debug when reports disappear after failed runs.
  Fix: Upload test reports/logs with actions/upload-artifact@v4 or write a concise step summary.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Baselines for existing repos
&lt;/h2&gt;

&lt;p&gt;Existing repositories often have known issues that should not block every PR immediately. The scanner supports config and baselines so you can adopt it incrementally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;repo-hygiene-preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--format&lt;/span&gt; json &lt;span class="nt"&gt;--output&lt;/span&gt; report.json &lt;span class="nt"&gt;--write-baseline&lt;/span&gt; repo-hygiene-baseline.json
repo-hygiene-preflight &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--baseline&lt;/span&gt; repo-hygiene-baseline.json &lt;span class="nt"&gt;--fail-on-severity&lt;/span&gt; high
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ignore_rules"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"workflow-without-timeout"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ignore_paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"docs/generated/**"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"severity_overrides"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"missing-contributing"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"info"&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"baseline_fingerprints"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When this is useful
&lt;/h2&gt;

&lt;p&gt;This kind of preflight is useful before:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;publishing a new open-source repo,&lt;/li&gt;
&lt;li&gt;cutting a package release,&lt;/li&gt;
&lt;li&gt;adding CI as a required branch check,&lt;/li&gt;
&lt;li&gt;migrating old GitHub Actions workflows,&lt;/li&gt;
&lt;li&gt;preparing a repository for external contributors,&lt;/li&gt;
&lt;li&gt;reviewing release workflows that publish packages, containers, docs, or artifacts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best first run is usually report-only. If the report finds nothing, great. If it finds issues, most are small checklist items that are easier to fix before they become release blockers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub Marketplace Action: &lt;a href="https://github.com/marketplace/actions/repository-hygiene-ci-risk-preflight" rel="noopener noreferrer"&gt;https://github.com/marketplace/actions/repository-hygiene-ci-risk-preflight&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub repo: &lt;a href="https://github.com/vasiliy0/repo-hygiene-ci-risk-preflight" rel="noopener noreferrer"&gt;https://github.com/vasiliy0/repo-hygiene-ci-risk-preflight&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;PyPI: &lt;a href="https://pypi.org/project/repo-hygiene-ci-risk-preflight/" rel="noopener noreferrer"&gt;https://pypi.org/project/repo-hygiene-ci-risk-preflight/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubactions</category>
      <category>cicd</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Triage Playwright flakes from CI logs before opening traces</title>
      <dc:creator>vasiliy0</dc:creator>
      <pubDate>Wed, 13 May 2026 15:54:12 +0000</pubDate>
      <link>https://dev.to/vasiliy0/triage-playwright-flakes-from-ci-logs-before-opening-traces-175b</link>
      <guid>https://dev.to/vasiliy0/triage-playwright-flakes-from-ci-logs-before-opening-traces-175b</guid>
      <description>&lt;p&gt;Flaky Playwright tests usually do not start as a clean debugging session. They start as a red CI job, a rerun button, and a long trace or log that someone has to interpret under time pressure.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Playwright Flake Triage Toolkit&lt;/strong&gt; as a small local CLI for the first pass: scan Playwright JSON reports, JUnit XML, and CI logs, then produce a Markdown or JSON checklist of likely causes.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/vasiliy0/playwright-flake-triage" rel="noopener noreferrer"&gt;https://github.com/vasiliy0/playwright-flake-triage&lt;/a&gt;&lt;br&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/playwright-flake-triage/" rel="noopener noreferrer"&gt;https://pypi.org/project/playwright-flake-triage/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What it tries to answer
&lt;/h2&gt;

&lt;p&gt;Instead of replacing the Playwright trace viewer, the tool answers a narrower question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What kind of flake is this likely to be, and what should I check first?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Current categories include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ambiguous/brittle selectors&lt;/li&gt;
&lt;li&gt;auth/session state mismatch&lt;/li&gt;
&lt;li&gt;timeout or readiness instability&lt;/li&gt;
&lt;li&gt;network/backend dependency flakes&lt;/li&gt;
&lt;li&gt;browser/context/page lifecycle races&lt;/li&gt;
&lt;li&gt;navigation/frame detachment races&lt;/li&gt;
&lt;li&gt;visual snapshot instability&lt;/li&gt;
&lt;li&gt;parallel/shared-state collisions&lt;/li&gt;
&lt;li&gt;repeated failure fingerprints across retries/log files&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;playwright-flake-triage
pw-flake-triage playwright-report.json junit.xml ci.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For CI usage, the tool can write a GitHub Actions step summary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pw-flake-triage test-results/ &lt;span class="nt"&gt;--github-step-summary&lt;/span&gt; &lt;span class="nt"&gt;--fail-on-severity&lt;/span&gt; high
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is read-only and local: no service account, no token, no upload of private logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is useful before deep debugging
&lt;/h2&gt;

&lt;p&gt;A failed Playwright trace is still the source of truth, but teams often lose time by treating every flake as a generic timeout. A first-pass classifier helps split failures into different queues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;selector work: improve locators and avoid stale element handles;&lt;/li&gt;
&lt;li&gt;product/test-state work: verify auth, seeded data, and permissions;&lt;/li&gt;
&lt;li&gt;infrastructure work: separate backend/network failures from browser timing;&lt;/li&gt;
&lt;li&gt;CI policy work: fail only on selected severity or known categories.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the tool does not do
&lt;/h2&gt;

&lt;p&gt;It does not claim to prove root cause. The output is a triage checklist, not an automatic fix. It also intentionally avoids uploading logs to a hosted service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback I am looking for
&lt;/h2&gt;

&lt;p&gt;If you run Playwright in CI, the most useful feedback would be:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Which failure wording is missing from the current rules?&lt;/li&gt;
&lt;li&gt;Which categories are too broad or too noisy?&lt;/li&gt;
&lt;li&gt;Would a CI summary / fail-on-severity mode fit your workflow?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Repo issues are the best place for examples, with sensitive logs sanitized first.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>playwright</category>
    </item>
  </channel>
</rss>
