Skip to content
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

Fail to run cmake and protobuf targets from Unix playbook #767

Closed
jdekonin opened this issue Apr 10, 2019 · 10 comments
Closed

Fail to run cmake and protobuf targets from Unix playbook #767

jdekonin opened this issue Apr 10, 2019 · 10 comments
Assignees
Labels
Milestone

Comments

@jdekonin
Copy link
Contributor

Attempting to run the specific tags for either ccache or protobuf fail to be found.

This change appears to be what caused the issue;
#584

@karianna karianna added the bug label Apr 11, 2019
@karianna karianna added this to the 2019 April milestone Apr 11, 2019
@sxa
Copy link
Member

sxa commented Apr 11, 2019

Hmmm yes that's potentially an issue. What's the use case for wanting to run individual ones like that in the playbook?

@jdekonin
Copy link
Contributor Author

I have a machine that is missing protobuf and I don't want to waste time running the entire playbook to get one role.

@karianna
Copy link
Contributor

Doesn't the playbook 'skip' everything that's already in place?

@sxa
Copy link
Member

sxa commented Apr 11, 2019

@karianna It does but takes a bit longer than is ideal (An issue I'd quite like to look at...)

@sxa sxa modified the milestones: 2019 April, Backlog Apr 15, 2019
@Haroon-Khel Haroon-Khel self-assigned this Jan 14, 2020
@Haroon-Khel
Copy link
Contributor

Haroon-Khel commented Jan 14, 2020

The cmake, ccache and protobuf tasks, in their respective roles, are all tagged with cmake, ccache and protobuf respectively. So these specific roles can be run using --tags "cmake,ccache,protobuf" in your ansible-playbook command. However this will not run the protobuf tasks as the role is not included in the AdoptOpenJDK_Unix_Playbook/main.yml, as of the pr mentioned in the first comment.

Are there any plans to add protobuf back into main.yml?

@sxa
Copy link
Member

sxa commented Jan 14, 2020

Up until a week ago it wasn't required by AdoptOpenJDK but since the JITserver support went into the extensions repository a few days ago it is (Linux/x64 only for now) so yeah I'll chuck in a PR to re-enable it ...

@Haroon-Khel
Copy link
Contributor

@jdekonin Protobuf has been added back as a role, so the use of the option --tags "cmake, ccache, protobuf" should run only those roles. Is this what you were looking for?

@jdekonin
Copy link
Contributor Author

Yes, although it looks like there is still an extra role to install protobuf on line 52 that needs to be cleaned up. Its the role in this (current) form that cannot be omitted.

https://github.com/AdoptOpenJDK/openjdk-infrastructure/blob/b4c899faa26160d0f5479ef443c5cf478fcee175/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/main.yml#L52

@sxa
Copy link
Member

sxa commented Jan 17, 2020

Good point @jdekonin - with the desire to build with GCC7 where possible that needs to be removed now

@Haroon-Khel
Copy link
Contributor

The local_srcinstall role has been removed as per #1102.
Closing this issue.

@karianna karianna modified the milestones: Backlog, February 2020 Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants