Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release Alpha
run-name: Release Alpha ${{ github.actor }} ${{ github.event_name }}
run-name: Release Alpha ${{ inputs.version }} ${{ github.actor }} ${{ github.event_name }}

on:
workflow_dispatch:
Expand All @@ -9,6 +9,9 @@ on:
required: false
default: 'main'

permissions:
contents: read

jobs:
create-alpha-tag:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,9 +45,9 @@ jobs:
fi
git tag "$TAG"
git push origin "$TAG"
echo "Created tag from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)"
git push origin "$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
call-release:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- cron: '0 9 * * 3'
workflow_dispatch:

permissions:
contents: read

jobs:
get-configs:
uses: ./.github/workflows/configs.yml
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ run-name: Release Beta ${{ inputs.version }} ${{ github.actor }} ${{ github.even
on:
workflow_dispatch:

permissions:
contents: read

jobs:
create-beta-tag:
runs-on: ubuntu-latest
Expand All @@ -30,9 +33,9 @@ jobs:

TAG="v${PKG_VERSION}-beta"
git tag "$TAG"
git push origin "$TAG"
echo "Created tag from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)"

git push origin "$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT

call-release:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
get-configs:
uses: ./.github/workflows/configs.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ main ]

permissions:
contents: read

jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
description: "Application name"
value: ${{ jobs.get-app-name.outputs.app-name }}

permissions:
contents: read

jobs:
get-versions:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [opened, edited, reopened, synchronize]
branches: [ main ]

permissions:
contents: read

jobs:
get-configs:
uses: ./.github/workflows/configs.yml
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
promote-beta-to-prod:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,9 +49,9 @@ jobs:

# Create and push production tag
git tag "$PROD_TAG"
git push origin "$PROD_TAG"

echo "Created tag from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)"

git push origin "$PROD_TAG"
echo "tag=$PROD_TAG" >> $GITHUB_OUTPUT

call-release:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
get-configs:
uses: ./.github/workflows/configs.yml
Expand Down
15 changes: 8 additions & 7 deletions tools/benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env node --expose-gc

import { TelemetryService } from '../src/telemetry/TelemetryService';
import { LoggerFactory } from '../src/telemetry/LoggerFactory';

LoggerFactory.initialize('silent');
TelemetryService.initialize(undefined, {
telemetryEnabled: false,
});

import { ContextManager } from '../src/context/ContextManager';
import { SyntaxTreeManager } from '../src/context/syntaxtree/SyntaxTreeManager';
import { readFileSync, writeFileSync, readdirSync, existsSync, mkdirSync } from 'fs';
Expand All @@ -9,8 +17,6 @@ import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { discoverTemplateFiles, generatePositions, TestPosition } from './utils';
import { DocumentType } from '../src/document/Document';
import { TelemetryService } from '../src/telemetry/TelemetryService';
import { LoggerFactory } from '../src/telemetry/LoggerFactory';

/**
* This script benchmarks the performance of context resolution for CloudFormation templates,
Expand Down Expand Up @@ -854,11 +860,6 @@ function main(): void {
process.exit(1);
}

LoggerFactory.initialize('silent');
TelemetryService.initialize(undefined, {
telemetryEnabled: false,
});

console.log(`📋 Found ${templateFiles.length} template files (sorted by size):`);
for (const { name, documentType, size } of templateFiles) {
const sizeKB = (size / 1024).toFixed(2);
Expand Down
Loading