From 313508028c8e67b28ac371ed3cab495bb64abeeb Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Fri, 23 Apr 2021 09:45:29 +1000 Subject: [PATCH 1/9] Change from master to main for pipeline generation. --- eng/pipelines/pipeline-generation.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index f48ea8d16b8..4b55cb8bd8c 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -33,7 +33,7 @@ jobs: matrix: Java: RepositoryName: azure-sdk-for-java - Branch: master + Branch: main Prefix: java PublicOptions: '' InternalOptions: >- @@ -45,7 +45,7 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Android: RepositoryName: azure-sdk-for-android - Branch: master + Branch: main Prefix: android PublicOptions: '' InternalOptions: >- @@ -56,7 +56,7 @@ jobs: --variablegroup ${{ parameters.APIReview_AutoCreate_Configurations }} JavaScript: RepositoryName: azure-sdk-for-js - Branch: master + Branch: main Prefix: js PublicOptions: '' InternalOptions: >- @@ -68,7 +68,7 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Python: RepositoryName: azure-sdk-for-python - Branch: master + Branch: main Prefix: python PublicOptions: '' InternalOptions: >- @@ -79,7 +79,7 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Net: RepositoryName: azure-sdk-for-net - Branch: master + Branch: main Prefix: net PublicOptions: '' InternalOptions: >- @@ -91,7 +91,7 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Cpp: RepositoryName: azure-sdk-for-cpp - Branch: master + Branch: main Prefix: cpp PublicOptions: '' # Resource Provisioner is in InternalOptions and not TestOptions becasue C++ includes live tests in the unified pipelines From a7ae7a86fe548789a0e57d7f09a88a9ec37aeb90 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Fri, 23 Apr 2021 09:54:20 +1000 Subject: [PATCH 2/9] Update prepare pipelines template. --- .../templates/steps/prepare-pipelines.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/eng/common/pipelines/templates/steps/prepare-pipelines.yml b/eng/common/pipelines/templates/steps/prepare-pipelines.yml index a4b300dcaba..cdc1d367e89 100644 --- a/eng/common/pipelines/templates/steps/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/steps/prepare-pipelines.yml @@ -2,6 +2,9 @@ parameters: - name: Repository type: string default: $(Build.Repository.Name) + - name: Branch + type: string + default: main - name: Prefix type: string - name: CIConventionOptions @@ -30,7 +33,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug ${{parameters.CIConventionOptions}} @@ -48,7 +51,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug ${{parameters.UPConventionOptions}} @@ -66,7 +69,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug ${{parameters.TestsConventionOptions}} @@ -88,7 +91,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug --no-schedule @@ -107,7 +110,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug --no-schedule @@ -126,7 +129,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/${{parameters.Branch}} --patvar PATVAR --debug --no-schedule From b2dc65735c22456a42dd216044ef14a3863603e6 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 27 Apr 2021 13:13:42 +1000 Subject: [PATCH 3/9] Use default branch template. --- eng/pipelines/pipeline-generation.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index 4b55cb8bd8c..d78ad0fcc42 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -33,7 +33,6 @@ jobs: matrix: Java: RepositoryName: azure-sdk-for-java - Branch: main Prefix: java PublicOptions: '' InternalOptions: >- @@ -45,7 +44,6 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Android: RepositoryName: azure-sdk-for-android - Branch: main Prefix: android PublicOptions: '' InternalOptions: >- @@ -56,7 +54,6 @@ jobs: --variablegroup ${{ parameters.APIReview_AutoCreate_Configurations }} JavaScript: RepositoryName: azure-sdk-for-js - Branch: main Prefix: js PublicOptions: '' InternalOptions: >- @@ -68,7 +65,6 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Python: RepositoryName: azure-sdk-for-python - Branch: main Prefix: python PublicOptions: '' InternalOptions: >- @@ -79,7 +75,6 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Net: RepositoryName: azure-sdk-for-net - Branch: main Prefix: net PublicOptions: '' InternalOptions: >- @@ -91,7 +86,6 @@ jobs: TestOptions: '--variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }}' Cpp: RepositoryName: azure-sdk-for-cpp - Branch: main Prefix: cpp PublicOptions: '' # Resource Provisioner is in InternalOptions and not TestOptions becasue C++ includes live tests in the unified pipelines @@ -103,30 +97,31 @@ jobs: --variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }} steps: - template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml - script: | git clone https://github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName) cd $(Pipeline.Workspace)/$(RepositoryName) - git checkout $(Branch) + git checkout $(DefaultBranch) displayName: 'Clone repository: $(RepositoryName)' - script: | - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project public --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention ci --agentpool Hosted --branch refs/heads/$(Branch) --patvar PATVAR --debug $(PublicOptions) + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project public --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention ci --agentpool Hosted --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug $(PublicOptions) displayName: 'Generate public pipelines for: $(RepositoryName)' env: PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - script: | - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention up --agentpool Hosted --branch refs/heads/$(Branch) --patvar PATVAR --debug $(InternalOptions) $(TestOptions) + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention up --agentpool Hosted --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug $(InternalOptions) $(TestOptions) displayName: 'Generate internal pipelines for: $(RepositoryName)' env: PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - script: | - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention tests --agentpool Hosted --branch refs/heads/$(Branch) --patvar PATVAR --debug $(TestOptions) + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention tests --agentpool Hosted --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug $(TestOptions) displayName: 'Generate test pipelines for: $(RepositoryName)' condition: ne(variables['TestOptions'],'') env: PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) # - script: | - # pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix)-pr --devopspath "\$(Prefix)\pr" --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName)-pr --convention ci --agentpool Hosted --branch refs/heads/ $(Branch) --patvar PATVAR --debug + # pipeline-generator --organization https://dev.azure.com/azure-sdk --project internal --prefix $(Prefix)-pr --devopspath "\$(Prefix)\pr" --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName)-pr --convention ci --agentpool Hosted --branch refs/heads/ $(DefaultBranch) --patvar PATVAR --debug # displayName: 'Generate internal pipelines for: $(RepositoryName)-pr' # env: # PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) From 5f490644195fbd38594b7b1de8466bb7fd29a419 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 27 Apr 2021 13:16:19 +1000 Subject: [PATCH 4/9] Update prepare-pipelines as well. --- .../templates/steps/prepare-pipelines.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/eng/common/pipelines/templates/steps/prepare-pipelines.yml b/eng/common/pipelines/templates/steps/prepare-pipelines.yml index cdc1d367e89..3e527e2feb2 100644 --- a/eng/common/pipelines/templates/steps/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/steps/prepare-pipelines.yml @@ -2,8 +2,6 @@ parameters: - name: Repository type: string default: $(Build.Repository.Name) - - name: Branch - type: string default: main - name: Prefix type: string @@ -19,7 +17,7 @@ parameters: steps: - template: install-pipeline-generation.yml - + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml # This covers our public repos. - ${{ if not(endsWith(parameters.Repository, '-pr'))}}: - script: > @@ -33,7 +31,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.CIConventionOptions}} @@ -51,7 +49,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.UPConventionOptions}} @@ -69,7 +67,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.TestsConventionOptions}} @@ -91,7 +89,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule @@ -110,7 +108,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule @@ -129,7 +127,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/${{parameters.Branch}} + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule From 2706e9cb385815ca5d163cc93ecbea35c58288f0 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 27 Apr 2021 13:21:27 +1000 Subject: [PATCH 5/9] Checkout default branch for this pipeline generation approach. --- eng/pipelines/pipeline-generation.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index d78ad0fcc42..5de57f33fea 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -97,12 +97,14 @@ jobs: --variablegroup ${{ parameters.Secrets_for_Resource_Provisioner }} steps: - template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml - - template: /eng/common/pipelines/templates/steps/set-default-branch.yml - script: | git clone https://github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName) cd $(Pipeline.Workspace)/$(RepositoryName) - git checkout $(DefaultBranch) + git checkout - displayName: 'Clone repository: $(RepositoryName)' + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml + parameters: + WorkingDirectory: $(Pipeline.Workspace)/$(RepositoryName) - script: | $(Pipeline.Workspace)/pipeline-generator/pipeline-generator --organization https://dev.azure.com/azure-sdk --project public --prefix $(Prefix) --path $(Pipeline.Workspace)/$(RepositoryName)/sdk --endpoint Azure --repository Azure/$(RepositoryName) --convention ci --agentpool Hosted --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug $(PublicOptions) displayName: 'Generate public pipelines for: $(RepositoryName)' From 5a92ae817a843d784a3540117f23245d3eef122f Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 27 Apr 2021 13:25:05 +1000 Subject: [PATCH 6/9] Don't need checkout. --- eng/pipelines/pipeline-generation.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index 5de57f33fea..90d02f43274 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -100,7 +100,6 @@ jobs: - script: | git clone https://github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName) cd $(Pipeline.Workspace)/$(RepositoryName) - git checkout - displayName: 'Clone repository: $(RepositoryName)' - template: /eng/common/pipelines/templates/steps/set-default-branch.yml parameters: From 23e2ba03aa2aecbb1a9ca5a73b46a66d6288d0d7 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 27 Apr 2021 13:25:49 +1000 Subject: [PATCH 7/9] Remove default line. --- .../templates/steps/prepare-pipelines.yml | 1 - .../local.settings.Designer.cs | 242 ++++++++++++++++++ 2 files changed, 242 insertions(+), 1 deletion(-) create mode 100644 tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs diff --git a/eng/common/pipelines/templates/steps/prepare-pipelines.yml b/eng/common/pipelines/templates/steps/prepare-pipelines.yml index 3e527e2feb2..47fc611316d 100644 --- a/eng/common/pipelines/templates/steps/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/steps/prepare-pipelines.yml @@ -2,7 +2,6 @@ parameters: - name: Repository type: string default: $(Build.Repository.Name) - default: main - name: Prefix type: string - name: CIConventionOptions diff --git a/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs b/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs new file mode 100644 index 00000000000..db9508de665 --- /dev/null +++ b/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace Azure.Sdk.Tools.CheckEnforcer { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("local")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class local : global::System.Data.DataSet { + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public local() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected local(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataSet Clone() { + local cln = ((local)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars(bool initTable) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.DataSetName = "local"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/local.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + local ds = new local(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } +} + +#pragma warning restore 1591 \ No newline at end of file From 38c126689829fe5b3b668ca95604cdd424403ca0 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Wed, 28 Apr 2021 07:36:49 +1000 Subject: [PATCH 8/9] Remove CD operation. --- eng/pipelines/pipeline-generation.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index 90d02f43274..333df20b7c2 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -99,7 +99,6 @@ jobs: - template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml - script: | git clone https://github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName) - cd $(Pipeline.Workspace)/$(RepositoryName) displayName: 'Clone repository: $(RepositoryName)' - template: /eng/common/pipelines/templates/steps/set-default-branch.yml parameters: From 08c583d93c38578318964a8787b5817575c821ee Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Wed, 28 Apr 2021 14:20:21 +1000 Subject: [PATCH 9/9] Remove designer file. --- .../local.settings.Designer.cs | 242 ------------------ 1 file changed, 242 deletions(-) delete mode 100644 tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs diff --git a/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs b/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs deleted file mode 100644 index db9508de665..00000000000 --- a/tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/local.settings.Designer.cs +++ /dev/null @@ -1,242 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable 1591 - -namespace Azure.Sdk.Tools.CheckEnforcer { - - - /// - ///Represents a strongly typed in-memory cache of data. - /// - [global::System.Serializable()] - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] - [global::System.Xml.Serialization.XmlRootAttribute("local")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class local : global::System.Data.DataSet { - - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public local() { - this.BeginInit(); - this.InitClass(); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - base.Relations.CollectionChanged += schemaChangedHandler; - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected local(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context, false) { - if ((this.IsBinarySerialized(info, context) == true)) { - this.InitVars(false); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - this.Tables.CollectionChanged += schemaChangedHandler1; - this.Relations.CollectionChanged += schemaChangedHandler1; - return; - } - string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); - if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - } - this.GetSerializationData(info, context); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - this.Relations.CollectionChanged += schemaChangedHandler; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.BrowsableAttribute(true)] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { - get { - return this._schemaSerializationMode; - } - set { - this._schemaSerializationMode = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataTableCollection Tables { - get { - return base.Tables; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataRelationCollection Relations { - get { - return base.Relations; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void InitializeDerivedDataSet() { - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataSet Clone() { - local cln = ((local)(base.Clone())); - cln.InitVars(); - cln.SchemaSerializationMode = this.SchemaSerializationMode; - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override bool ShouldSerializeTables() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override bool ShouldSerializeRelations() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { - if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - this.Reset(); - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXml(reader); - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXml(reader); - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { - global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); - this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); - stream.Position = 0; - return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.InitVars(true); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars(bool initTable) { - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.DataSetName = "local"; - this.Prefix = ""; - this.Namespace = "http://tempuri.org/local.xsd"; - this.EnforceConstraints = true; - this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - local ds = new local(); - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); - any.Namespace = ds.Namespace; - sequence.Items.Add(any); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } -} - -#pragma warning restore 1591 \ No newline at end of file