Skip to content

Cost report is not being uploaded #308

Description

@moetouban

Hi, I integrated fladle and configured it to run with a service account. when i run it i can see the matrix and results is uploaded to the bucket but i can't manage to get the Cost Reporting generated. how to generate the cost reporting like below ?

 Physical devices
$0.08 for 1m
Uploading [CostReport.txt] to https://console.developers.google.com/storage/browser/test-lab-v9cn46bb990nx-kz69ymd4nm9aq/test_dir/...

configuration:

fladle {
flankVersion = "22.+"
serviceAccountCredentials = project.layout.projectDirectory.file("test-key.json")
// Project Id is not needed if serviceAccountCredentials are set.
// projectId("flank-gradle")
useOrchestrator = false
environmentVariables = [
"clearPackageData": "true"
]
testTargets = [
"class com.example.test.TestFoo"
]
devices = [
["model": "redfin", "version": "30"], // physical device
]
localResultsDir = "results"
smartFlankGcsPath = "gs://test-lab-etc/flank/test_app_android.xml"
configs {
instrumentationApk.set(project.provider { "${buildDir.toString()}/outputs/apk/androidTest/debugTesting/*.apk" })
debugApk.set(project.provider { "${buildDir.toString()}/outputs/apk/debugTesting/*.apk" })
}
flakyTestAttempts = 1
maxTestShards = 50
filesToDownload = [
'.*/sdcard/tempDir1/.*', '.*/data/local/tmp/tempDir2/.*','/sdcard/Download', '.*/sdcard/[^/]+\\.ec$'
]
directoriesToPull = [
'/sdcard/tempDir1', '/data/local/tmp/tempDir2','/sdcard/Download'
]
testTimeout = "30m"
resultsBucket = "test-lab-etc"
outputStyle = 'multi'
legacyJunitResult = false
fullJunitResult = false
}

output:
Screen Shot 2022-09-01 at 10 43 55 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions