Hi team!.. I need help pleasee…I am run Infracost ...
# help
h
Hi team!.. I need help pleasee…I am run Infracost with Gitlab App Integrations and comments in PR events, but all projects fails with this error when pipeline run .
Copy code
No source files found: no files found in directory: /usr/src/app/****/infra/tg_resources/tg_gcp_redis/feature_COPS-7017/****/us-east1/data/prod/data
I use a config.tmpl for generate infracost.yml with projects name and paths, in local the breakdown command work but in Gitlab Pipeline this is currently fail
s
hmmm, nothing obvious comes to mind here, but I might recommend a few debugging steps like: • Checking which directory everything is running in to make sure you're in the right root of the repo • First make sure the template is successfully converted to a config file with
infracost generate config --template-path=config.tmpl --out-file=infracost.yml
• Then make sure infracost breakdown is running with that file:
infracost breakdown --config-file=infracost.yml
• You can add
LOG_LEVEL=debug
to get a lot more info outputting about any issues, so that can be helpful
h
Thanks! @swift-furniture-85673 the template work fine when i try to convert in local to config file.
same result when i run breakdown command
but with Gitlab App Integration when run in PR the Lastest Estimate fail with the same error that i put in my first message
No source files found: no files found in directory: /usr/src/app/****/infra/tg_resources/tg_gcp_redis/feature_COPS-7017/****/us-east1/data/prod/data
the only diff that i view is the use of the branch name in the path when run in Gitlab App Integration pipeline
tg_resources/tg_gcp_redis/feature_COPS-7017/*
and in my local execution for breakdown and config generate from template the path not include this value
not sure how Gitlab App Integration use the branch name for executions and if this is the problem
s
Ah yes, I see now, thanks for the extra info! I've filed a bug report and we're investigating.
h
Thanks!… @swift-furniture-85673 you can share the Issue Link associate with this bug ¿?
s
I can not. It is an internal system. I will follow up as soon as we have some more info
h
oh.. I understand….please if you have news or estimate time to resolution please let me know because all our Cost Estimates execution is Broken by this problem. Thanks!
a
Hi Felipe, We've resolved the underlying issue and you should be fully back to normal now. Thanks for the report and apologies for the issues! Drew
1