Move environment from metadata to job object#2777
Conversation
f5a90ba to
30dde74
Compare
|
Size Change: +1.79 kB (0%) Total Size: 53.4 MB
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2777 +/- ##
==========================================
+ Coverage 52.62% 52.99% +0.37%
==========================================
Files 584 585 +1
Lines 22638 22680 +42
Branches 4467 4723 +256
==========================================
+ Hits 11910 12016 +106
+ Misses 10694 9735 -959
- Partials 34 929 +895 ☔ View full report in Codecov by Sentry. |
|
Subscribed to pull request
Generated by CodeMention |
| if (buildProfileEnvironment && isEnvironment(buildProfileEnvironment)) { | ||
| return buildProfileEnvironment; | ||
| } | ||
| return null; |
There was a problem hiding this comment.
If a user specifies an invalid value in environment, shouldn't we throw an error and ask him to fix it instead of falling back to defaults?
30dde74 to
90ed39a
Compare
| requiredPackageManager: ctx.requiredPackageManager ?? undefined, | ||
| selectedImage: ctx.buildProfile.image, | ||
| customNodeVersion: ctx.buildProfile.node, | ||
| environment: ctx.buildProfile.environment, |
There was a problem hiding this comment.
Interesting, we didn't require any mapping before. How did it work?
90ed39a to
b70bacb
Compare
|
⏩ The changelog entry check has been skipped since the "no changelog" label is present. |

Why
ENG-14307: move environment to job object from metadata
Environmentshould be considering a first class citizen in job object instead of being stored in the metadata.How
environmentinjobobjectenvironmentfrommetadata.Test Plan
environmentineas.json.Build details)