Skip to content

Commit b9695da

Browse files
authored
Merge pull request #3445 from BrentOzarULTD/dev
2024-02-22 Release
2 parents ab68347 + ea26dd4 commit b9695da

33 files changed

+1286
-387
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: First Responder Kit Integration Tests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, review_requested, synchronize]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
SQL_ENGINE_VERSION: [2017,2019,2022]
16+
COLLATION: [SQL_Latin1_General_CP1_CS_AS]
17+
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Install SqlServer Module
24+
shell: pwsh
25+
run: |
26+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
27+
Install-Module SqlServer
28+
29+
- name: Install SQL Server
30+
uses: potatoqualitee/mssqlsuite@v1.7
31+
with:
32+
install: sqlengine
33+
version: ${{ matrix.SQL_ENGINE_VERSION }}
34+
collation: ${{ matrix.COLLATION }}
35+
36+
- name: Check SQL Install
37+
run: |
38+
sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT @@version as Version;" -I -b -t 60
39+
sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT SERVERPROPERTY('Collation') AS Collation;" -I -b -t 60
40+
41+
- name: Deploy FRK
42+
run: |
43+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzCache.sql" -I -b -t 60
44+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzWho.sql" -I -b -t 60
45+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_Blitz.sql" -I -b -t 60
46+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzFirst.sql" -I -b -t 60
47+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzAnalysis.sql" -I -b -t 60
48+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzBackups.sql" -I -b -t 60
49+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzIndex.sql" -I -b -t 60
50+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzInMemoryOLTP.sql" -I -b -t 60
51+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzLock.sql" -I -b -t 60
52+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzQueryStore.sql" -I -b -t 60
53+
sqlcmd -S localhost -U sa -P dbatools.I0 -d master -Q "SELECT * FROM sys.procedures WHERE name LIKE 'sp_Blitz%';" -I -b -t 60
54+
55+
- name: Run Pester Tests
56+
shell: pwsh
57+
run: |
58+
cd tests
59+
./run-tests.ps1

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Note that if you're not ready to get started coding in the next week, or if you
4242

4343
We're not picky at all about style, but a few things to know:
4444

45+
Don't touch the files that start with Install, like Install-All-Scripts.sql. Those are dynamically generated. You only have to touch the ones that start with sp_.
46+
4547
Your code needs to compile & run on all currently supported versions of SQL Server. It's okay if functionality degrades, like if not all features are available, but at minimum the code has to compile and run.
4648

4749
Your code must handle:

Deprecated/sp_BlitzIndex_SQL_Server_2005.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Known limitations of this version:
4343
-- Example 1: index creates use ONLINE=? instead of ONLINE=ON / ONLINE=OFF. This is because it's important for the user to understand if it's going to be offline and not just run a script.
4444
-- Example 2: they do not include all the options the index may have been created with (padding, compression filegroup/partition scheme etc.)
4545
-- (The compression and filegroup index create syntax isn't trivial because it's set at the partition level and isn't trivial to code. Two people have voted for wanting it so far.)
46-
- Doesn't advise you about data modeling for clustered indexes and primary keys (primarily looks for signs of insanity.)
46+
- Doesn't advise you about data modeling for clustered indexes and primary keys (primarily looks for signs of problems.)
4747
- Found something? Let us know at help@brentozar.com.
4848
4949
Thanks for using sp_BlitzIndex(TM)!

0 commit comments

Comments
 (0)