-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Policy definition error #385
Comments
This is definitely a bug, @VenelinBakalov I'd change to effort/high, this is an issue with vrotsc and that's always tricky. After a git bisect, I found that the breaking commit seems to be: e169cdf0 80aa1d6 is the last working one. Good find @unbreakabl3! |
case "templateVersion":
policyTemplateInfo.templateVersion = (<ts.StringLiteral>(property.initializer)).text;
break;
case "variables":
buildPolicyVariables(policyTemplateInfo, <ts.ObjectLiteralExpression>property.initializer);
break;
case "elements":
buildPolicyElements(policyTemplateInfo, <ts.ObjectLiteralExpression>property.initializer);
break; needs to be added back, pinging @bcpmihail maybe you can help out here? |
@Michaelpalacce oks, I will wait for further feedback before updating the labels to see if it doesn't turn out to be something small |
Notes: Full support of Policy (PR: #202 , samples PR: vmware-samples/build-tools-for-vmware-aria-samples#1 ) -> adds variables and samples; agreed to do versioning e169cdf#diff-2758ec22240769ca24b53db71e3dc4dc4a7990dabed3bc38bf2ec4456d19f3a1 -> removed v2 policy features ('templateVersion', 'variables', 'elements' from policyTemplate.ts, info from Release.md). |
@bcpmihail I see that vmware-samples/build-tools-for-vmware-aria-samples#1 is old and approved, should I merge it or it will fail now because of the current bug? |
@VenelinBakalov it will fail because of the current bug - support for v2 attributes (elements, variables and templateVersion) needed to be reintroduced in https://github.com/vmware/build-tools-for-vmware-aria/pull/390/files#diff-94ef6e165c573f7516349e7530e4a466f874cee3d034b5075094dbd1d3011ec9:~:text=case%20%22templateVersion%22,elements%22%3A%20%7B (policyTemplate.ts l.275-286) |
I see, then I guess we can merge it after we close the current PR and do a release |
As discussed with @Michaelpalacce , @VenelinBakalov , @joroaf :
|
[vrotsc] (#385) Fix TS-vRA archetype sample policy definition and re-add v2 policy attributes
Description
After a new vRO TS project is created, the building step is failing ,because of the
sample.pl.ts
file. If I do remove thevariables
andelements
sections, the build is complete without issues.Working
If I do add
templateVersion: "v1"
(which is optional and supposed to work in any case), the errorError: PolicyTemplate attribute 'templateVersion' is not supported.
is appears.Not working
It is looks like that anything, which is coming after the
path
causing that error.Steps to Reproduce
mvn install
Preconditions: [What are the preconditions to reproduce the issue]
Expected behavior: [What you expect to happen]
The build will complete successfully
Actual behavior: [What actually happens]
The build is failing
Reproduces how often: [What percentage of the time does it reproduce]
All the time
Component/s: [What are the Build Tools for VMware Aria components affected by the issue (e.g. "common/artifact-manager", "maven/plugins/vra-ng", "typescript/vrotest", etc)]
TS Types
Affects Build/s: [Which are the Build Tools for VMware Aria releases / builds affected by the issue]
2.40 and 2.41
Environment
Client
Server
Failure Logs
Related issues and PRs
Additional Context
The text was updated successfully, but these errors were encountered: