https://infracost.io logo
#contributors
Title
# contributors
w

white-airport-8778

10/13/2021, 11:22 AM
Looking at this test failure after I merged a PR into the master branch:
Copy code
=== CONT  TestComputeInstance
    testutil.go:195: 
        Output does not match golden file: 
        
        --- Expected
        +++ Actual
        @@ -20,3 +20,3 @@
          ├─ Standard provisioned storage (pd-standard)                         10  GiB           $0.40 
        - └─ NVIDIA Tesla K80 (preemptible)                                  2,920  hours       $394.20 
        + └─ NVIDIA Tesla K80 (preemptible)                                  2,920  hours       $109.50 
                                                                                                        
        @@ -35,2 +35,2 @@
                                                                                                        
        - OVERALL TOTAL                                                                       $1,923.12 
        + OVERALL TOTAL                                                                       $1,638.42
l

little-author-61621

10/13/2021, 11:29 AM
I had to fix those recently: https://github.com/infracost/infracost/pull/1032/commits/88da5272b3f12a984afb8811bf933da02ff57ae9 So might be something with that and Google changing the mappings.
w

white-airport-8778

10/13/2021, 12:01 PM
Thanks, yep the footnote on this page confirms it:
Copy code
*Spot price is the current price which applies to Spot VMs and also preemptible VMs.
l

little-author-61621

10/13/2021, 4:36 PM
Did you find the fix for this? If not I can have a look
w

white-airport-8778

10/13/2021, 4:41 PM
I thought your commit fixed it as in the
feat/s3-estimation
branch,
infracost breakdown --path internal/providers/terraform/google/testdata/compute_instance_test --fields all
shows correct prices/costs for the K80 lines
l

little-author-61621

10/13/2021, 4:43 PM
Hmm let me check, that commit got merged a few days ago so is in master as well
w

white-airport-8778

10/13/2021, 4:44 PM
sorry, I should have said: the latest release shows the correct prices/costs (ignore your branch part of my comment)
l

little-author-61621

10/13/2021, 4:46 PM
Cool, yeah looks like the price changed and the test needs updated. Will push the test fix to master.
1
🙌 1
w

white-airport-8778

10/13/2021, 4:47 PM
ah sorry I missed that bit
6 Views