惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
IT之家
IT之家
V
V2EX
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
小众软件
小众软件
A
Arctic Wolf
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
G
GRAHAM CLULEY
罗磊的独立博客
T
Tor Project blog
C
Cisco Blogs
美团技术团队
博客园 - Franky
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
Cyberwarzone
Cyberwarzone
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
有赞技术团队
有赞技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Security Latest
Security Latest
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
Spread Privacy
Spread Privacy
J
Java Code Geeks
C
CERT Recently Published Vulnerability Notes
大猫的无限游戏
大猫的无限游戏
S
Securelist
The Cloudflare Blog
博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Project Zero
Project Zero

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
DevOps Implementation Checklist: From Code Management to CI Culture
James Lee · 2026-05-17 · via DEV Community

1. Code Management & Branching Strategy

Before setting up any CI pipeline, answer these foundational questions:

Question Options / Considerations
Where is code hosted? GitHub / GitLab / Bitbucket / self-hosted
VCS choice Git (recommended) vs SVN
Branching model Git Flow / GitHub Flow / Trunk-Based Development
CI access to repo Does your CI server have read access? Webhook configured?
Repo structure Monorepo vs multi-repo — impacts pipeline complexity
Version numbering Semantic versioning (MAJOR.MINOR.PATCH) — define upfront
Dependency management npm / pip / Maven / Go modules — naming conventions?
Code Review PR-based review required before merge to main?

Branching Model Comparison

Git Flow (release-heavy teams):
main ──────────────────────────────────────▶
      \──── develop ────────────────────────▶
                \── feature/x ──/
                \── feature/y ──/
                      \── release/1.0 ──/
                                  \── hotfix ──/

GitHub Flow (continuous delivery teams):
main ──────────────────────────────────────▶
      \── feature/x ──PR──/
      \── feature/y ──PR──/

Trunk-Based (high-frequency CI teams):
main ──────────────────────────────────────▶
      \─ short-lived branch (< 1 day) ─PR─/

Enter fullscreen mode Exit fullscreen mode

Rule of thumb: the longer a branch lives without merging, the higher the conflict risk and the wider the conflict scope.


2. CI Server Setup

Choosing a CI Server

Tool Notes
Jenkins Most widely adopted; rich plugin ecosystem; self-hosted
GitLab CI Tightly integrated with GitLab; YAML-based pipelines
GitHub Actions Native to GitHub; excellent for open source projects
TeamCity JetBrains product; strong .NET support
GoCD Pipeline-first design; good for complex workflows
Azure DevOps Microsoft ecosystem; strong enterprise support

Setup Checklist

CI Server Setup:
├── Resource planning
│     ├── How many concurrent jobs needed?
│     ├── CPU/memory per job (build + test)
│     └── Agent/runner count
├── Pipeline design
│     ├── Standardized pipeline template
│     ├── Parameterized builds (branch, env, version)
│     └── Multi-branch / multi-repo support
├── Integrations
│     ├── Code repository (webhook on push/PR)
│     ├── Artifact repository (push built packages)
│     └── Notification (Slack / email on failure)
└── Code quality
      └── SonarQube integration (static analysis)

Enter fullscreen mode Exit fullscreen mode

Standard Pipeline Structure

Code Push / PR
     │
     ▼
┌─────────────────────────────────────────────────────┐
│  Stage 1: Checkout + Dependency Install             │
├─────────────────────────────────────────────────────┤
│  Stage 2: Static Code Analysis (SonarQube / lint)   │
├─────────────────────────────────────────────────────┤
│  Stage 3: Build / Compile                           │
├─────────────────────────────────────────────────────┤
│  Stage 4: Unit Tests + Coverage Report              │
├─────────────────────────────────────────────────────┤
│  Stage 5: Package Artifact                          │
├─────────────────────────────────────────────────────┤
│  Stage 6: Push to Artifact Repository               │
└─────────────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode


3. Artifact Repository & Build-Once Principle

The Build-Once Principle

A core DevOps practice: compile once, deploy everywhere.

❌ Without Build-Once:
Dev env:   source → build → artifact A → deploy
Test env:  source → build → artifact B → deploy
Prod env:  source → build → artifact C → deploy
Problem:   "It worked in test!" — because artifact B ≠ artifact C

✅ With Build-Once:
CI:        source → build → artifact (+ MD5) → artifact store
Test env:  artifact store → verify MD5 → deploy
UAT env:   artifact store → verify MD5 → deploy
Prod env:  artifact store → verify MD5 → deploy
Guarantee: every environment runs the exact same binary

Enter fullscreen mode Exit fullscreen mode

Two key benefits:

  • Saves build time — large codebases can take minutes to compile; rebuilding per environment wastes CI resources
  • Guarantees consistency — what you tested is exactly what you ship to production

Artifact Promotion Flow (JFrog Artifactory)

Build completes
     │
     ▼
Upload to Artifactory
+ attach metadata:
  ├── repo / branch
  ├── version (semver)
  └── CommitId
     │
     ▼
Deploy to SIT ──▶ tests pass ──▶ tag: sit-passed
     │
     ▼
Deploy to UAT ──▶ tests pass ──▶ tag: uat-passed
     │
     ▼
Deploy to Prod ──▶ tag: prod-released

Enter fullscreen mode Exit fullscreen mode

Tags act as promotion gates — a stage only proceeds if the required tag is present on the artifact. No tag = no promotion.

Choosing an Artifact Store

Package Type Recommended Tool
Java (JAR/WAR) Nexus Repository / JFrog Artifactory
Node.js (npm) Nexus / Verdaccio / GitHub Packages
.NET (NuGet) Nexus / Azure Artifacts
Docker images Harbor / ECR / Docker Hub
Python (pip) Nexus / PyPI private mirror
Generic files Nexus / MinIO / S3

Artifact Versioning Strategy

Recommended format:
{service-name}-{semver}-{git-short-sha}
e.g. order-service-1.4.2-a3f9c12

This enables:
├── Exact code → artifact traceability
├── Rollback to any previous version
└── Audit: who built what, from which commit

Enter fullscreen mode Exit fullscreen mode

Retention Policy

Branch Type Retention
Feature branch builds Keep last 5 builds
Release candidates Keep last 10 builds
Production releases Keep indefinitely (or 1 year)
Tagged releases Never auto-delete

4. Test Strategy & Automation

The Four Automation Layers

Before writing a single test, define what gets automated at each layer:

┌──────────────────────────────────────────────────────────────┐
│  Layer 4: Infrastructure                                     │
│  Prepare test data and environments                          │
│  Tools: Ansible / Chef / Puppet / Jenkins / Docker           │
├──────────────────────────────────────────────────────────────┤
│  Layer 3: UI Tests                                           │
│  End-to-end functional tests across one or more apps         │
│  Focus on critical user journeys only                        │
│  Tools: Selenium / Appium                                    │
├──────────────────────────────────────────────────────────────┤
│  Layer 2: Service / API Tests                                │
│  Interface interaction tests between services                │
│  Tools: Postman / SoapUI / REST-assured                      │
├──────────────────────────────────────────────────────────────┤
│  Layer 1: Unit Tests                                         │
│  Method / class / package level; integrated into CI          │
│  Tools: xUnit / JUnit / pytest / Jest                        │
└──────────────────────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

The Test Pyramid: Effort Distribution

                  ▲
                 /UI\          10%  — few, slow, expensive
                /─────\
               / Service\      20%  — moderate, API-level
              /───────────\
             /  Unit Tests  \  70%  — many, fast, cheap ✅
            /─────────────────\

Enter fullscreen mode Exit fullscreen mode

Invest 70% of testing effort in unit tests, 20% in service/API tests, and only 10% in UI tests. The pyramid shape reflects both quantity and cost — invert it and your pipeline becomes slow and brittle.

Four-Level Environment Test Matrix (L0–L3)

┌─────────────────────────────────────────────────────────────┐
│  L3  Production / Pre-prod                                  │
│      UI automation / performance / exploratory              │
│      Manual + automated    Slow, expensive                  │
├─────────────────────────────────────────────────────────────┤
│  L2  UAT / Test environment (full system + test data)       │
│      UI / performance / acceptance / API tests              │
│      Manual + automated                                     │
├─────────────────────────────────────────────────────────────┤
│  L1  Test / Debug environment (current deploy unit only)    │
│      API tests / component tests                            │
│      Manual + automated                                     │
├─────────────────────────────────────────────────────────────┤
│  L0  CI environment (no external dependencies)              │
│      Unit tests + static code analysis                      │
│      Fully automated    Fast, cheap ✅                      │
└─────────────────────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

CI Pipeline Integration: Four-Stage Flow

Stage 1 — Code Commit / PR
─────────────────────────────────────────────────────────────
Developer pushes to Git or opens a PR
     │
     ▼
CI server triggers: compile → static analysis → unit tests (L0)
     │
     ▼
Results notified to developer immediately

Stage 2 — Deploy to SIT (System Integration Test)
─────────────────────────────────────────────────────────────
L0 checks pass
     │
     ▼
Verify artifact MD5 → auto-deploy to SIT environment
(all dependent services available)
     │
     ▼
Register APIs to API management platform
Run service-to-service API tests (L1)
     │
     ▼
Tests pass → tag artifact: sit-passed

Stage 3 — Deploy to UAT (User Acceptance Test)
─────────────────────────────────────────────────────────────
sit-passed tag confirmed on artifact
     │
     ▼
Verify artifact MD5 → auto-deploy to UAT environment
     │
     ▼
Automated test platform runs:
├── Requirement-linked test cases (targeted)
├── Nightly full regression suite
└── Test case + test data management via platform
     │
     ▼
Tests pass → tag artifact: uat-passed

Stage 4 — Environment Management
─────────────────────────────────────────────────────────────
SIT + UAT environments managed by Environment Deployment Platform:
├── Customized deployment per automation test requirements
├── Pre-condition checks before test execution
└── Environment health validation before each test run

Enter fullscreen mode Exit fullscreen mode

Test Type Comparison

Test Type Scope Speed Cost When to Run
Unit tests Single method/function Fast (seconds) Low Every commit
Integration tests Multiple modules/services Medium Medium Every PR merge
Acceptance tests Business scenarios end-to-end Slow High Pre-release
UI tests Full browser/mobile simulation Very slow Very high Scheduled / pre-release

Code Coverage Guidelines

Target: ≥ 80% code coverage

⚠️ Important distinctions:
High coverage ≠ good tests
Coverage tools find UNTESTED code — they don't validate test quality

Practical approach:
1. Don't chase 100% from day one
2. Use coverage reports to identify critical untested paths
3. Prioritize coverage for core business logic first
4. Add tests during refactoring — before changing code, not after
5. Write tests for every bug fix — cover the exact failure scenario

Enter fullscreen mode Exit fullscreen mode

The Refactoring Rule

Before refactoring:
┌──────────────────────────────────────────────┐
│  1. Write acceptance tests around the        │
│     features that will be affected           │
│  2. Run tests → all green ✅                 │
│  3. Refactor                                 │
│  4. Run tests again → still green ✅         │
│  5. Safe to merge                            │
└──────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode


5. Test & Deployment Environment Preparation

Environment Planning

Typical environment chain:

Dev (local) ──▶ CI ──▶ Test/Debug ──▶ UAT ──▶ Pre-prod ──▶ Production
    L0            L0       L1           L2        L3           L3

Enter fullscreen mode Exit fullscreen mode

One Pipeline, Every Environment

Use the same pipeline and same deployment scripts for every environment — including production.

❌ Anti-pattern:
deploy-to-test.sh    (different script)
deploy-to-uat.sh     (different script)
deploy-to-prod.sh    (different script)
→ Scripts diverge over time → production surprises

✅ Best practice:
deploy.sh --env=test
deploy.sh --env=uat
deploy.sh --env=prod
→ One script, environment-specific config injected at runtime

Enter fullscreen mode Exit fullscreen mode

Config / Script Separation

Different environments have different IPs, OS configs, and middleware settings — but that doesn't mean different scripts:

├── deploy.sh                  # single deployment script (env-agnostic)
└── config/
      ├── base.yml             # shared across all envs
      ├── test.yml             # test env: IPs, ports, DB endpoints
      ├── uat.yml              # UAT env overrides
      └── production.yml       # prod env overrides

Secrets managed separately via:
Vault / AWS Secrets Manager / K8s Secrets / .env (never committed)

Enter fullscreen mode Exit fullscreen mode

Smoke Testing After Every Deploy

After deployment completes, always run a smoke test before marking the deploy successful:

Deploy completes
     │
     ▼
Smoke test script runs automatically:
├── Health check endpoint:  GET /health → 200 OK ✅
├── Core API check:         GET /api/v1/ping → expected response ✅
└── Dependency checks:
      ├── Database:  query returns (empty is OK, connection must succeed) ✅
      └── Cache:     Redis ping → PONG ✅
     │
     ▼
All checks pass → deploy marked successful → pipeline proceeds
Any check fails → deploy marked failed → alert sent → rollback triggered

Enter fullscreen mode Exit fullscreen mode

Why smoke tests matter:

Without smoke test With smoke test
Deploy "succeeds" but app is broken Broken deploy detected immediately
Team discovers issue via user reports Pipeline catches it before users do
Hard to tell: app bug or env issue? Clear diagnosis: which dependency failed

Smoke tests are also called deployment verification tests — they confirm the app is alive and its dependencies are reachable, not that every feature works correctly. That's what the full test suite is for.

Deployment Automation Checklist

Item Options
Scripting language Python / Shell / PowerShell / Ansible
Multi-environment config Environment-specific config files; secrets via vault
Multi-branch deployment Branch → environment mapping (e.g. develop → test, main → prod)
Rollback mechanism Re-deploy previous artifact version
Health check after deploy Smoke test script before marking deploy successful

6. Building a CI Culture

Tools alone don't make CI work. The team's habits and mindset matter just as much.

Core CI Principles

① Integrate early and often

Time without merging ──▶ conflict risk grows exponentially

Day 1:  small diff, easy merge ✅
Day 5:  medium diff, some conflicts ⚠️
Day 14: large diff, painful merge, possible rework ❌

Enter fullscreen mode Exit fullscreen mode

If a branch might conflict with another in-flight branch, add a feature flag or release toggle to prevent them from interfering at deploy time.

② Keep the build green at all times

Build breaks → fix immediately, not "later"

Why:
├── A broken build blocks everyone downstream
├── The longer it stays broken, the more errors accumulate
└── Developers lose trust in the CI system

Enter fullscreen mode Exit fullscreen mode

Fast feedback is critical — unit tests should return results in minutes. If the full test suite is slow, run unit tests first and return results to the developer before they context-switch to another task.

③ Make build status visible

Options:
├── Dashboard / build radiator (visible to whole team)
├── Slack / Teams notifications on failure
├── Email to the committer who broke the build
└── PR status checks (block merge if CI fails)

Enter fullscreen mode Exit fullscreen mode

④ Tests are part of the definition of done

Feature complete ≠ done
Feature complete + tests passing = done ✅

Benefits:
├── Reduces regression time per iteration
├── Gives confidence when merging to main
└── New features don't break existing behavior

Enter fullscreen mode Exit fullscreen mode

⑤ Write tests when fixing bugs

Bug reported
     │
     ▼
Reproduce the bug → write a failing test that captures it
     │
     ▼
Fix the bug → test passes ✅
     │
     ▼
Bug can never silently reappear

Enter fullscreen mode Exit fullscreen mode

CI Culture Maturity Model

Level 0: No CI — manual builds, manual testing
Level 1: CI exists — automated build on commit
Level 2: CI + tests — automated build + unit tests on every commit
Level 3: CI + full pipeline — build + test + artifact + deploy to test env
Level 4: CI/CD — automated deployment to production with confidence

Enter fullscreen mode Exit fullscreen mode