text:
Test automation failed on standard MS test framework when it  ran using devops pipeline

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
Test automation failed on standard MS test framework when it's run using devops pipeline. (if we try to reproduce that on a docker container using UI it seems that it can be done just after the container creation. If we wait a little bit we don't have the error)
here below the test app content :
codeunit 50198 "CCO Tests"
{
    Subtype = Test;
    TestPermissions = Disabled;

    var
        Assert: Codeunit Assert;
        UtilityLib: Codeunit "Library - Utility";

    [Test]
    /// <summary>
    /// Description for TestAssignedUserID.
    /// </summary>
    procedure TestAssignedUserID()
    var
        SalesHeader: Record "Sales Header";
        LibrarySales: codeunit "Library - Sales";
    begin

        //Test Sales Invoice
        LibrarySales.CreateSalesInvoice(SalesHeader);

    end;
}

here below the error :
##[warning]CCO Tests:TestAssignedUserID: We could not update the data right now.\Please try again later.\\Technical details:\A record in table Sales Line was locked for use in another session. Administrators can see current locks on the Database Locks page or use telemetry. (Snapshot ID: a2b522e5-0d3f-430f-b75e-6a50beaa7b50)
Scripts used to create container and cause the issue
I don't know @megel and @tfenster will complete.
Full output of scripts
2021-06-03T20:37:02.8188155Z ##[section]Starting: ALOps Run TestSuite
2021-06-03T20:37:02.8474324Z ==============================================================================
2021-06-03T20:37:02.8474617Z Task         : ALOps App Test
2021-06-03T20:37:02.8474846Z Description  : Run AL-TestSuite for Business Central
2021-06-03T20:37:02.8475050Z Version      : 1.442.2488
2021-06-03T20:37:02.8475241Z Author       : Hodor
2021-06-03T20:37:02.8475486Z Help         : Run Business Central Test-Suite and collect results.
2021-06-03T20:37:02.8475770Z ==============================================================================
2021-06-03T20:37:05.0673086Z *** Validate configuration
2021-06-03T20:37:05.4068476Z *** Task Inputs:
2021-06-03T20:37:05.4144636Z
2021-06-03T20:37:05.4265115Z name                           value
2021-06-03T20:37:05.4268614Z ----                           -----
2021-06-03T20:37:05.4272981Z usedocker                       True
2021-06-03T20:37:05.4276329Z fixed_tag
2021-06-03T20:37:05.4278470Z nav_serverinstance             BC140
2021-06-03T20:37:05.4280708Z tenant                       default
2021-06-03T20:37:05.4282655Z companyname
2021-06-03T20:37:05.4285069Z profile
2021-06-03T20:37:05.4287141Z bc_username
2021-06-03T20:37:05.4289104Z bc_password
2021-06-03T20:37:05.4291319Z bc_authentication    NavUserPassword
2021-06-03T20:37:05.4293413Z bc_webclient_url
2021-06-03T20:37:05.4295960Z testfilter
2021-06-03T20:37:05.4298098Z disabledtests
2021-06-03T20:37:05.4300159Z show_available_tests           False
2021-06-03T20:37:05.4302500Z import_testtoolkit             False
2021-06-03T20:37:05.4304849Z import_action              Overwrite
2021-06-03T20:37:05.4307142Z testpage                      130455
2021-06-03T20:37:05.4309067Z testsuite                    DEFAULT
2021-06-03T20:37:05.4310969Z extensionid
2021-06-03T20:37:05.4312940Z installaltesttool              False
2021-06-03T20:37:05.4314923Z failed_test_action           Warning
2021-06-03T20:37:05.4316825Z override_finsql_path
2021-06-03T20:37:05.4318699Z resultfilename       TestResults.xml
2021-06-03T20:37:05.4318914Z
2021-06-03T20:37:05.4341534Z
2021-06-03T20:37:05.4350434Z
2021-06-03T20:37:05.4512404Z *** For documentation, please visit   : https://www.alops.be/documentation
2021-06-03T20:37:05.4515457Z
2021-06-03T20:37:05.6587524Z *** ALOps License:
2021-06-03T20:37:05.6606495Z   *
2021-06-03T20:37:05.6609872Z
2021-06-03T20:37:05.6720560Z *** Importing required PS-Functions
2021-06-03T20:37:05.9293804Z *** Working folder: C:\azp\agent_work\1\s
2021-06-03T20:37:05.9301196Z ***
2021-06-03T20:37:05.9309420Z *** Prepare Docker Session
2021-06-03T20:37:06.0678557Z *** Connect Docker Session
2021-06-03T20:37:06.0776209Z *** Initiate Docker Session
2021-06-03T20:37:06.0866192Z *** Direct PSSession to other container [4b5876847abf34d7efeabaa7a4b181ecbd560988916e356a4152ee2a1cb8f08b]
2021-06-03T20:37:06.2124839Z *** Container resolved to hostname [4b5876847abf]
2021-06-03T20:37:06.6184331Z *** Set Docker Container ErrorActionPreference = Stop
2021-06-03T20:37:06.9357357Z *** Copy Modules to Docker
2021-06-03T20:37:18.2374279Z *** Setup Docker Session
2021-06-03T20:37:18.4270621Z *** Checking for container-specific Test Assemblies
2021-06-03T20:37:18.4274856Z *** Using container-specific Test Assemblies
2021-06-03T20:37:18.4364427Z *** Import Modules in Docker Session
2021-06-03T20:37:18.8163796Z *** Import UI Client [C:\Run\DevOps\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2021-06-03T20:37:18.8257906Z VERBOSE: Loading module from path 'C:\Run\DevOps\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll'.
2021-06-03T20:37:18.8260290Z *** Import NewtonSoft JSON [C:\Program Files\Microsoft Dynamics NAV\180\Service\Newtonsoft.Json.dll]
2021-06-03T20:37:18.8278494Z *** Import Modules in Docker Session: class_ClientContext
2021-06-03T20:37:22.0553708Z *** Test Context Url: https://4b5876847abf/BC/cs?tenant=default
2021-06-03T20:37:22.0562355Z *** Setup BC Credentials in Docker
2021-06-03T20:37:22.2405509Z *** Resolve Docker Credentials
2021-06-03T20:37:22.2555791Z *** Set TCP Keep-Alive
2021-06-03T20:37:22.2993728Z *** Start TestSuite
2021-06-03T20:37:22.9284541Z *** Running TestSuite with authentication [NavUserPassword] with User [admin]
2021-06-03T20:37:22.9286282Z *** Run warm-up with page [130455]
2021-06-03T20:37:22.9287652Z *** Warm-up Client Context
2021-06-03T20:37:48.1437601Z *** Create Client Context
2021-06-03T20:37:50.8065611Z *** Run Available Tests for suite [DEFAULT] with page [130455]
2021-06-03T20:37:50.8079458Z *** Connect TestClient with page [130455]
2021-06-03T20:38:15.2975736Z   Codeunit 50198 CCO Tests Failure (21.602 seconds)
2021-06-03T20:38:15.2976507Z     Testfunction TestAssignedUserID Failure (19.476 seconds)
2021-06-03T20:38:15.3012314Z False
2021-06-03T20:38:15.3012765Z *** XUnit Test results: c:\Run\DevOps\TestResults.xml
2021-06-03T20:38:15.3026589Z
2021-06-03T20:38:15.3027020Z
2021-06-03T20:38:15.3027696Z
2021-06-03T20:38:15.3028892Z
2021-06-03T20:38:15.3030367Z
2021-06-03T20:38:15.3031189Z
2021-06-03T20:38:15.3032413Z           We could not update the data right now.\Please try again later.\Technical details:\A record in table Sales Line was locked for use in another session. Administrators can see current locks on the Database Locks page or use telemetry. (Snapshot ID: a2b522e5-0d3f-430f-b75e-6a50beaa7b50)
2021-06-03T20:38:15.3033751Z           "Document Totals"(CodeUnit 57).CalculateSalesPageTotals line 8 - Base Application by Microsoft
2021-06-03T20:38:15.3034378Z "Document Totals"(CodeUnit 57).CalculateSalesTotals line 2 - Base Application by Microsoft
2021-06-03T20:38:15.3034968Z "Sales Invoice Aggregator"(CodeUnit 5477).AssignTotalsFromSalesLine line 12 - Base Application by Microsoft
2021-06-03T20:38:15.3035581Z "Sales Invoice Aggregator"(CodeUnit 5477).ModifyTotalsSalesLine line 17 - Base Application by Microsoft
2021-06-03T20:38:15.3036181Z "Sales Invoice Aggregator"(CodeUnit 5477).OnAfterInsertSalesLine line 8 - Base Application by Microsoft
2021-06-03T20:38:15.3036781Z "Library - Sales"(CodeUnit 130509).CreateSalesLineSimple line 9 - Tests-TestLibraries by Microsoft
2021-06-03T20:38:15.3037354Z "Library - Sales"(CodeUnit 130509).CreateSalesLineWithShipmentDate line 2 - Tests-TestLibraries by Microsoft
2021-06-03T20:38:15.3038366Z "Library - Sales"(CodeUnit 130509).CreateSalesLine line 2 - Tests-TestLibraries by Microsoft
2021-06-03T20:38:15.3038969Z "Library - Sales"(CodeUnit 130509).CreateSalesInvoiceForCustomerNo line 8 - Tests-TestLibraries by Microsoft
2021-06-03T20:38:15.3039564Z "Library - Sales"(CodeUnit 130509).CreateSalesInvoice line 2 - Tests-TestLibraries by Microsoft
2021-06-03T20:38:15.3040146Z "CCO Tests"(CodeUnit 50198).TestAssignedUserID line 7 - TestBuildFailed-Tests by
2021-06-03T20:38:15.3040682Z "Test Runner - Mgt"(CodeUnit 130454).RunTests - Test Runner by Microsoft
2021-06-03T20:38:15.3041196Z "Test Runner - Isol. Codeunit"(CodeUnit 130450).OnRun - Test Runner by Microsoft
2021-06-03T20:38:15.3041705Z "Test Suite Mgt."(CodeUnit 130456).RunTests - Test Runner by Microsoft
2021-06-03T20:38:15.3042202Z "Test Suite Mgt."(CodeUnit 130456).RunSelectedTests - Test Runner by Microsoft
2021-06-03T20:38:15.3042763Z "Command Line Test Tool"(Page 130455)."RunSelectedTests - OnAction" - Test Runner by Microsoft
2021-06-03T20:38:15.3044465Z
2021-06-03T20:38:15.3044734Z
2021-06-03T20:38:15.3044974Z
2021-06-03T20:38:15.3045217Z
2021-06-03T20:38:15.3045477Z
2021-06-03T20:38:15.3045630Z
2021-06-03T20:38:15.3483559Z *** Get XUnit Test file from [c:\Run\DevOps\TestResults.xml] to [C:\azp\agent_work\1\s\TestResults.xml]
2021-06-03T20:38:16.2256331Z
2021-06-03T20:38:16.2287168Z *** Disconnect Docker session.
2021-06-03T20:38:16.2489818Z *** Docker session removed.
2021-06-03T20:38:16.2726257Z ##[warning]CCO Tests:TestAssignedUserID: We could not update the data right now.\Please try again later.\Technical details:\A record in table Sales Line was locked for use in another session. Administrators can see current locks on the Database Locks page or use telemetry. (Snapshot ID: a2b522e5-0d3f-430f-b75e-6a50beaa7b50)
2021-06-03T20:38:16.2809952Z ##[warning]*** Running Tests failed.
2021-06-03T20:38:16.2837793Z *** Cleanup VSTS Environment: True
2021-06-03T20:38:18.6043110Z ##[section]Finishing: ALOps Run TestSuite
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context

does it happen all the time?
yes with devops pipeline
did it use to work?
yes on BC17 Saas version it's seems not working since BC18.1 Saas version
tested version where we have the issue
sandbox-18.1.24822.26355-base-mt & sandbox-18.2.26224.0-base-mt

I think this is an ALOps issue.

I would need a repro script which I can run on my machine in if I am to look into this.

@freddydk : I close it for the moment and will knock at AlOps doors
FYI @megel @tfenster

@freddydk  @waldo1001  identified a BC error :)
FYI @tfenster

As I got this issue through the ALOps support - I looked into it, and basically just ran the codeunit in a BC client.  This seems to be a difference in behavior of the test suite (library).
Settings:

Type: sandbox
version: 18.2
country: base
multitenant: yes

Testcode:
    [Test]
    procedure TestAssignedUserID()
    var
        SalesHeader: Record "Sales Header";
        LibrarySales: codeunit "Library - Sales";
    begin
        //Test Sales Invoice
        LibrarySales.CreateSalesInvoice(SalesHeader);
    end;

When you run the test in the AL Test Suite (no bccontainerhelper, no alops) - same error:

The error with callstack:
Error Message: We could not update the data right now.
Please try again later.

Technical details:
A record in table Sales Line was locked for use in another session. Administrators can see current locks on the Database Locks page or use telemetry. (Snapshot ID: 61ac458d-3f91-4173-8158-dccd38d9f768) - Error Call Stack:

"Document Totals"(CodeUnit 57).CalculateSalesPageTotals line 8 - Base Application by Microsoft
"Document Totals"(CodeUnit 57).CalculateSalesTotals line 2 - Base Application by Microsoft
"Sales Invoice Aggregator"(CodeUnit 5477).AssignTotalsFromSalesLine line 12 - Base Application by Microsoft
"Sales Invoice Aggregator"(CodeUnit 5477).ModifyTotalsSalesLine line 17 - Base Application by Microsoft
"Sales Invoice Aggregator"(CodeUnit 5477).OnAfterInsertSalesLine line 8 - Base Application by Microsoft
"Library - Sales"(CodeUnit 130509).CreateSalesLineSimple line 9 - Tests-TestLibraries by Microsoft
"Library - Sales"(CodeUnit 130509).CreateSalesLineWithShipmentDate line 2 - Tests-TestLibraries by Microsoft
"Library - Sales"(CodeUnit 130509).CreateSalesLine line 2 - Tests-TestLibraries by Microsoft
"Library - Sales"(CodeUnit 130509).CreateSalesInvoiceForCustomerNo line 8 - Tests-TestLibraries by Microsoft
"Library - Sales"(CodeUnit 130509).CreateSalesInvoice line 2 - Tests-TestLibraries by Microsoft
"CCO Tests"(CodeUnit 50198).TestAssignedUserID line 7 - testautoissue-Tests by COSMO CONSULT
"Test Runner - Mgt"(CodeUnit 130454).RunTests - Test Runner by Microsoft
"Test Runner - Isol. Codeunit"(CodeUnit 130450).OnRun - Test Runner by Microsoft
"Test Suite Mgt."(CodeUnit 130456).RunTests - Test Runner by Microsoft
"Test Suite Mgt."(CodeUnit 130456).RunTestSuiteSelection - Test Runner by Microsoft
"AL Test Tool"(Page 130451)."RunTests - OnAction" - Test Runner by Microsoft

@freddydk : any update around this topic ? Do you need something ?

Thanks for the info @waldo1001
I have seen this kind of error before if the taskscheduler is running at the same time as tests are running - could you check and potentially disable taskscheduler?

@waldo1001 @freddydk : it was a task scheduler issue. I close the point.

authors: freddydk titofffffff waldo1001


text:
RunAlPipeline sometimes fails with error AL0445 when two reports use the same layout

Describe the issue
I have two reports which use the same rdlc-layout. Building in VS Code works. When running in DevOps the build fails with error AL0445: The file 'src/report/CommissionStatement.rdlc' is opened in another application.
Full output of scripts
2022-08-04T08:28:12.1031928Z ##[section]Starting: Run Pipeline
2022-08-04T08:28:12.1308122Z ==============================================================================
2022-08-04T08:28:12.1308723Z Task         : PowerShell
2022-08-04T08:28:12.1309205Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2022-08-04T08:28:12.1309683Z Version      : 2.200.0
2022-08-04T08:28:12.1310070Z Author       : Microsoft Corporation
2022-08-04T08:28:12.1310749Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2022-08-04T08:28:12.1311436Z ==============================================================================
2022-08-04T08:28:13.8777634Z Generating script.
2022-08-04T08:28:13.8850177Z Formatted command: . 'C:\agent\_work\442\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "current" -appBuild 11860 -appRevision 0
2022-08-04T08:28:13.9348995Z ========================== Starting Command Output ===========================
2022-08-04T08:28:13.9683798Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\e850781b-91f8-4414-9517-75487e7f48de.ps1'"
2022-08-04T08:28:14.8213925Z Set artifact = ///de/
2022-08-04T08:28:14.8253521Z Set pipelineName = LeBit365 Provision-current
2022-08-04T08:28:14.8326950Z Set containerName = lvserver19-lebit365provision-current
2022-08-04T08:28:14.8553720Z Set installApps = ''
2022-08-04T08:28:14.8569954Z Set installTestApps = ''
2022-08-04T08:28:14.8606357Z Set previousApps = '\\lbserver20\Software_Business\apps\LeBit365_Provisionsmodul\latest.zip'
2022-08-04T08:28:14.8644109Z Set appSourceCopMandatoryAffixes = 'lbt com'
2022-08-04T08:28:14.8660439Z Set appSourceCopSupportedCountries = ''
2022-08-04T08:28:14.8695197Z Set appFolders = 'app'
2022-08-04T08:28:14.8731398Z Set testFolders = 'test'
2022-08-04T08:28:14.8747675Z Set memoryLimit = ''
2022-08-04T08:28:14.8766850Z Set additionalCountries = ''
2022-08-04T08:28:14.8783904Z Set genericImageName = ''
2022-08-04T08:28:14.8802304Z Set vaultNameForLocal = ''
2022-08-04T08:28:14.8829319Z Set bcContainerHelperVersion = ''
2022-08-04T08:28:14.8853778Z Set licenseFile = ''
2022-08-04T08:28:14.8915781Z Set rulesetFile = 'scripts/lebit.ruleset.json'
2022-08-04T08:28:15.3883058Z Searching \\lbserver20\Software_Business\apps\LeBit365_Provisionsmodul\latest.zip
2022-08-04T08:28:15.4171486Z Found \\lbserver20\Software_Business\apps\LeBit365_Provisionsmodul\latest.zip
2022-08-04T08:28:15.4322749Z Set installTestRunner = True
2022-08-04T08:28:15.4410258Z Set installTestFramework = True
2022-08-04T08:28:15.4473018Z Set installTestLibraries = True
2022-08-04T08:28:15.4495621Z Set installPerformanceToolkit = False
2022-08-04T08:28:15.4556943Z Set enableCodeCop = True
2022-08-04T08:28:15.4617572Z Set enableAppSourceCop = True
2022-08-04T08:28:15.4677975Z Set enablePerTenantExtensionCop = False
2022-08-04T08:28:15.4738536Z Set enableUICop = True
2022-08-04T08:28:15.4799003Z Set enableBcLntrCop = True
2022-08-04T08:28:15.4823091Z Set doNotSignApps = False
2022-08-04T08:28:15.4846581Z Set doNotRunTests = False
2022-08-04T08:28:15.4870835Z Set cacheImage = False
2022-08-04T08:28:15.4931496Z Set CreateRuntimePackages = True
2022-08-04T08:28:16.3885659Z BcContainerHelper version 3.0.11
2022-08-04T08:28:16.4502991Z Setting hostHelperFolder = C:\ProgramData\BcContainerHelper
2022-08-04T08:28:16.4612142Z Setting genericImageName = mcr.microsoft.com/businesscentral:{0}
2022-08-04T08:28:16.4700760Z Setting bcartifactsCacheFolder = c:\bcartifacts.cache
2022-08-04T08:28:16.8132537Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-08-04T08:28:23.1690222Z Determining artifacts to use
2022-08-04T08:28:51.4729342Z   _____                               _
2022-08-04T08:28:51.4747179Z  |  __ \                             | |
2022-08-04T08:28:51.4765554Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___
2022-08-04T08:28:51.4781629Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2022-08-04T08:28:51.4796357Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2022-08-04T08:28:51.4812927Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2022-08-04T08:28:51.4822645Z
2022-08-04T08:28:51.4840124Z Pipeline name               LeBit365 Provision-current
2022-08-04T08:28:51.4858352Z Container name              lvserver19-lebit365provision-current
2022-08-04T08:28:51.4875129Z Image name
2022-08-04T08:28:51.4892025Z ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/20.3.42673.44596/de
2022-08-04T08:28:51.4907844Z SasToken                    Not Specified
2022-08-04T08:28:51.4924917Z BcAuthContext               Not Specified
2022-08-04T08:28:51.4941471Z Environment
2022-08-04T08:28:51.4958162Z ReUseContainer              False
2022-08-04T08:28:51.4976090Z KeepContainer               False
2022-08-04T08:28:51.4991951Z Auth                        UserPassword
2022-08-04T08:28:51.5164351Z Credential                  ***/Fyxo0119
2022-08-04T08:28:51.5198308Z CompanyName
2022-08-04T08:28:51.5218501Z MemoryLimit                     8G
2022-08-04T08:28:51.5239594Z Enable Task Scheduler           False
2022-08-04T08:28:51.5261197Z Assign Premium Plan             False
2022-08-04T08:28:51.5281571Z Install Test Runner             True
2022-08-04T08:28:51.5302277Z Install Test Framework          True
2022-08-04T08:28:51.5322307Z Install Test Libraries          True
2022-08-04T08:28:51.5342428Z Install Perf. Toolkit           False
2022-08-04T08:28:51.5362311Z InstallOnlyReferencedApps       False
2022-08-04T08:28:51.5382780Z generateDependencyArtifact      False
2022-08-04T08:28:51.5403849Z CopySymbolsFromContainer        False
2022-08-04T08:28:51.5423953Z enableCodeCop                   True
2022-08-04T08:28:51.5445122Z enableAppSourceCop              True
2022-08-04T08:28:51.5465641Z enableUICop                     True
2022-08-04T08:28:51.5487146Z enablePerTenantExtensionCop     False
2022-08-04T08:28:51.5507660Z doNotPerformUpgrade             False
2022-08-04T08:28:51.5528922Z doNotPublishApps                False
2022-08-04T08:28:51.5550204Z uninstallRemovedApps            False
2022-08-04T08:28:51.5572286Z escapeFromCops                  False
2022-08-04T08:28:51.5592550Z doNotBuildTests                 False
2022-08-04T08:28:51.5612749Z doNotRunTests                   False
2022-08-04T08:28:51.5633457Z doNotRunBcptTests               False
2022-08-04T08:28:51.5654321Z useDefaultAppSourceRuleSet      False
2022-08-04T08:28:51.5675115Z rulesetFile                     C:\agent\_work\442\s\scripts\lebit.ruleset.json
2022-08-04T08:28:51.5697395Z azureDevOps                     True
2022-08-04T08:28:51.5717551Z gitLab                          False
2022-08-04T08:28:51.5737768Z gitHubActions                   False
2022-08-04T08:28:51.5760139Z License file                    Specified
2022-08-04T08:28:51.5781399Z CodeSignCertPfxFile             Specified
2022-08-04T08:28:51.5820731Z CodeSignCertPfxPassword         Specified
2022-08-04T08:28:51.5896679Z CodeSignCertIsSelfSigned        False
2022-08-04T08:28:51.5921801Z KeyVaultCertPfxFile             Not specified
2022-08-04T08:28:51.5946275Z KeyVaultCertPfxPassword         Not specified
2022-08-04T08:28:51.5963304Z KeyVaultClientId
2022-08-04T08:28:51.5978767Z BuildOutputFile
2022-08-04T08:28:51.5996522Z TestResultsFile                 C:\agent\_work\442\s\TestResults.xml
2022-08-04T08:28:51.6018330Z BcptTestResultsFile             C:\agent\_work\442\s\bcptTestResults.json
2022-08-04T08:28:51.6038976Z TestResultsFormat               JUnit
2022-08-04T08:28:51.6090294Z AdditionalCountries
2022-08-04T08:28:51.6110162Z PackagesFolder                  C:\agent\_work\442\s\.packages
2022-08-04T08:28:51.6131652Z OutputFolder                    C:\agent\_work\442\s\.output
2022-08-04T08:28:51.6152454Z BuildArtifactFolder             C:\agent\_work\442\a
2022-08-04T08:28:51.6173799Z CreateRuntimePackages           True
2022-08-04T08:28:51.6191317Z AppVersion
2022-08-04T08:28:51.6216584Z AppBuild                        11860
2022-08-04T08:28:51.6246166Z AppRevision                     0
2022-08-04T08:28:51.6278091Z Mandatory Affixes               lbt com
2022-08-04T08:28:51.6301169Z Supported Countries
2022-08-04T08:28:51.6325350Z ObsoleteTagMinAllowedMajorMinor
2022-08-04T08:28:51.6342254Z Install Apps
2022-08-04T08:28:51.6358631Z - None
2022-08-04T08:28:51.6375356Z Install Test Apps
2022-08-04T08:28:51.6391988Z - None
2022-08-04T08:28:51.6408638Z Previous Apps
2022-08-04T08:28:51.6425688Z - \\lbserver20\Software_Business\apps\LeBit365_Provisionsmodul\latest.zip
2022-08-04T08:28:51.6442142Z Application folders
2022-08-04T08:28:51.6460663Z - C:\agent\_work\442\s\app
2022-08-04T08:28:51.6477089Z Test application folders
2022-08-04T08:28:51.6521830Z - C:\agent\_work\442\s\test
2022-08-04T08:28:51.6524937Z BCPT Test application folders
2022-08-04T08:28:51.6530745Z - None
2022-08-04T08:28:51.6547439Z Custom CodeCops
2022-08-04T08:28:51.6565475Z - C:\agent\_work\442\s\BCLinterCop.dll
2022-08-04T08:28:51.6628519Z NewBccontainer override
2022-08-04T08:28:51.6694201Z
2022-08-04T08:28:51.6710634Z
2022-08-04T08:28:51.6729234Z     Param([Hashtable]$parameters)
2022-08-04T08:28:51.6737910Z
2022-08-04T08:28:51.6755443Z     $items = Get-ChildItem -Path $baseFolder -Recurse -Filter "*.dll"
2022-08-04T08:28:51.6763777Z
2022-08-04T08:28:51.6789598Z     $dllFolder = Join-Path $ENV:AGENT_HOMEDIRECTORY "dlls"
2022-08-04T08:28:51.6801202Z     if (-not (Test-Path $dllFolder)) {
2022-08-04T08:28:51.6818113Z         New-Item -ItemType Directory -Path $dllFolder
2022-08-04T08:28:51.6836401Z     }
2022-08-04T08:28:51.6853581Z     if ($items.Count -gt 0) {
2022-08-04T08:28:51.6870767Z         $items | ForEach-Object {
2022-08-04T08:28:51.6888025Z             if (-not (Test-Path (Join-Path $dllFolder $_.Name) -PathType Leaf)) {
2022-08-04T08:28:51.6904395Z                 Copy-Item $_.FullName -Destination $dllFolder
2022-08-04T08:28:51.6920927Z             }
2022-08-04T08:28:51.6937713Z         }
2022-08-04T08:28:51.6955294Z         $parameters.additionalParameters += @("--volume $($dllFolder):c:\run\Add-Ins\mydlls")
2022-08-04T08:28:51.6971793Z     }
2022-08-04T08:28:51.6989230Z     $parameters.additionalParameters += @("--env customWebSettings=AuthenticateServer=false")
2022-08-04T08:28:51.7005920Z
2022-08-04T08:28:51.7023310Z     New-BcContainer @parameters
2022-08-04T08:28:51.7040445Z     Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock {
2022-08-04T08:28:51.7057109Z         $progressPreference = 'SilentlyContinue'
2022-08-04T08:28:51.7074139Z     }
2022-08-04T08:28:51.7082732Z
2022-08-04T08:28:51.7100681Z CompileAppInBcContainer override
2022-08-04T08:28:51.7109059Z
2022-08-04T08:28:51.7126857Z     Param([Hashtable]$parameters)
2022-08-04T08:28:51.7135347Z
2022-08-04T08:28:51.7153095Z     $appJsonFile = Join-Path $parameters.appProjectFolder "app.json"
2022-08-04T08:28:51.7169548Z     $appJson = Get-Content $appJsonFile | ConvertFrom-Json
2022-08-04T08:28:51.7187647Z     if ($appJson.preprocessorSymbols) {
2022-08-04T08:28:51.7205491Z         $appJson.preprocessorSymbols = @()
2022-08-04T08:28:51.7223043Z         $appJson | ConvertTo-Json -Depth 99 | Set-Content $appJsonFile
2022-08-04T08:28:51.7239790Z     }
2022-08-04T08:28:51.7256815Z
2022-08-04T08:28:51.7273905Z     Compile-AppInBcContainer @parameters
2022-08-04T08:28:51.7282216Z
2022-08-04T08:28:51.7291045Z
2022-08-04T08:28:51.7307800Z   _____       _ _ _                                          _        _
2022-08-04T08:28:51.7325000Z  |  __ \     | | (_)                                        (_)      (_)
2022-08-04T08:28:51.7342236Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___
2022-08-04T08:28:51.7359118Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2022-08-04T08:28:51.7376699Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2022-08-04T08:28:51.7393726Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2022-08-04T08:28:51.7410018Z                            __/ |   __/ |                                                 __/ |
2022-08-04T08:28:51.7427360Z                           |___/   |___/                                                 |___/
2022-08-04T08:28:51.7436537Z
2022-08-04T08:28:53.2802562Z Pulling mcr.microsoft.com/businesscentral:10.0.17763.2686
2022-08-04T08:28:53.9043219Z
2022-08-04T08:28:53.9062993Z Pulling generic image took 2 seconds
2022-08-04T08:28:53.9313808Z
2022-08-04T08:28:53.9332300Z    _____                _   _                               _        _
2022-08-04T08:28:53.9349141Z   / ____|              | | (_)                             | |      (_)
2022-08-04T08:28:53.9367088Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __
2022-08-04T08:28:53.9385018Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2022-08-04T08:28:53.9402327Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |
2022-08-04T08:28:53.9418964Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|
2022-08-04T08:28:53.9435980Z                                      __/ |
2022-08-04T08:28:53.9453352Z                                     |___/
2022-08-04T08:28:53.9462735Z
2022-08-04T08:28:55.0265978Z WARNING: Container name should not exceed 15 characters
2022-08-04T08:28:55.7907899Z BcContainerHelper is version 3.0.11
2022-08-04T08:28:55.7923189Z BcContainerHelper is running as ***istrator
2022-08-04T08:28:57.8398464Z Hyper-V is Disabled
2022-08-04T08:28:57.8469747Z UsePsSession is True
2022-08-04T08:28:57.8527909Z Host is Microsoft Windows Server 2019 Standard - ltsc2019
2022-08-04T08:28:58.1049960Z Docker Client Version is 19.03.4
2022-08-04T08:28:58.1107560Z Docker Server Version is 19.03.4
2022-08-04T08:28:59.0537276Z Removing Desktop shortcuts
2022-08-04T08:28:59.8612815Z Fetching all docker images
2022-08-04T08:29:00.1540449Z Fetching all docker volumes
2022-08-04T08:29:00.8652624Z Using image mcr.microsoft.com/businesscentral:10.0.17763.2686
2022-08-04T08:29:01.7906291Z Creating Container lvserver19-lebit365provision-current
2022-08-04T08:29:01.7918571Z Style: sandbox
2022-08-04T08:29:01.7939720Z Multitenant: Yes
2022-08-04T08:29:01.7971446Z Version: 20.3.42673.44596
2022-08-04T08:29:01.7990500Z Platform: 20.0.42653.44568
2022-08-04T08:29:01.8010686Z Generic Tag: 1.0.2.10
2022-08-04T08:29:01.8111888Z Container OS Version: 10.0.17763.2686 (ltsc2019)
2022-08-04T08:29:01.8129488Z Host OS Version: 10.0.17763.2686 (ltsc2019)
2022-08-04T08:29:01.8283762Z Using process isolation
2022-08-04T08:29:01.8391154Z Using locale de-DE
2022-08-04T08:29:01.8490883Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2022-08-04T08:29:01.9297301Z Downloading C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365provision-current\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2022-08-04T08:29:12.9123810Z Using license file https://devlbstorage.blob.core.windows.net/files/4804634%20LeBit%20Dev%2020%20BC%20on%20premises%20DE%20610%20ISV%2014.06.22.flf
2022-08-04T08:29:12.9213360Z Downloading C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365provision-current\my\license.flf
2022-08-04T08:29:13.1665075Z Additional Parameters:
2022-08-04T08:29:13.1687737Z --volume "C:\agent\_work\442\s:c:\sources"
2022-08-04T08:29:13.1704415Z --volume C:\agent\dlls:c:\run\Add-Ins\mydlls
2022-08-04T08:29:13.1726168Z --env customWebSettings=AuthenticateServer=false
2022-08-04T08:29:13.1746777Z --env customNavSettings=EnableTaskScheduler=False
2022-08-04T08:29:13.1764915Z Files in C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365provision-current\my:
2022-08-04T08:29:13.1807930Z - AdditionalOutput.ps1
2022-08-04T08:29:13.1825360Z - license.flf
2022-08-04T08:29:13.1843745Z - MainLoop.ps1
2022-08-04T08:29:13.1862214Z - SetupVariables.ps1
2022-08-04T08:29:13.1884152Z - updatehosts.ps1
2022-08-04T08:29:13.1902255Z Creating container lvserver19-lebit365provision-current from image mcr.microsoft.com/businesscentral:10.0.17763.2686
2022-08-04T08:29:13.6248916Z 9c96159d88b74ac10e7a1d8114eb61465393431bf8b429e2b44b65da8b666ebe
2022-08-04T08:29:17.2106128Z Waiting for container lvserver19-lebit365provision-current to be ready
2022-08-04T08:29:25.3724761Z Adding LVSERVER19-LEBI to hosts file
2022-08-04T08:29:25.3739433Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.3.42673.44596/de
2022-08-04T08:29:26.7315280Z Using installer from C:\Run\150-new
2022-08-04T08:29:26.7326968Z Installing Business Central
2022-08-04T08:29:26.7338146Z Installing from artifacts
2022-08-04T08:29:32.0888753Z Starting Local SQL Server
2022-08-04T08:29:32.0904132Z Starting Internet Information Server
2022-08-04T08:29:32.0920437Z Copying Service Tier Files
2022-08-04T08:29:34.7167364Z c:\dl\sandbox\20.3.42673.44596\platform\ServiceTier\Program Files
2022-08-04T08:29:34.7182107Z c:\dl\sandbox\20.3.42673.44596\platform\ServiceTier\System64Folder
2022-08-04T08:29:34.7193701Z Copying PowerShell Scripts
2022-08-04T08:29:34.7207510Z c:\dl\sandbox\20.3.42673.44596\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2022-08-04T08:29:34.7223340Z c:\dl\sandbox\20.3.42673.44596\platform\WindowsPowerShellScripts\WebSearch
2022-08-04T08:29:34.7239518Z Copying Web Client Files
2022-08-04T08:29:38.7519215Z c:\dl\sandbox\20.3.42673.44596\platform\WebClient\Microsoft Dynamics NAV
2022-08-04T08:29:38.7544494Z Copying Client Files
2022-08-04T08:29:40.1099366Z c:\dl\sandbox\20.3.42673.44596\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-08-04T08:29:40.1113342Z c:\dl\sandbox\20.3.42673.44596\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-08-04T08:29:40.1130790Z c:\dl\sandbox\20.3.42673.44596\platform\LegacyDlls\systemFolder
2022-08-04T08:29:40.1147691Z Copying ModernDev Files
2022-08-04T08:29:40.1163529Z c:\dl\sandbox\20.3.42673.44596\platform
2022-08-04T08:29:41.4692542Z c:\dl\sandbox\20.3.42673.44596\platform\ModernDev\program files\Microsoft Dynamics NAV
2022-08-04T08:29:41.4704760Z Copying additional files
2022-08-04T08:29:41.4717944Z Copying ConfigurationPackages
2022-08-04T08:29:41.4731422Z C:\dl\sandbox\20.3.42673.44596\de\ConfigurationPackages
2022-08-04T08:29:41.4744527Z Copying Test Assemblies
2022-08-04T08:29:41.4758391Z C:\dl\sandbox\20.3.42673.44596\platform\Test Assemblies
2022-08-04T08:29:41.4771924Z Copying Extensions
2022-08-04T08:29:42.8781652Z C:\dl\sandbox\20.3.42673.44596\de\Extensions
2022-08-04T08:29:42.8799807Z Copying Applications
2022-08-04T08:29:44.2812958Z C:\dl\sandbox\20.3.42673.44596\platform\Applications
2022-08-04T08:29:44.2830072Z Copying Applications.DE
2022-08-04T08:29:44.3427006Z C:\dl\sandbox\20.3.42673.44596\de\Applications.DE
2022-08-04T08:29:44.3444855Z Copying dependencies
2022-08-04T08:30:13.1525103Z Copying ReportBuilder
2022-08-04T08:30:16.1116717Z Importing PowerShell Modules
2022-08-04T08:30:23.7897273Z Restoring CRONUS Demo Database
2022-08-04T08:30:26.7369866Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2022-08-04T08:31:42.8520775Z Exporting Application to CRONUS
2022-08-04T08:31:56.1198346Z Removing Application from tenant
2022-08-04T08:31:56.1212969Z Modifying Business Central Service Tier Config File for Docker
2022-08-04T08:31:56.1228348Z Creating Business Central Service Tier
2022-08-04T08:31:56.1244191Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2022-08-04T08:32:23.4964895Z Starting Business Central Service Tier
2022-08-04T08:32:24.9318940Z Importing license file
2022-08-04T08:32:24.9336002Z Copying Database on localhost\SQLEXPRESS from tenant to default
2022-08-04T08:32:24.9354419Z Taking database tenant offline
2022-08-04T08:32:32.7441726Z Copying database files
2022-08-04T08:32:35.5434312Z Attaching files as new Database default
2022-08-04T08:32:35.5450728Z Putting database tenant back online
2022-08-04T08:32:35.5465946Z Mounting tenant database
2022-08-04T08:35:38.5320478Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2022-08-04T08:35:39.9866742Z Sync'ing Tenant
2022-08-04T08:35:39.9881115Z Tenant is Operational
2022-08-04T08:35:39.9895809Z Stopping Business Central Service Tier
2022-08-04T08:35:39.9910581Z Installation took 374 seconds
2022-08-04T08:35:39.9922530Z Installation complete
2022-08-04T08:35:39.9934965Z Initializing...
2022-08-04T08:35:39.9947079Z Setting host.containerhelper.internal to 172.17.112.1 in container hosts file
2022-08-04T08:35:39.9959244Z Starting Container
2022-08-04T08:35:39.9972278Z Hostname is lvserver19-lebit365provision-current
2022-08-04T08:35:42.7922671Z PublicDnsName is lvserver19-lebit365provision-current
2022-08-04T08:35:42.7938262Z Using NavUserPassword Authentication
2022-08-04T08:35:44.1469257Z Creating Self Signed Certificate
2022-08-04T08:35:44.1488921Z Self Signed Certificate Thumbprint 4F62D7B25CA62AD5651471173D78E6B497716AF9
2022-08-04T08:35:44.1505815Z DNS identity lvserver19-lebit365provision-current
2022-08-04T08:35:44.1522290Z Modifying Service Tier Config File with Instance Specific Settings
2022-08-04T08:35:44.1538245Z Modifying Service Tier Config File with settings from environment variable
2022-08-04T08:35:45.4714733Z Setting EnableTaskScheduler to False
2022-08-04T08:36:06.0439582Z Starting Service Tier
2022-08-04T08:36:06.0453889Z Registering event sources
2022-08-04T08:36:07.4789102Z Creating DotNetCore Web Server Instance
2022-08-04T08:36:07.4805683Z Using application pool name: BC
2022-08-04T08:36:07.4822018Z Using default container name: NavWebApplicationContainer
2022-08-04T08:36:10.2471527Z Copy files to WWW root C:\inetpub\wwwroot\BC
2022-08-04T08:36:11.6089250Z Create the application pool BC
2022-08-04T08:36:12.9594125Z Create website: NavWebApplicationContainer without SSL
2022-08-04T08:36:12.9605095Z Update configuration: navsettings.json
2022-08-04T08:36:12.9616662Z Done Configuring Web Client
2022-08-04T08:36:12.9629282Z Modifying Web Client config with settings from environment variable
2022-08-04T08:36:12.9641203Z Setting AuthenticateServer to false
2022-08-04T08:36:12.9652916Z Enabling Financials User Experience
2022-08-04T08:36:12.9665058Z Using license file 'c:\run\my\license.flf'
2022-08-04T08:36:17.0223749Z Import License
2022-08-04T08:36:18.4272044Z Dismounting Tenant
2022-08-04T08:36:18.4291856Z Mounting Tenant
2022-08-04T08:37:45.0379139Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2022-08-04T08:37:45.0393996Z Sync'ing Tenant
2022-08-04T08:37:45.0409666Z Tenant is Operational
2022-08-04T08:37:46.5493322Z Creating http download site
2022-08-04T08:37:46.5506206Z Setting SA Password and enabling SA
2022-08-04T08:37:54.0931522Z Creating *** as SQL User and add to sys***
2022-08-04T08:38:14.9190128Z Creating SUPER user
2022-08-04T08:38:14.9209128Z Container IP Address: 172.17.121.187
2022-08-04T08:38:14.9228609Z Container Hostname  : lvserver19-lebit365provision-current
2022-08-04T08:38:14.9246606Z Container Dns Name  : lvserver19-lebit365provision-current
2022-08-04T08:38:14.9266026Z Web Client          : http://lvserver19-lebit365provision-current/BC/?tenant=default
2022-08-04T08:38:14.9286528Z Dev. Server         : http://lvserver19-lebit365provision-current
2022-08-04T08:38:14.9309104Z Dev. ServerInstance : BC
2022-08-04T08:38:14.9331834Z Dev. Server Tenant  : default
2022-08-04T08:38:14.9351194Z Setting lvserver19-lebit365provision-current to 172.17.121.187 in host hosts file
2022-08-04T08:38:14.9371342Z Setting lvserver19-lebit365provision-current-default to 172.17.121.187 in host hosts file
2022-08-04T08:38:14.9389670Z Setting lvserver19-lebit365provision-current-default to 172.17.121.187 in container hosts file
2022-08-04T08:38:14.9397704Z
2022-08-04T08:38:14.9415206Z Files:
2022-08-04T08:38:14.9436571Z http://lvserver19-lebit365provision-current:8080/Microsoft.VisualStudio.Services.VSIXPackage.vsix
2022-08-04T08:38:14.9446246Z
2022-08-04T08:38:14.9466623Z WARNING: You are running a container which is 146 days old.
2022-08-04T08:38:14.9484008Z Microsoft recommends that you always run the latest version of our containers.
2022-08-04T08:38:14.9492636Z
2022-08-04T08:38:14.9511523Z Container Total Physical Memory is 28.0Gb
2022-08-04T08:38:14.9531081Z Container Free Physical Memory is 14.2Gb
2022-08-04T08:38:14.9540330Z
2022-08-04T08:38:14.9559788Z Initialization took 156 seconds
2022-08-04T08:38:14.9578677Z Ready for connections!
2022-08-04T08:38:16.2199868Z Reading CustomSettings.config from lvserver19-lebit365provision-current
2022-08-04T08:38:17.8348635Z Creating Desktop Shortcuts for lvserver19-lebit365provision-current
2022-08-04T08:38:18.0417088Z Container lvserver19-lebit365provision-current successfully created
2022-08-04T08:38:18.4344002Z
2022-08-04T08:38:18.4365724Z Use:
2022-08-04T08:38:18.4395765Z Get-BcContainerEventLog -containerName lvserver19-lebit365provision-current to retrieve a snapshot of the event log from the container
2022-08-04T08:38:18.4427429Z Get-BcContainerDebugInfo -containerName lvserver19-lebit365provision-current to get debug information about the container
2022-08-04T08:38:18.4463788Z Enter-BcContainer -containerName lvserver19-lebit365provision-current to open a PowerShell prompt inside the container
2022-08-04T08:38:18.4496392Z Remove-BcContainer -containerName lvserver19-lebit365provision-current to remove the container again
2022-08-04T08:38:18.4528707Z docker logs lvserver19-lebit365provision-current to retrieve information about URL's again
2022-08-04T08:38:19.5332732Z
2022-08-04T08:38:19.5352644Z Creating container took 566 seconds
2022-08-04T08:38:19.5361700Z
2022-08-04T08:38:19.5382338Z  _____                _       _                   _                           _                 _
2022-08-04T08:38:19.5399811Z |  __ \              | |     (_)                 | |                         | |               (_)
2022-08-04T08:38:19.5417579Z | |__) |___ ___  ___ | |_   ___ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___ ___
2022-08-04T08:38:19.5435299Z |  _  // _ \ __|/ _ \| \ \ / / | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __|
2022-08-04T08:38:19.5452172Z | | \ \  __\__ \ (_) | |\ V /| | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __\__ \
2022-08-04T08:38:19.5470160Z |_|  \_\___|___/\___/|_| \_/ |_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/
2022-08-04T08:38:19.5487095Z                                        __/ |            | |
2022-08-04T08:38:19.5503905Z                                       |___/             |_|
2022-08-04T08:38:19.5512206Z
2022-08-04T08:38:19.7696351Z Sorted folders
2022-08-04T08:38:19.7718841Z - C:\agent\_work\442\s\app
2022-08-04T08:38:19.7737353Z - C:\agent\_work\442\s\test
2022-08-04T08:38:19.7755990Z External dependencies
2022-08-04T08:38:19.7783121Z - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_19.0.0.0.app
2022-08-04T08:38:19.7799736Z - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_19.0.0.0.app
2022-08-04T08:38:19.7815882Z - dd0be2ea-f733-4d65-bb34-a28f4624fb14:Microsoft_Library Assert_16.0.0.0.app
2022-08-04T08:38:19.7835460Z - e7320ebb-08b3-4406-b1ec-b4927d3e280b:Microsoft_Any_16.0.0.0.app
2022-08-04T08:38:19.7852857Z - 23de40a6-dfe8-4f80-80db-d70f83ce8caf:Microsoft_Test Runner_16.0.0.0.app
2022-08-04T08:38:19.7871110Z - 5d86850b-0d76-4eca-bd7b-951ad998e997:Microsoft_Tests-TestLibraries_16.0.0.0.app
2022-08-04T08:38:19.7889117Z
2022-08-04T08:38:19.7907454Z    _____                      _ _ _
2022-08-04T08:38:19.7923975Z   / ____|                    (_) (_)
2022-08-04T08:38:19.7938852Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___
2022-08-04T08:38:19.7957021Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2022-08-04T08:38:19.7976470Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
2022-08-04T08:38:19.7994935Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2022-08-04T08:38:19.8012499Z                        | |                 __/ |       | |   | |
2022-08-04T08:38:19.8030138Z                        |_|                |___/        |_|   |_|
2022-08-04T08:38:19.8038994Z
2022-08-04T08:38:19.8207953Z Using custom ruleset
2022-08-04T08:38:19.8288633Z Using Version 19.0.11860.0
2022-08-04T08:38:19.8670679Z Copying previous apps to packages folder
2022-08-04T08:38:22.7788073Z LeBit Software & Consult GmbH_LeBit Commission = 19.0.11851.0
2022-08-04T08:38:22.7936307Z Creating AppSourceCop.json for validation
2022-08-04T08:38:22.7985412Z AppSourceCop.json content:
2022-08-04T08:38:22.8013772Z {
2022-08-04T08:38:22.8029859Z     "Publisher":  "LeBit Software \u0026 Consult GmbH",
2022-08-04T08:38:22.8046820Z     "Name":  "LeBit Commission",
2022-08-04T08:38:22.8063012Z     "mandatoryAffixes":  [
2022-08-04T08:38:22.8121583Z                              "lbt com"
2022-08-04T08:38:22.8122230Z                          ],
2022-08-04T08:38:22.8124567Z     "Version":  "19.0.11851.0"
2022-08-04T08:38:22.8130716Z }
2022-08-04T08:38:22.8139991Z
2022-08-04T08:38:22.8157746Z Compiling C:\agent\_work\442\s\app
2022-08-04T08:38:26.0525047Z Using Symbols Folder: C:\agent\_work\442\s\.packages
2022-08-04T08:38:39.3702807Z Downloading symbols: Microsoft_Application_20.3.42673.44596.app
2022-08-04T08:38:39.3765490Z Url : http://172.17.121.187:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&tenant=default
2022-08-04T08:38:46.3489013Z Adding dependency to System Application from Microsoft
2022-08-04T08:38:46.3540148Z Adding dependency to Base Application from Microsoft
2022-08-04T08:38:46.3686092Z Downloading symbols: Microsoft_System_20.0.42653.44568.app
2022-08-04T08:38:46.3705838Z Url : http://172.17.121.187:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=19.0.0.0&tenant=default
2022-08-04T08:38:47.9292962Z Downloading symbols: Microsoft_System Application_20.3.42673.44596.app
2022-08-04T08:38:47.9310969Z Url : http://172.17.121.187:7049/BC/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=20.3.0.0&tenant=default
2022-08-04T08:38:49.4949116Z Downloading symbols: Microsoft_Base Application_20.3.42673.44596.app
2022-08-04T08:38:49.4962034Z Url : http://172.17.121.187:7049/BC/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=20.3.0.0&tenant=default
2022-08-04T08:38:52.1184197Z Compiling...
2022-08-04T08:38:52.2158197Z .\alc.exe /project:"c:\sources\app" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\LeBit Software & Consult GmbH_LeBit Commission_19.0.11860.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /analyzer:c:\sources\BCLinterCop.dll /ruleset:c:\sources\scripts\lebit.ruleset.json /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\200\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\200\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
2022-08-04T08:39:07.4830692Z Microsoft (R) AL Compiler version 9.3.9.56214
2022-08-04T08:39:07.4884287Z Copyright (C) Microsoft Corporation. All rights reserved
2022-08-04T08:39:07.4894225Z
2022-08-04T08:39:07.4910265Z Compilation started for project 'LeBit Commission' containing '109' files at '10:38:54.960'.
2022-08-04T08:39:07.4919243Z
2022-08-04T08:39:07.4998900Z ##[error]c:\sources\app\src\report\StatementCrMemo.Report.al(9,18): error AL0445: The file 'src/report/CommissionStatement.rdlc' is opened in another application. Close the application to be able to compile.
2022-08-04T08:39:07.5011805Z
2022-08-04T08:39:07.5012390Z Compilation ended at '10:39:07.367'.
2022-08-04T08:39:07.5012709Z
2022-08-04T08:39:07.5013436Z App generation failed with exit code 1
2022-08-04T08:39:08.0277333Z Compile-AppInBcContainer Telemetry Correlation Id: 7f8356a2-b958-4256-985c-c72a6b5fb8e5
2022-08-04T08:39:09.6521397Z Removing Session lvserver19-lebit365provision-current
2022-08-04T08:39:09.9730319Z Removing container lvserver19-lebit365provision-current
2022-08-04T08:39:18.8488930Z Removing entries from hosts
2022-08-04T08:39:18.8710866Z Removing lvserver19-lebit365provision-current from container hosts file
2022-08-04T08:39:19.0064273Z Removing lvserver19-lebit365provision-current-* from container hosts file
2022-08-04T08:39:19.0150547Z Removing Desktop shortcuts
2022-08-04T08:39:19.0885743Z Removing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365provision-current
2022-08-04T08:39:19.6912849Z Run-AlPipeline Telemetry Correlation Id: 617b7337-5682-4e93-b454-7afdf6d5fe50
2022-08-04T08:39:19.9172174Z ##[error]App generation failed with exit code 1
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\AppHandling\Compile-AppInNavContainer.ps1:651
Zeichen:72
+ ... | Where-Object { $_ -like "App generation failed*" } | % { throw $_ }
+                                                                ~~~~~~~~
    + CategoryInfo          : OperationStopped: (App generation failed with exit code 1:String) [], RuntimeException
    + FullyQualifiedErrorId : App generation failed with exit code 1
2022-08-04T08:39:19.9257109Z ##[error]PowerShell exited with code '1'.
2022-08-04T08:39:19.9806030Z ##[section]Finishing: Run Pipeline

Additional context
I had that error occur sporadically, usually re-queuing the build would be enough. Now the last 5 builds failed with this error.

Hi @achim-t - sorry for the delay.
Would you maybe have a sample project, which I could download and repro this with - then I can create a fix for this.
Looks like a bug.

Sorry for the long wait.
Cloned the repo, fixed it so it could compile and tried it out:

assuming that this must have been a bug in the compiler or like, cannot repro it now

source: gharchive/issue

authors: achim-t freddydk

repo: microsoft/navcontainerhelper

license: MIT

license_type: permissive

license_source: github-api


text:
Add Dashboard Dev Automation

Since we're deploying our dashboard with Github Pages and using React, we should setup an actions workflow that automatically updates the /dist directory on --deploy branch when new code gets checked in to 'main' under directory /dashboard.

Workflow added.

repo: microsoft/netperf


text:
Accessing/regenerating the model objects used in the trials

What would you like to be added:
The ability to programmatically instantiate a model object using the ModelSpace class given the set of choices.
Why is this needed:
1- For better testing! The user cannot test the ModelSpace module without passing it to an experiment.
2- Ultimately, the user needs to put the NAS experiment results into use! Which is commonly achieved by training a model with the found architecture (the highest-scoring trial). If the ModelSpace could give an instance of a model object (ready to be trained) given a dictionary of choices, the user would easily train and use the model using the most optimum architecture found in the trials.
Without this feature, how does current nni work：
To the best of my knowledge, currently, one can only do this manually by implementing a new model class based on the values of the choices found in the trial's config.
Components that may involve changes:
ModelSpace
RetiariiExperiment
Brief description of your proposal if any:
I can think of two ways of addressing this, either the experiment object provides the model objects used in the trials (or saves them somewhere as a pickle file), or it should return a dictionary of choices for each trial, that when passed to a new method in ModelSpace (such as instantiate_from_dict) it would return an instance of the model object with the given choices.

There is a draft proposal here #4848, but it's far from ready state.
I'll take your desire into consideration when drafting this design.

authors: aminabedi matluster

repo: microsoft/nni


text:
How to run a oneshot strategy such as DARTS in data-parallel with multiple GPUs?

Describe the issue:
I want to run DARTS examples in multiple GPUs, so I wrapped the model with DDP and shared data with Distributedsampler. However, I found the final 2 output architectures are different. How should I modify the DARTS to make it run in data-parallel and get one final architecture?
Environment:

NNI version:
Training service (local|remote|pai|aml|etc):
Client OS:
Server OS (for remote mode only):
Python version:
PyTorch/TensorFlow version:
Is conda/virtualenv/venv used?:
Is running in Docker?:

Configuration:
I modified the DartsTrainer in nni/retiarii/oneshot/pytorch/darts, and I just wrapper the model with DDP and used DistributedSampler.
changes in init
dist.init_process_group(backend='nccl')
rank = dist.get_rank()
self.rank = rank
self._init_dataloader()
device_id = rank % 2
self.model.to(device_id)
self.model = DDP(self.model)
modfity _init_dataloader():
def _init_dataloader():
train_sampler = torch.utils.data.distributed.DistributedSampler(self.dataset)
valid_sampler = torch.utils.data.distributed.DistributedSampler(self.valid_dataset)
self.train_loader = torch.utils.data.DataLoader(self.dataset,
pin_memory=True,
batch_size=self.batch_size,
sampler=train_sampler,
num_workers=self.workers)
self.valid_loader = torch.utils.data.DataLoader(self.valid_dataset,
pin_memory=True,
batch_size=self.batch_size,
sampler=valid_sampler,
num_workers=self.workers)
start command:
python -m torch.distributed.launch --nproc_per_node=2 search.py
￼

From its final output, it seems there were 2 architectures found. What' 's wrong with my problems? Could you give me any suggestions? Thanks a lot.
How to reproduce it?:

It looks like you should only call export on process with rank 0. Calling it multiple times will generate multiple architectures.

authors: toufunao ultmaster


text:
More npm audit fix and updated Angular mock project

Perform more audit fixes. Updates from Angular mock project from version 10 to 13

Merging as this is a low impact change.

source: gharchive/pull-request

repo: microsoft/nodejstools


text:
Error of job's log-manager and stdout/stderr

Organization Name:

Short summary about the issue/question:
Cannot access log-manager (through the button browser log folder, error 502 Bad Gateway after about 1-5 minutes of page loading) and stdout/stderr (only showing "Loading..." forever). Found "log-manager-xxx" pods are running correctly. The logs are like x.x.x.x - [17/Aug/2020:03:20:18 +0000] "GET /healthz HTTP/1.1" 200 18 "-" "kube-probe/1.15". All other functionalities seem to work correctly (job submission / running / ...).
Brief what process you are following:

How to reproduce it: not sure (but I reinstalled (after kubeadm reset on all machines) the OpenPAI, and this problem was still there)

OpenPAI Environment:

OpenPAI version: v1.0
Cloud provider or hardware configuration: local cluster
OS (e.g. from /etc/os-release): PRETTY_NAME="Ubuntu 18.04.4 LTS"
Kernel (e.g. uname -a): 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Hardware (e.g. core number, memory size, storage size, GPU type etc.):
Others:

Anything else we need to know:
The firewall is off on all nodes

Can you access http://work_node_ip:9103/log-manager/ and http://work_node_ip:9103/healthz/ in your browser?

Yes, if I check my master node, http://work_node_ip:9103/log-manager/ shows an empty directory. I have never seen the link with port 9103 before. However, the link from the Browse log folder button is like http://MASTER-NODE-IP/log-manager/WORKER-NODE-IP:9103/MY-USER/... (without :9103).
After your reply, I just found that workers' log-manager is not empty and that the link http://WORKER-NODE-IP:9103/log-manager/MY-USER/... does work (substituting MASTER-NODE-IP with WORKER-NODE-IP:9103)...
Why did this happen?

Actually, pylon will redirect the  http://MASTER-NODE-IP/log-manager/WORKER-NODE-IP:9103/MY-USER/... to http://WORKER-NODE-IP:9103/log-manager/MY-USER/...
https://github.com/microsoft/pai/blob/e116f7722fc549ac228bde7620e411a62a9204ce/src/pylon/deploy/pylon-config/location.conf.template#L91-L95
Please make sure the pylon is working

Thanks for the clarification. I saw pod pylon-ds-.... seems to run normally.
http://WORKER-NODE-IP:9103/log-manager/MY-USER/... (after redirected) is working. Also, http://MASTER-NODE:9103/healthz/ returns "Log manager ready." and http://MASTER-NODE:9103/ shows Welcome to OpenResty.
Is there anything more I can check?

@Binyang2014, is it k8s CNI issue?

@zlf0625 Can you docker exec into the pylon container and run curl http://worker_ip:9103. You may need to install curl in pylon container first.
If this command failed, you can try to re-config the pylon daemonSet to use hostNetwork. You can change this in k8s-dashboard.

I tried docker exec into the pylon container (on the master node) and got curl: (7) Failed to connect to XXX port 9103: Connection timed out (worker IPs). But I can directly connect to the same worker address (with port 9103) (outside the container).

Can you try to change the pylon-ds to use hostNetwork? Using hostNetwork may solve this issue.  And what CNI do you use? Weave or Calico.
Please run kuebctl get ds -n kube-system. And make sure you can find weave or calico cni. All the weave/calico related pods should in ready status.
And please run  kubectl get deployment -n kube-system
Make sure you can find coredns services.

I paste the results here first for reference:
Running kubectl get ds -n kube-system gets:
NAME                               DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR                 AGE
calico-node                        5         5         5       5            5           <none>                        5d2h
k8s-host-device-plugin-daemonset   5         5         5       5            5           <none>                        4d
kube-proxy                         5         5         5       5            5           beta.kubernetes.io/os=linux   5d2h
nvidia-device-plugin-daemonset     5         5         5       5            5           <none>                        4d

Running kubectl get deployment -n kube-system gets:
calico-kube-controllers        1/1     1            1           5d2h
coredns                        1/1     1            1           4d2h
dns-autoscaler                 1/1     1            1           5d2h
kubernetes-dashboard-openpai   1/1     1            1           4d

I think I am using the default value (Calico), and coredns is running correctly.

Can you run kubectl edit ds pylon-ds
Then add hostNetwork: true undser sepc.template.spec. It would be like
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: pylon
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: pylon
      name: pylon
    spec:
      hostNetwork: true
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: pai-master
                operator: In
                values:
                - "true"
      containers:
      - command:
        - /bin/bash
        - /pylon-config/run.sh

I am not sure the reason for this problem, hope using hostNetwork could mitigate this issue

Wow! Thanks, this fixed the problem. Do you have any idea why this helps?
Just before your comment, I configured the k8s dashboard and modified there, but that editing (in very weird JSON format) didn't work. Your latest comment is very helpful.

I think it may caused by network plugin (k8s CNI). But I'm not sure about this. If network plugin is enabled, during installation, the iptables of the host will be modified. The network outbound/inbound of the container will be controlled by CNI.
I'm not sure about the Calico, but we encounter this issue when using Weave. Some peers don't discover the others. Cause network partition.
If you want to dig into the problem, you may need to check the iptables of the node. And check the status of the Calico daemon.

for the diagnosis of k8s CNI issue, please refer to the community support of the corresponding k8s CNI (calico in this case). I suspect this has sth. to do with your host environment, e.g., firewall configuration.

I checked that sudo ufw status returns inactive on the master and all workers.
I am not familiar with k8s, and just want to make sure every PAI component is running normally. Also, if I use host network, will it cause other potential problems?

Thanks! How do I know where is the problem? I think all calico pods seems running normally:
kube-system   calico-kube-controllers-7847896956-8w2zt        1/1     Running   0          5d19h
kube-system   calico-node-49nx6                               1/1     Running   0          5d19h
kube-system   calico-node-9wv9w                               1/1     Running   0          5d19h
kube-system   calico-node-hq8q7                               1/1     Running   0          5d19h
kube-system   calico-node-lp98d                               1/1     Running   1          5d19h
kube-system   calico-node-qwzqn                               1/1     Running   0          5d19h
...

So I even don't know what I should look for

Here is a troubleshooting guide for calico: https://docs.projectcalico.org/maintenance/troubleshoot/troubleshooting
Another way to find the solution is go to  https://github.com/projectcalico/calico/issues and find if exists similar issues.
And you can open an issue in calico project, maybe some guys will help you solve the problem.

Hi, I tried to reinstall the entire cluster (K8s + OpenPAI), but it still doesn't work (still "Loading"). The main reason I reinstalled is that: all of our machines will lose Internet connection after several hours (sometimes disconnected at the same time).
All these machines connect to one switch. However, after this disconnection, I can connect to those disconnected machines (disconnected from the Internet or my dev-box) by jumping from still available machines (not experiencing disconnection) using my dev-box machine. I wonder if this is caused by the network plugin?
I also tried to use Weave, but it failed in the installation ("Wait for Weave to become available"). I also tried many other plugins, like flannel (successfully installed but login button no feedback), kube-router (successfully installed but cannot open portal), basic "cni" (status = NotReady, describe node says CNI plugin not ready). I also found I usually received an error in etcd during installation. Do I still have other solutions (like other supported plugins)?
I checked that the firewall is disabled on all servers. I am not sure if I should talk to the network department about the disconnection or potential firewall on their side. I have struggled with this for a long time, and I appreciate any suggestions on this :)

could you remove cni plugin? https://openpai.readthedocs.io/en/latest/manual/cluster-admin/installation-faqs-and-troubleshooting.html#how-to-remove-k8s-network-plugin

Thanks. I think the page is for weave, but I'm using calico (since I cannot even install weave). How can I uninstall Calico from Kubernetes?

repo: microsoft/pai


text:
[Bug]: error code: STATUS_STACK_BUFFER_OVERRUN

Version
1.44.0
Steps to reproduce
I'm making a wpf app and testing playwright using this simple code to run but I'm getting an error that says the page crashed on my friend's computer but mine is fine.
Code:
 using var playwright = await Playwright.CreateAsync();
 await using var browser = await playwright.Chromium.LaunchAsync(new() { Headless = false });
 var page = await browser.NewPageAsync();
 await page.GotoAsync("https://www.microsoft.com", new PageGotoOptions { WaitUntil = WaitUntilState.DOMContentLoaded });

Error:

Expected behavior
I want to enter the website
Actual behavior
Microsoft.Playwright.PlaywrightException: Page crashed
Call log:

navigating to "https://www.microsoft.com", waiting until "domcontentloaded" at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary 2 dictionary, Boolean keepNulls) in //src/Playwright/Transport/Connection.cs:line 206
at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in //src/Playwright/Transport/Connection.cs:line 532
at Microsoft.Playwright.Core.Frame.GotoAsync(String url, FrameGotoOptions options) in /_/src/Playwright/Core/Frame.cs:line 791
at MPAS.UserControls.DashboardUserControl.Login(String link, CancellationToken token, String storagePath) in C:\Users\Username\Downloads\MPAS\UserControls\DashboardUserControl.xaml.cs:line 197

Additional context
No response
Environment
- Operating System: [Windows 11 Pro]
- Browser: [Chromium 125.0.6422.26 (Developer Build) (64-bit) ]
- .NET Version (TFM): [net8.0]

I don't know why. But I advised my friend to reinstall windows and it fixed it.

repo: microsoft/playwright-dotnet


text:
typescript definitions

Right now there is an @types/jest packages that adds definitions for it/describe/expect into the global scope. This doesn't work for us, because our it has a state as its first argument, instead of a doneCallback.
The unit mode and e2e mode require different types, because the state in e2e mode contains a page, whereas the state in unit mode does not.
Ideally these types wouldn't pollute your apps global scope. So you can only use it from within .spec.js files.

Beyond not polluting the global scope, it would be great if the types were also able to be contained from of other non-playwright jest tests.

authors: JoelEinbinder lencioni

repo: microsoft/playwright-runner


text:
Process canvas apps not working with latest PowerApps runtime (Authoring version > 3.23084.14)

If canvas app authoring version > 3.23084.14 unpack steps fail if "Process CanvasApps" is selected.

Error messages:
Error   PA3015: Property Removed: AnalysisOptions.DataflowAnalysisEnabled
Error   PA3015: Property Removed: AnalysisOptions.DataflowAnalysisFlagStateToggledByUser
Looks like problem, related to CanvasManifest.json new options inside header element.

3.23084.14 header:
{
"FormatVersion": "0.24",
"Header": {
"AnalysisOptions": {
"DataflowAnalysisEnabled": false,
"DataflowAnalysisFlagStateToggledByUser": false
},
"DocVersion": "1.334",
"MinVersionToLoad": "1.331",
"MSAppStructureVersion": "2.0"
},

3.23084.14 header
{
"FormatVersion": "0.24",
"Header": {
"DocVersion": "1.334",
"MinVersionToLoad": "1.331",
"MSAppStructureVersion": "2.0"
},

we use https://github.com/microsoft/PowerApps-Language-Tooling library like you already linked

authors: gytisa petrochuk

repo: microsoft/powerplatform-build-tools


text:
Multi Sections, SectionAccessExpression parser error

I just tried to parse some examples from the power query section specification and it appears they cannot be parsed.
Expected behavior
As sections are not excluded in specifications.md it would appear that they are supported
Actual behavior
For example this code
section Section1;
A = "Hello";
B = A + " world";
K = Section1!A + 2;

results in an Error: ."Error: Expected to find a semicolon <';'>, but a exclamation mark <'!'> was found instead
It only works without the section access expression.
Also this code
section Section1;
A = "Hello";

section Section2;
B = "HELLO";

results in error "Expected to find a identifier, but a keyword <'section'> was found instead". Only one section works, multiple sections result in this error.
To Reproduce
I took the above code examples and ran the formatter with:
import { Task, DefaultSettings, ResultKind, Ast } from '@microsoft/powerquery-parser';
let parsed = Task.tryLexParse(DefaultSettings, code);

Additional context
I use Version 0.1.50-5, I tried to pull the latest version but there I cannot parse any document. Just in case you're also interested in that error:
TypeError: Cannot read property 'tryRead' of undefined
    at tryParse (dir\node_modules\@microsoft\powerquery-parser\lib\task.js:25:34)
    at Object.tryLexParse (dir\node_modules\@microsoft\powerquery-parser\lib\task.js:97:24)
    at Object.<anonymous> (dir\src\formatter.ts:60:21)
    at Generator.next (<anonymous>)
    at dir\node_modules\tslib\tslib.js:110:75
    at new Promise (<anonymous>)
    at Object.__awaiter (dir\node_modules\tslib\tslib.js:106:16)
    at Object.format (dir\dist\formatter.js:49:20)
    at Object.<anonymous> (dir\src\test\debug.ts:22:1)
    at Module._compile (internal/modules/cjs/loader.js:1155:14)

Section Access Expression and  Multiple Sections:
The parser follows the official language specification, which the Syntactic grammar section (which the parser is based around) it makes no mention of multiple sections. This is why SectionAccessExpression and multiple sections don't parse.
From our experience most people don't deal with multiple sections so it hasn't been a priority to enable parsing for them. However, I don't think it would be too difficult to add that in. Once I'm back in office I'll look into it.
Can't parse any document
Just to confirm, you're saying if you pull the latest version (0.1.54) then you can't parse any document? When I do a fresh repo of the latest version all of the tests work fine. Is your code snippet throwing the tryRead error? I tried using your snippet but the only issue for me was with Ast, which was moved into the Language export.
The only usage of "tryRead" is with the newly created IParserUtils file, but I don't see how that would be causing an error in the code snippet.

This is an interesting one. :-) The rules in the consolidated grammar section don't allow multiple sections but the specification section on sections contains an example showing a document containing two sections (whew! that is a lot of uses of sections in one sentence).
Related: https://github.com/MicrosoftDocs/powerquery-docs/issues/16

regarding Can't parse any document.
I checked out the repo again and ran the example, which worked. Then I made a folder diff between the folder between the parser folder I was using and the new clone, which yielded absolutely no source differences. I found out that the type error was caused because tsc did not produce any output in my old powerquery-parser folder. Since there was a lib directory from a previous build I did not notice and thought that the build succeeded (no errors what so ever occurred during tsc). I tried to find the difference and ended up copying all folders except the src folder from the new clone to the old one. And the folder diff showed no differences in the src dir whatsoever. Still npm run build did nothing. This problem feels really strange and I ended up just doing a totally fresh clone and building from there and it's now working. I really wonder why it wasn't working. Maybe something was corrupted in my node_modules/typescript.
regarding Section Access Expression and Multiple Sections:
One of my users asked me to support section document for my formatter so it would be nice if that makes it into the ast.

@UliPlabst do you know if any one else other than Curt (a fellow Microsoft employee) that has run into this issue? If it's just him then I'd say he'd rather me prioritize other work, but if it's effecting customers then I'd like to make sure this is on my short term TODO list.

@JordanBoltonMN No, I don't know about anybody else that ran into this. I just encountered this issue because somebody created an issue for my m-formatter because he wanted to auto format a query that contained sections. Since the section page examples show such documents I was looking into implementing sections into my formatter.
It would be Ok for me if this is in your backlog, since I don't think a lot of people are using documents with multiple sections right now. On the other hand I think the contradiction of the examples in the section documentation to the actual spec that does not allow multiple sections should probably be adressed.

FWIW - none of the current Power Query experiences (including the VS SDK) generate M documents with multiple sections and/or use section access expressions.

Power Bi will error with multiple sections in a document.  I have added a comment through "Is this page helpful?" m-spec-sections.
Section access expressions are used in the Power Bi Desktop source code, so there are people out there that might want it !

Section access expressions are used in the Power Bi Desktop source code, so there are people out there that might want it !

@tonyhallett could you provide an example? I'm not aware of any place where Power Query uses section access expressions. Power Query always uses a single section/document.

@mattmasson I don't have my computer to hand but off the top of my head. power bi has some built in modules generated from a string. There were section access expressions to the Table module for example. If you have access to the source code look at Modules.GetCoreModules(). There is also the DependencyVisitor class which probably deals with these dependencies.
As stated this is internal and your normal developer will not be able to use such syntax.

Feel free to disagree and re-open the issue, but for now I'm going to close this issue as technically multiple sections aren't in the grammar and their usage are an edge case. I'll open a new issue up specifically to add SectionAccessExpression.

authors: JordanBoltonMN UliPlabst bgribaudo mattmasson tonyhallett

repo: microsoft/powerquery-parser


text:
[Feature Request] Make flow output json dump configurable to allow object as output

Is your feature request related to a problem? Please describe.
I want to return an class as output for the python tool however it shows error JSON dump failed: For example for the following code:
it will return an error

@dataclass
class ThoughtStep:
    title: str
    description: Optional[Any]
    props: Optional[dict[str, Any]] = None

# The inputs section will change based on the arguments of the tool function, after you save the code
# Adding type to arguments and return value will help the system show the types properly
# Please update the function name/signature per need
@tool
def my_python_tool(zone_instruction: str, modify_query:str, answer_question:str) -> list:
    thought_steps = [
        ThoughtStep(title="Look up Zone Instruction", description=zone_instruction, props=None),
        ThoughtStep(title="Modify the query with history and zone instruction", description=modify_query, props=None),
        ThoughtStep(title="Search relevant documentation", description=None, props=None),
        ThoughtStep(title="Answer the questions", description=answer_question, props=None)
    ]
    return thought_steps

Describe the solution you'd like
Allow option to inject how to serialise an complex object
Describe alternatives you've considered
My current work around is to manually use     jsonoutput = json.dumps(thought_steps, default=lambda o: o.dict) inside the pythong tool and return a string instead
Additional context
Happy to connect to explain in more detail if it helps

For me this would be of great utility too, before migrating to Azure AI Studio in our project we were using Instructor package that uses pydantic for validate the outputs and was an almost perfect solution. I would be willing to contribute to make an enhancement  feature.

@duongthaiha,
Thanks for the feedback, I want to confirm that do you just want to pass a customized object inside a flow (from a node to another node)? If that's the case you can refer to Function based flow — Prompt flow documentation, with this type of flow you can pass any object inside a flow, actually there is no concept of node anymore, no dag either.
If you still want to use dag flow and return a customized object for a node (or flow output) just like your sample code, then we need a comprehensive design for this feature, it could be a long-term task to implement this feature.
@ferBV,
Thanks for your comments, really appreciate it. Could you please provide a more detailed design for this work? Maybe a doc or something? We would love it if community can contribute to prompt flow project.

@0mza987 Yes it was the idea please. It will be a great feature as it will extend so much more use cases please

authors: 0mza987 duongthaiha ferBV

repo: microsoft/promptflow


text:
Make a Variable cursor focus

I finally had to log this because it's been bugging me so much...
Sometimes when you click to Make a Variable and the dialog pops up, it doesn't capture the cursor focus, so I end up typing my variable names into the Toolbox Search bar instead!

Should be fixed in beta with https://github.com/microsoft/pxt/pull/7448 ~

fixed

fixed

authors: Jaqster abchatra jwunderl

repo: microsoft/pxt-arcade


text:
Smart Block Nicknames

The new interface makes it too hard to understand which blocks you're supposed to use with the old format.  We should have some kind of unique shortcut for the block (ideally also using the category icon) that can be matched to the block inside the toolbox.
Here are some options, though I'm open to other ideas:

Click the block suggestion to see the block in the toolbox:

Click the block suggestion to open an image of the block in the instructions/hints along with the category name of where you'll find it:

Got a better idea?

Closing option part of the tutorial redesign.

authors: abchatra kiki-lee


text:
Support Copy/Paste in Asset Gallery

It would be really nice to support copying assets from one project to another via the Asset Gallery:

Won't fix.

authors: Jaqster abchatra


text:
Sphinx Style Docstring Incorrectly Rendering Nested Parameters Lists

Nested lists of parameters in docstrings are not rendered correctly in Pylance v2024.7.104 (pre-release).
Here is an extract from the docstring of the SciPy least_squares procedure, and the full docstring is on SciPy's GitHub
Returns
-------
result : OptimizeResult
    `OptimizeResult` with the following fields defined:

        x : ndarray, shape (n,)
            Solution found.
        cost : float
            Value of the cost function at the solution.

The rendered result is the following, which incorrectly uses monospaced fonts and improperly formatted text

This is likely a problem with the : and the blank space. We're likely treating that as code (hence the monospaced font). Not sure if there's anything we can do to resolve this sort of problem.
Parsing it here shows it gets treated as a block_quote:
https://stsewd.dev/tree-sitter-rst/
But we may be special casing this to handle the case where a : followed by a blank line is example code.

Yeah the special case for the colon is this example:
def googledocstyle():
   """
   A one-line summary of the module or program, terminated by a period.

   Leave one blank line.  The rest of this docstring should contain an
   overall description of the module or program.  Optionally, it may also
   contain a brief description of exported classes and functions and/or usage
   examples.

   Typical usage example:

        foo = ClassFoo()
        bar = foo.FunctionBar()
   """

So if we disabled the special colon check, the example above would be incorrect. I think this is by design then.

Hmm, if I mess around with the docstring I get inconsistent results. Reopening.

This issue has been fixed in prerelease version 2024.8.100, which we've just released. You can find the changelog here: CHANGELOG.md

authors: bschnurr divenex rchiodo

repo: microsoft/pylance-release


text:
[807] Move the REG_CONSTANT/EPS to constant.py.

Description

Motivation and Context

After check the global variables in config.py, only REG_CONSTANT is speard around the files.
So I move the REG_CONSTANT to constant.py.
EPS(1e-12) is also suitable to move to constant.
How Has This Been Tested?

[x] Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
[ ] If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

Pipeline test:

Your own tests:

Types of changes

[x] Fix bugs
[ ] Add new feature
[ ] Update documentation

It looks great! Thanks so much!

authors: ChiahungTai you-n-g

repo: microsoft/qlib


text:
Detect absence of .NET SDK 3.1 and display error message

This PR is a mitigation of issue #737.

@samarsha, @bettinaheim: this is exactly the same approved PR #753 but now targeting the main branch.

repo: microsoft/qsharp-compiler


text:
[Feature Request] Add Authentication example in demo_server

💡 Idea
Extend the demo_server to have authenticated APIs and examples to use restler-fuzzer to detect unauthorized access (NameSpaceRuleChecker).
While the current demo_server is a good start, it'd be great to have examples for other Checkers which are off by default. It'd really give a clear picture and potential vulnerability detection.
Design Notes
No response

Thanks a lot for this awesome fuzzer!
I'd be happy to contribute in this feature if general direction / implementation plan is decided.

repo: microsoft/restler-fuzzer


text:
Python: Adjust tool limit per request

Motivation and Context

We have set incorrect limits on the number of tools that can be provided to the AI services per request.
Description

This PR adjusts or remove the limits according to the documentations of the services.
Add unit tests for prompt execution settings of some services that are previously lacking such tests.

Contribution Checklist

[x] The code builds clean without any errors or warnings
[x] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[x] All unit tests pass, and I have added new tests where possible
[x] I didn't break anyone :smile:

Closing this PR due to a permission issue on the test coverage workflow. This is replaced by this PR: https://github.com/microsoft/semantic-kernel/pull/9894 that comes from this repo instead of a fork.

repo: microsoft/semantic-kernel


text:
Bug Report - Pasting text adds new line between each line

Environment
Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Any other software? Ubuntu-18

Steps to reproduce

Open a new termanal window with the Ubuntu 18.04 app from the MS store. Copy a multi-line file from notepad or vs code. Paste the multi-line file into the terminal.
Expected behavior

I expect the file to paste as I have copied it, with no extra spaces or new lines added.
Actual behavior

The pasted file has new lines between each line when pasted.
Example:
Copy the following into terminal
version: '3'
services:
  gogs:
    image: gogs/gogs:latest
    ports:
      - "10022:22"
      - "3000:3000"
    volumes:
      - ./data/gogs:/data
    depends_on:
      - mysql
  mysql:
    image: mysql:5.7.16
    volumes:
      - ./gogs/mysql:/var/lib/mysql
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 3308:3306
    environment:
      MYSQL_DATABASE: gogs

Results when pasted into terminal:
version: '3'

services:

gogs:

    image: gogs/gogs:latest

ports:

- "10022:22"

- "3000:3000"

volumes:

      - ./data/gogs:/data

    depends_on:

      - mysql

  mysql:

    image: mysql:5.7.16

    volumes:

      - ./gogs/mysql:/var/lib/mysql

      - /var/run/docker.sock:/var/run/docker.sock

    ports:

      - 3308:3306

    environment:

      MYSQL_ROOT_PASSWORD:

      MYSQL_DATABASE: gogs

      MYSQL_USER:

      MYSQL_PASSWORD:

      TZ: Pacific/Auckland

This seems to be related to the Windows line ending.
It doesn't happen to me if it is set to Unix .
Empty lines are inserted if the source uses <CR+LF>

Looks like a dupe of #1091

authors: DHowett-MSFT Taubin wernersv

repo: microsoft/terminal


text:
Korean text is not rendered properly

Windows Terminal version
1.19.10302.0
Windows build number
10.0.22621.3155
Other Software
No response
Steps to reproduce
Certain Korean text doesn't render properly. Example
curl.exe https://gist.githubusercontent.com/pandaninjas/388ef63712016c853675dd33f0ab6864/raw/7c4f5b1d3107b2ee60c6a78d7c3a3e882ec2ebd2/korean-text.txt
Expected Behavior
Renders properly. Ex:

Actual Behavior
Korean text is printed weirdly

I think Terminal is correct here. The text file you provided contains two letters ᄅ(U+1105) and ᅳ(U+1173).
The browser seems to be combining those two together to render them as 르(U+B974), which I don't think should be happening.

I think Terminal is correct here.

It used to be correct! But nowadays, terminals are supposed to mostly handle grapheme clusters as per UAX#29 correctly (the Unicode Text Segmentation standard). The width of a glyph is the maximum width of each character in a grapheme cluster as per UAX#11 (the East Asian Width standard).
The two glyphs are syllable type L (leading consonant) and V (vowel), as per:

https://codepoints.net/U+1105?lang=en
https://codepoints.net/U+1173?lang=en

UAX#29 specifies that L×V do not break apart, which means that Windows Terminal has at least 1 bug: It should treat 르 as a single unit for cursor navigation, etc.
I'm not entirely sure whether 르 should be drawn as 르, because I'm not a native Korean speaker. But given the above it should definitely only get allocated 1 cell, which would mean that it should be drawn as 르, because it won't fit otherwise. I believe the only reason it currently gets drawn as 르 is because we rely on DirectWrite whose builtin support for modern Unicode is still incomplete. For instance, you can try pasting 르 into Word and it'll be broken just like it is in Windows Terminal. Both are built on top of DirectWrite. 😕

Found the answer: https://devblogs.microsoft.com/oldnewthing/20201009-00/?p=104351
tl;dr: Windows (DirectWrite) does it ""right"" but they're literally the only one to do so, which is why Windows is effectively wrong. There's no alternative to DirectWrite though... Hmm, I hope I can figure something out because normalizing the input text to NFC first would be super awkward and make performance optimizations difficult.

authors: leejy12 lhecker pandaninjas


text:
Remove the current constraint of 8196 for cmd command.

Summary of the new feature/enhancement
Environment variable length cannot exceed 8196 characters. This limitation should be optional only and the user should be able to switch on/off this limit via some reg edit Key.
Thanks.
Proposed technical implementation details (optional)

You’re going to have to file this one in the feedback hub, because we don’t control how the operating system handles environment variables. Sorry!

Hi Dustin,
Can you tell me the feedback hub URL?
Thanks.
On Wednesday, July 10, 2019, Dustin L. Howett (MSFT) <
notifications@github.com> wrote:

You’re going to have to file this one in the feedback hub, because we
don’t control how the operating system handles environment variables. Sorry!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/terminal/issues/1902?email_source=notifications&email_token=AA23YCIWJFLMRLE77JNMAI3P6WHTVA5CNFSM4H7MJKEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSTK6I#issuecomment-509949305,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA23YCJNDX45ZGAUDH2UIP3P6WHTVANCNFSM4H7MJKEA
.

--
Nabil Ghodbane (PhD. Habil.)
Mailto: nabil.ghodbane@gmail.com

@nitawa The Feedback Hub should be an app on your PC:

authors: DHowett-MSFT nitawa zadjii-msft


text:
Bug Report: Crash on copying to clipboard

Copying text to the clipboard is extremely flaky.
Environment
[Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal (Preview)
Version: 0.5.2681.0

Steps to reproduce
Open up any console app and copy text via mouse clicks. OneDrive link to desktop recording via Radeon Software.
Expected behavior
Text be on clipboard and not crash.
Actual behavior
Sometimes the app crashes after ~0.5 seconds when trying to copy to the clipboard (content is lost), even if copying is successful, closing the app clears the clipboard. Copying via Ctrl+C is more reliable, but Ctrl+C is reserved for break.

This sounds close enough to the issues mentioned in https://github.com/microsoft/terminal/pull/2927 - so hopefully fixed with the next release.

Yeah. This'll be fixed by #2927. Thanks @Fractura for finding it.

authors: Fractura MathiasMagnus carlos-zamora


text:
Clear screen

I want to know is there any shortcut to clear screen?  Like cmd+ R on Mac, or ctrl + L on Linux.

That's a feature of the shell rather than the terminal itself. If you're using Powershell or a WSL bash shell, then Ctrl+L should clear the screen. I don't think the cmd shell has an equivalent shortcut though.

Thanks for the suggestion! This is actually already being tracked by a bunch of issue on our repo - please refer to the following threads for more discussion:
/dup #2832
/dup https://github.com/microsoft/terminal/issues/1882#issuecomment-510468487
/dup #1193

authors: demongodYY j4james zadjii-msft


text:
Issue with lxml during document classification training

I set up the model for training for document classification task. Followed the instructions on README page. However, usually a minute or so into training, I would get an error as below:
我按照README把数据和模型都准备好，用来做文档分类的工作。但运行training的代码，大约30秒到1分钟左右，出现下列错误，跟lxml有关：
Traceback (most recent call last):
  File "run_classification.py", line 858, in <module>
    main()
  File "run_classification.py", line 790, in main
    args, args.task_name, tokenizer, evaluate=False
  File "run_classification.py", line 418, in load_and_cache_examples
    else processor.get_train_examples(args.data_dir)
  File "/databricks/driver/unilm/layoutlm/utils_classification.py", line 104, in get_train_examples
    text, bbox = self.read_hocr_file(data_dir, file)
  File "/databricks/driver/unilm/layoutlm/utils_classification.py", line 125, in read_hocr_file
    for page in doc.xpath("//*[@class='ocr_page']"):
  File "src/lxml/etree.pyx", line 2292, in lxml.etree._ElementTree.xpath
  File "src/lxml/etree.pyx", line 1870, in lxml.etree._ElementTree._assertHasRoot
AssertionError: ElementTree not initialized, missing root

I tried installing the latest version of lxml (4.5), with my original version being 4.3, and it did not resolve the issue. Any pointers on how I might be able to resolve this issue? Thanks!
我尝试把lxml从原来的4.3版本更新的4.5，但还是有相同的问题。不知道这个该怎么解决，谢谢！

Hi @andrewcby ,
It seems that there are some empty files or their formats are unacceptable. I have added exception handling for lxml parsing. Please pull the latest code and check the warning data files.
Thanks.

authors: andrewcby ranpox

repo: microsoft/unilm


text:
using MinLM s2s_ft core dump when l load the model

Describe the bug
Model I am using MiniLM in s2s_ft core dump
The problem arises when using:
path of training data
TRAIN_FILE=data/xsum.train.json
folder used to save fine-tuned checkpoints
OUTPUT_DIR=./checkpoints/
folder used to cache package dependencies
CACHE_DIR=./transformer_package_cache
export CUDA_VISIBLE_DEVICES=2
#,3
python run_seq2seq.py
--train_file ${TRAIN_FILE} --output_dir ${OUTPUT_DIR}
--model_type minilm --model_name_or_path minilm-l12-h384-uncased
--do_lower_case --fp16 --fp16_opt_level O2 --max_source_seq_length 464 --max_target_seq_length 48
--per_gpu_train_batch_size 16 --gradient_accumulation_steps 1
--learning_rate 7e-5 --num_warmup_steps 500 --num_training_steps 32000 --cache_dir ${CACHE_DIR}

To Reproduce
Steps to reproduce the behavior:

run the scripts above

Platform:
Python version:Python 3.6.9
PyTorch version (GPU?):1.2.0
transformes version=2.9.1

@lonelydancer It may be the problem caused by the version of sentencepiece, you can try
pip install sentencepiece==0.1.85

it works ! thank you