Skip to content

Cost report is not being uploaded #308

Open

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

Activity

  1. moetouban commented on Sep 7, 2022

    @moetouban
    Author

    @runningcode and idea how to integrate cost report?

  2. runningcode commented on Sep 7, 2022

    @runningcode
    Owner

    Can you clarify what the difference is between the build that uploaded the cost report and the one that did upload it? Is it working sometimes but not always? Is the file available on the filesystem but not uploaded to the gcloud bucket?

  3. moetouban commented on Sep 7, 2022

    @moetouban
    Author

    @runningcode it never generated cost report the screenshot for cost report was taken from flank as example but it never generate it through the plugin locally or in the bucket

  4. runningcode commented on Sep 7, 2022

    @runningcode
    Owner

    What version of flank did you use? What is the difference in configuration for that version of flank and this execution of flank via fladle?

  5. moetouban commented on Sep 7, 2022

    @moetouban
    Author

    @runningcode flank documentation doesn't state anything special configuration needed, seems it's out of the box. ,I was wondering why it wasn't generated through fladle?

    I was hoping to use the gradle plugin for easy of use but the cost report is important thing that might be a deal breaker to use the plugin.

    Check it out here https://flank.github.io/flank/flank-output-investigation/flank_current_output/#cost-report-section

  6. runningcode commented on Sep 8, 2022

    @runningcode
    Owner

    Can you please share with me the version of flank you used where you saw the report being uploaded?

    Please also try running flank directly (without fladle) with the generated yaml file (you can get this with the printYml task and let me know if the report is uploaded.

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

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