Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-BcContainerAppRuntimePackage & IncludeSourceInPackageFile in BC25 #3789

Open
xtiche opened this issue Dec 18, 2024 · 6 comments
Open

Get-BcContainerAppRuntimePackage & IncludeSourceInPackageFile in BC25 #3789

xtiche opened this issue Dec 18, 2024 · 6 comments
Assignees

Comments

@xtiche
Copy link

xtiche commented Dec 18, 2024

Describe the issue
After adding IncludeSourceInPackageFile = true, and adding includeSourceInSymbolFile in app.json, for RunTime package I see mark:
Image

File size for runtime packages was changed(become bigger), but cannot do "go do definition" and cannot see code during debug

Parameters

The latest version (6.0.28) of BcContainerHelper module is already installed
BcContainerHelper version 6.0.28
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.20348.2760
LatestGenericTagVersion is 1.0.2.51



gitHubActions                   False
vsixFile                        
License file                    Specified
CodeSignCertPfxFile             Not specified
CodeSignCertPfxPassword         Not specified
CodeSignCertIsSelfSigned        False
KeyVaultCertPfxFile             Not specified
KeyVaultCertPfxPassword         Not specified
KeyVaultClientId                
BuildOutputFile                 
ContainerEventLogFile           
TestResultsFile                 C:\a\7\s\TestResults.xml
BcptTestResultsFile             C:\a\7\s\bcptTestResults.json
TestResultsFormat               JUnit
AdditionalCountries             
PackagesFolder                  C:\a\7\s\.packages
OutputFolder                    C:\a\7\s\.output
BuildArtifactFolder             C:\a\7\a
CreateRuntimePackages           True
AppVersion                      
AppBuild                        78752
AppRevision                     241210
SourceRepositoryUrl             
SourceCommit                    
BuildBy                         BcContainerHelper,6.0.28
BuildUrl                        
Mandatory Affixes               SMA
Supported Countries             UA
ObsoleteTagMinAllowedMajorMinor 


@xtiche
Copy link
Author

xtiche commented Jan 28, 2025

Done everything as was described in #3160 but even after all this marks result is different

allowDebugging includeSourceInSymbolFile IncludeSourceInPackageFile Result in Runtime Pack File
true true true You cannot debug, and cannot go to the definition of objects from app

@xtiche
Copy link
Author

xtiche commented Jan 28, 2025

Script that I use:

$params = @{}
$insiderSasToken = "$ENV:insiderSasToken"
$licenseFile = "$ENV:licenseFile"
$codeSigncertPfxFile = "$ENV:CodeSignCertPfxFile"
if (!$doNotSignApps -and $codeSigncertPfxFile) {
    if ("$ENV:CodeSignCertPfxPassword" -ne "") {
        $codeSignCertPfxPassword = try { "$ENV:CodeSignCertPfxPassword" | ConvertTo-SecureString } catch { ConvertTo-SecureString -String "$ENV:CodeSignCertPfxPassword" -AsPlainText -Force }
        $params = @{
            "codeSignCertPfxFile"     = $codeSignCertPfxFile
            "codeSignCertPfxPassword" = $codeSignCertPfxPassword
            "IncludeSourceInPackageFile" = $IncludeSourceInPackageFile
        }
    }
    else {
        $codeSignCertPfxPassword = $null
        $params = @{
            "IncludeSourceInPackageFile" = $IncludeSourceInPackageFile
        }
    }
}

$allTestResults = "testresults*.xml"
$testResultsFile = Join-Path $baseFolder "TestResults.xml"
$testResultsFiles = Join-Path $baseFolder $allTestResults
if (Test-Path $testResultsFiles) {
    Remove-Item $testResultsFiles -Force
}

Run-AlPipeline @params `
    -pipelinename $pipelineName `
    -containerName $containerName `
    -imageName $imageName `
    -bcAuthContext $authContext `
    -environment $environmentName `
    -artifact $artifact.replace('{INSIDERSASTOKEN}', '') `
    -accept_insiderEula `
    -memoryLimit $memoryLimit `
    -baseFolder $baseFolder `
    -licenseFile $LicenseFile `
    -installApps $installApps `
    -previousApps $previousApps `
    -appFolders $appFolders `
    -testFolders $testFolders `
    -doNotRunTests:$doNotRunTests `
    -testResultsFile $testResultsFile `
    -testResultsFormat 'JUnit' `
    -installTestRunner:$installTestRunner `
    -installTestFramework:$installTestFramework `
    -installTestLibraries:$installTestLibraries `
    -installPerformanceToolkit:$installPerformanceToolkit `
    -companyName $companyNameForTests `
    -enableCodeCop:$enableCodeCop `
    -enableAppSourceCop:$enableAppSourceCop `
    -enablePerTenantExtensionCop:$enablePerTenantExtensionCop `
    -enableUICop:$enableUICop `
    -useDefaultAppSourceRuleSet:$useDefaultAppSourceRuleSet `
    -rulesetFile:$rulesetFile `
    -azureDevOps:($environment -eq 'AzureDevOps') `
    -gitLab:($environment -eq 'GitLab') `
    -gitHubActions:($environment -eq 'GitHubActions') `
    -failOn 'error' `
    -AppSourceCopMandatoryAffixes $appSourceCopMandatoryAffixes `
    -AppSourceCopSupportedCountries $appSourceCopSupportedCountries `
    -additionalCountries $additionalCountries `
    -buildArtifactFolder $buildArtifactFolder `
    -CreateRuntimePackages:$CreateRuntimePackages `
    -appBuild $appBuild -appRevision $appRevision `
    -applicationInsightsConnectionString "$($ENV:applicationInsightsConnectionString)"
#    -applicationInsightsKey "$($ENV:applicationInsightsKey)" `

if ($environment -eq 'AzureDevOps') {
    Write-Host "##vso[task.setvariable variable=TestResults]$allTestResults"
}

@freddydk
Copy link
Contributor

Is this a question, an issue, a problem or just information?
I am unsure what to do about this?

@xtiche
Copy link
Author

xtiche commented Feb 10, 2025

@freddydk maybe I did something wrong, that artifacts that were generated as a result of pipeline have no symbols, or they are not visible through VS Code?

Do you have any idea how it is possible to generate ".runtimeapps" with included symbols but without the possibility of downloading source code?

@freddydk
Copy link
Contributor

Unfortunately, I don't know - maybe ask on microsoft/AL repo?

@xtiche
Copy link
Author

xtiche commented Feb 12, 2025

Created issue in other repo 7967
Thanks for support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants