Skip to content

Commit f5894ea

Browse files
JosephJoseph
authored andcommitted
Fix remaining CI workflow issues
- Fix Python shebang lines - Add language specifiers to code blocks in markdown - Fix duplicate heading names in documentation - Update CodeQL action from v2 to v3
1 parent 19e88cf commit f5894ea

File tree

16 files changed

+36
-45
lines changed

16 files changed

+36
-45
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
output: 'trivy-results.sarif'
171171

172172
- name: Upload Trivy scan results
173-
uses: github/codeql-action/upload-sarif@v2
173+
uses: github/codeql-action/upload-sarif@v3
174174
with:
175175
sarif_file: 'trivy-results.sarif'
176176

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def process_deployment(deployment_id: str) -> DeploymentResult:
206206

207207
Follow the conventional commits specification:
208208

209-
```
209+
```text
210210
feat: add support for GitLab CI in deployment frequency calculator
211211
fix: correct timezone handling in MTTR calculations
212212
docs: add troubleshooting guide for AWS authentication

DevOps Performance Metrics.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -427,23 +427,23 @@ By tracking their deployment frequency, FastTech can assess the effectiveness of
427427

428428
## Lead Time: An In-Depth Look with a Real-World Example
429429

430-
### Definition
430+
### Lead Time - Definition
431431

432432
Lead time is the time it takes to implement, test, and deliver code to production. This metric helps us understand the delay in delivery and the amount of time it takes from creating a new task to its implementation.
433433

434-
### Objective
434+
### Lead Time - Objective
435435

436436
The metric's goal is to achieve greater speed in each of our deployments (new features) to production. The objective is to increase deployment speed through automation, such as optimizing the test process integration to shorten the overall implementation time. Lead time provides valuable insight into the efficiency of the development process.
437437

438-
### How to Measure
438+
### Lead Time - How to Measure
439439

440440
Lead time is measured from the moment a new task is started until it is completed in production, reflecting the new functionality on which the team has worked.
441441

442-
### Representation
442+
### Lead Time - Representation
443443

444444
Lead time is represented as a minimum delivery value, maximum delivery value, median value, and average, measured in time (hours, days). For example: "Minimum delivery value" = 2 days, "Maximum delivery value" = 12 days, "Median value" = 7 days, "Average" = 7 days.
445445

446-
### Real-World Example
446+
### Lead Time - Real-World Example
447447

448448
Let's consider a software development company called AgileSoft, which has recently adopted DevOps practices. Before implementing DevOps, their lead time for delivering new features to production was around 20 days.
449449

@@ -455,21 +455,21 @@ This real-world example demonstrates the importance of measuring lead time, allo
455455

456456
## MTTR (Mean Time to Resolve): An In-Depth Look with a Real-World Example
457457

458-
### Definition
458+
### MTTR - Definition
459459
MTTR (Mean Time to Resolve) is a metric that helps us determine the amount of time it takes to recover from a production failure.
460460

461-
### Objective
461+
### MTTR - Objective
462462
The objective is to minimize this value as much as possible to reduce the recovery time from a production failure. It is recommended that this value be within the order of hours.
463463

464-
### How to Measure
464+
### MTTR - How to Measure
465465

466466
MTTR is measured from the time the error is reported until the production error is resolved. It starts from the incident (reported failure), proceeds with the corrective task, and finally ends with the resolution in production.
467467

468-
### Representation
468+
### MTTR - Representation
469469

470470
MTTR is represented as the total time of unplanned maintenance and the total number of times the failure was repaired. For example: "Total time of unplanned maintenance" = 44 hours, "Total number of times the failure was repaired" = 6, MTTR = 7.3 hours. It is measured over a period of 30 days, after which the values are evaluated to determine if they have increased or decreased (trend).
471471

472-
### Real-World Example
472+
### MTTR - Real-World Example
473473

474474
Let's take a look at a web hosting company called SwiftHost. They provide hosting services for various clients, and minimizing downtime is crucial for their business. Prior to implementing DevOps practices, their MTTR was around 12 hours, meaning it took them half a day on average to recover from a production failure.
475475

@@ -481,21 +481,21 @@ This real-world example highlights the importance of measuring MTTR, enabling or
481481

482482
## Change Failure Rate: An In-Depth Look with a Real-World Example
483483

484-
### Definition
484+
### Change Failure Rate - Definition
485485
Change Failure Rate is a measure of the frequency of failures that occur during deployments to production.
486486

487-
### Objective
487+
### Change Failure Rate - Objective
488488
The goal is to reduce the failure rate in production deployments by validating both the tests performed on the product and the quality issues throughout the development and production deployment cycle.
489489

490-
### How to Measure
490+
### Change Failure Rate - How to Measure
491491

492492
Change Failure Rate is measured by tracking each deployment and then taking the proportion of each one that has been successful or unsuccessful over time. It can also be measured by taking the total number of failed deployments divided by the total number of deployments (deployment frequency).
493493

494-
### Representation
494+
### Change Failure Rate - Representation
495495

496496
Change Failure Rate is represented as the total number of daily implementation failures, weekly implementation failures, and monthly implementation failures. For example: "Total daily failures" = 2, "Total weekly failures" = 4, "Total monthly failures" = 6.
497497

498-
### Real-World Example
498+
### Change Failure Rate - Real-World Example
499499

500500
Let's consider an e-commerce company called ShopEase. In the past, their Change Failure Rate was relatively high, with frequent production deployment failures causing disruption to their services and impacting customer satisfaction.
501501

@@ -507,20 +507,20 @@ By continuously measuring and working to optimize their Change Failure Rate, Sho
507507

508508
## Deployment Time: An In-Depth Look with a Real-World Example
509509

510-
### Definition
510+
### Deployment Time - Definition
511511
Deployment Time is a metric that helps us determine the time it takes to deploy an implementation in production.
512512

513-
### Objective
513+
### Deployment Time - Objective
514514
The objective of this metric is to understand the time it takes for a product to be deployed (in production) and identify any issues within all stages and processes of the product's deployment. The more automated and fewer approval stages (that generate bottlenecks) in the development cycle, the higher the value of this metric.
515515

516-
### How to Measure
516+
### Deployment Time - How to Measure
517517
Deployment Time is measured by calculating the time it takes for the product to be deployed in production. A deployment is considered complete once the product is running in production with new features, hotfixes, etc.
518518

519-
### Representation
519+
### Deployment Time - Representation
520520

521521
Deployment Time is represented as a minimum daily value (minutes), maximum daily value (minutes), and average daily value (minutes). For example: "Minimum daily value (minutes)" = 5 minutes, "Maximum daily value (minutes)" = 15 minutes, "Average daily value (minutes)" = 10 minutes.
522522

523-
### Real-World Example
523+
### Deployment Time - Real-World Example
524524

525525
Let's consider a mobile app development company called AppMakers. Previously, their Deployment Time was quite lengthy, taking up to 2 hours for a deployment to be completed. This slow deployment process made it difficult for them to respond quickly to customer needs and rapidly deliver new features and bug fixes.
526526

@@ -555,21 +555,21 @@ This real-world example emphasizes the importance of measuring MTTD, helping org
555555

556556
## Customer Satisfaction: An In-Depth Look with a Real-World Example
557557

558-
### Definition
558+
### Customer Satisfaction - Definition
559559
Customer Satisfaction is a metric that measures the overall happiness and satisfaction of customers with a product, service, or interaction. This metric helps companies understand their customers' needs and expectations, identify areas for improvement, and track the impact of changes made to enhance the customer experience.
560560

561-
### Objective
561+
### Customer Satisfaction - Objective
562562
The objective of Customer Satisfaction is to maintain and improve customer happiness by understanding their needs, preferences, and pain points. This metric enables organizations to prioritize improvements and monitor the effectiveness of changes made to their products or services.
563563

564-
### How to Measure
564+
### Customer Satisfaction - How to Measure
565565

566566
Customer Satisfaction can be measured using various methods, such as surveys, feedback forms, ratings, and reviews. Common survey methods include Net Promoter Score (NPS), Customer Satisfaction Score (CSAT), and Customer Effort Score (CES). By collecting and analyzing customer feedback, companies can identify trends, pinpoint areas for improvement, and track changes in satisfaction levels over time.
567567

568-
### Representation
568+
### Customer Satisfaction - Representation
569569

570570
Customer Satisfaction is typically represented as a percentage, score, or rating. For example, NPS is represented by a score ranging from -100 to +100, while CSAT is represented by an average rating on a scale of 1 to 5 or 1 to 10.
571571

572-
### Real-World Example
572+
### Customer Satisfaction - Real-World Example
573573

574574
Let's consider an e-commerce company called ShopTrendy. In the past, they received numerous complaints regarding their website's user interface and shipping times. This led to a decline in customer satisfaction, resulting in lower repeat business and a negative impact on their brand reputation.
575575

Infrastructure as Code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ choco install pulumi
5757
```
5858

5959
**Basic Pulumi Project Structure:**
60-
```
60+
```text
6161
my-infrastructure/
6262
├── Pulumi.yaml # Project metadata
6363
├── Pulumi.dev.yaml # Stack-specific configuration

README_NEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ python deployment_frequency.py --report
6767
```
6868

6969
### Example Output
70-
```
70+
```text
7171
DEPLOYMENT FREQUENCY REPORT
7272
============================================================
7373
Period: 2024-01-01 to 2024-01-31

gitops/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ metadata:
103103
104104
## Multi-Environment Setup
105105
106-
```
106+
```text
107107
.
108108
├── environments/
109109
│ ├── dev/

infrastructure/crossplane/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This directory contains Crossplane configurations for provisioning infrastructur
88

99
## Architecture
1010

11-
```
11+
```text
1212
crossplane/
1313
├── providers/ # Cloud provider configurations
1414
├── compositions/ # XR compositions for reusable infrastructure

scripts/ChangeFailureRate/change_failure_rate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,4 +697,3 @@ def create_example_config():
697697

698698
if __name__ == "__main__":
699699
main()
700-

scripts/ChangeFailureRate/metric.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# \!/usr/bin/env python3
1+
#!/usr/bin/env python3
22
import boto3
33

44
dynamodb = boto3.resource("dynamodb")
@@ -15,4 +15,3 @@
1515
)
1616

1717
print(f"Change Failure Rate: {change_failure_rate:.2%}")
18-

scripts/DeploymentFrequency/deployment_frequency.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,4 +491,3 @@ def main(config, output, output_file, push_gateway, report):
491491

492492
if __name__ == "__main__":
493493
main()
494-

0 commit comments

Comments
 (0)