Same Code Fails In Gitlab CI When In Different Repositories
I have a repository with the same exact code, everything except git commit history. In a legacy repository it fails in CI build steps. When it is in a new repository. that same exact code is passing.
Both of these projects are in the same gitlab project folder and should be inheriting the same CICD variables found in the repositories settings
gitlab.com/linkto/repo/-/settings/ci_cd
info [bazel] success Already up-to-date.
info [bazel] $ node scripts/kbn patch_native_modules
info [bazel] INFO: Analyzed target //packages:build (1910 packages loaded, 8454 targets configured).
info [bazel] INFO: Found 1 target...
info [bazel] ERROR: /kibana/packages/elastic-datemath/BUILD.bazel:61:11: Copying files failed: missing input file '//packages/elastic-datemath:README.md'
info [bazel] Target //packages:build failed to build
info [bazel] Use --verbose_failures to see the command lines of failed build steps.
info [bazel] ERROR: /kibana/packages/elastic-datemath/BUILD.bazel:61:11 Copying files failed: 1 input file(s) do not exist
info [bazel] INFO: Elapsed time: 13.816s, Critical Path: 0.45s
info [bazel] INFO: 93 processes: 29 internal, 64 linux-sandbox.
info [bazel]
In the working case that same step is passing
info [bazel] $ node scripts/kbn patch_native_modules
info [bazel] INFO: Analyzed target //packages:build (1911 packages loaded, 8454 targets configured).
info [bazel] INFO: Found 1 target...
info [bazel] INFO: From Assembling npm types package packages/kbn-securitysolution-utils/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-securitysolution-list-constants/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-i18n/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-config-schema/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-analytics/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-securitysolution-hook-utils/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-ui-theme/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/kbn-apm-utils/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
info [bazel] INFO: From Assembling npm types package packages/elastic-datemath/npm_module_types:
info [bazel] Analysis will use the bundled TypeScript version 4.5.3
....
Sorry if this is a bit vague, I’ll see if I can get an open source demonstration of this working, but are there any idea’s out there why the gitlab CI is not idompotent here? I would expect with the same cicd settings and same code they should behave the same regardless of commit history. Thanks