You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doc explains how to do a release of the First Responder Kit scripts.
6
+
7
+
It's for internal use at BrentOzar.com, but other folks might find it useful.
8
+
9
+
Well, useful is probably the wrong word. More like entertaining. Here we go.
10
+
11
+
## Preparations
12
+
13
+
* Create a Milestone to tag issues/PRs as you work on them. In Github, go into Issues, Milestones (button at the top), and add a new milestone named YYYY-MM, like 2017-01.
14
+
* As you merge pull requests into the dev branch (or before), tag them with the milestone. This makes it easy to find the related issues when you go to write release notes.
15
+
16
+
17
+
## Finalize and Test the Code
18
+
19
+
* Make sure all issues in the milestone are closed - click Issues, Milestones, and it'll show the percent complete. If there's any issues you want to bump to the next round, add the next round's milestone and tag the issues with it.
20
+
* When enough PRs are in dev, do a round of code testing in 2008-2016 in the cloud lab.
21
+
* Copy all newly synced scripts to each VM and install in master
22
+
* Run _TestBed.sql: this has stored proc calls with common parameters. May have to add in new scenarios if new features are added.
23
+
* If it passes, bump all the version numbers inside the scripts.
24
+
* sp_foreachdb (no version number yet)
25
+
* sp_BlitzWho (no version number yet)
26
+
* sp_BlitzIndex @Version and @VersionDate
27
+
* sp_BlitzFirst @VersionDate (no version)
28
+
* sp_BlitzCache @Version and @VersionDate
29
+
* sp_Blitz @VersionDate (no version)
30
+
31
+
## Push to Master
32
+
33
+
* Push to the master branch from dev. (Make sure you're pushing FROM dev, TO master.)
34
+
* Draft a new release. Click Code, Releases, and edit one of the recent releases to get the Markdown syntax. Copy/paste that into a new release, and put the issue numbers for the relevant changes.
35
+
* Publish the release pointing at the current master branch code (not dev).
36
+
37
+
## Announce It
38
+
39
+
* Copy the FRK scripts into BrentOzar.com's First Responder Kit zip file (Employees/Products/Download Pack)
40
+
* Copy the old zip file's name, delete the old zip file, then create a new zip file with today's date, like First-Responder-Kit-20170126.zip.
41
+
* Upload it to u.brentozar.com (s3), set permissions so that it's readable by everyone. Delete the old zip file.
42
+
* Change the email download link by going into BrentOzar.com WordPress - click Forms, and in the form list, find First Responder Kit, Settings, Notifications, First Responder Kit. Edit the message to point to the new zip file name.
43
+
* Copy the Github release text into a WordPress blog post. The nice thing about doing the Github release first is that you should be able to copy/paste the Github release page and the HTML should paste smoothly into the WordPress draft window, complete with links to the Github issues. At the end of the post, put a download now link that points to: https://www.brentozar.com/first-aid/
44
+
* Create a Mailchimp announcement to people who subscribed to the FRK releases, linking directly to the zip file. (For now, Brent will do this part.)
@@ -3862,36 +3926,39 @@ IF @ProductVersionMajor >= 10 AND @ProductVersionMinor >= 50
3862
3926
''Query Store Disabled'',
3863
3927
''http://BrentOzar.com/go/querystore'',
3864
3928
(''The new SQL Server 2016 Query Store feature has not been enabled on this database.'')
3865
-
FROM [?].sys.database_query_store_options WHERE desired_state = 0 AND ''?'' NOT IN (''master'', ''model'', ''msdb'', ''tempdb'', ''DWConfiguration'', ''DWDiagnostics'', ''DWQueue'', ''ReportServer'', ''ReportServerTempDB'')';
3929
+
FROM [?].sys.database_query_store_options WHERE desired_state = 0
3930
+
AND ''?'' NOT IN (''master'', ''model'', ''msdb'', ''tempdb'', ''DWConfiguration'', ''DWDiagnostics'', ''DWQueue'', ''ReportServer'', ''ReportServerTempDB'')';
(''SQL 2016 RTM has a bug involving dumps that happen every time Query Store cleanup jobs run.'')
3891
-
FROM [?].sys.database_query_store_options WHERE desired_state <> 0 AND ''?'' NOT IN (''master'', ''model'', ''msdb'', ''tempdb'', ''DWConfiguration'', ''DWDiagnostics'', ''DWQueue'', ''ReportServer'', ''ReportServerTempDB'')';
3940
+
BEGIN
3941
+
SET @StringToExecute ='INSERT INTO #BlitzResults
3942
+
(CheckID,
3943
+
DatabaseName,
3944
+
Priority,
3945
+
FindingsGroup,
3946
+
Finding,
3947
+
URL,
3948
+
Details)
3949
+
SELECT TOP 1
3950
+
182,
3951
+
''Server'',
3952
+
20,
3953
+
''Reliability'',
3954
+
''Query Store Cleanup Disabled'',
3955
+
''http://BrentOzar.com/go/cleanup'',
3956
+
(''SQL 2016 RTM has a bug involving dumps that happen every time Query Store cleanup jobs run. This is fixed in CU1 and later: https://sqlserverupdates.com/sql-server-2016-updates/'')
3957
+
FROM sys.databases AS d
3958
+
WHERE d.is_query_store_on = 1;'
3959
+
EXECUTE(@StringToExecute)
3892
3960
END
3893
3961
3894
-
3895
3962
IFNOTEXISTS ( SELECT1
3896
3963
FROM #SkipChecks
3897
3964
WHERE DatabaseName ISNULLAND CheckID =41 )
@@ -4017,7 +4084,7 @@ IF @ProductVersionMajor >= 10 AND @ProductVersionMinor >= 50
4017
4084
''Licensing'',
4018
4085
''Enterprise Edition Features In Use'',
4019
4086
''http://BrentOzar.com/go/ee'',
4020
-
(''The ['' + DB_NAME() + ''] database is using '' + feature_name + ''. If this database is restored onto a Standard Edition server, the restore will fail.'')
4087
+
(''The ['' + DB_NAME() + ''] database is using '' + feature_name + ''. If this database is restored onto a Standard Edition server, the restore will fail on versions prior to 2016 SP1.'')
4021
4088
FROM [?].sys.dm_db_persisted_sku_features';
4022
4089
END;
4023
4090
END
@@ -5411,7 +5478,7 @@ IF @ProductVersionMajor >= 10 AND @ProductVersionMinor >= 50
5411
5478
BEGIN
5412
5479
5413
5480
/*This checks Windows version. It would be better if Microsoft gave everything a separate build number, but whatever.*/
5414
-
IF @ProductVersionMajor >=10AND @ProductVersionMinor >=50
5481
+
IF @ProductVersionMajor >=10
5415
5482
ANDNOTEXISTS ( SELECT1
5416
5483
FROM #SkipChecks
5417
5484
WHERE DatabaseName ISNULLAND CheckID =172 )
@@ -5954,7 +6021,7 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
5954
6021
5955
6022
END
5956
6023
5957
-
/* Add credits for the nice folks who put so much time into building and maintaining this for free: */
6024
+
/* Add credits for the nice folks who put so much time into building and maintaining this for free: */
5958
6025
INSERTINTO #BlitzResults
5959
6026
( CheckID ,
5960
6027
Priority ,
@@ -6281,6 +6348,7 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
0 commit comments