Skip to content

streamline dynamic machine label creation and cleanup process #6372

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mahdipub
Copy link

Uses create/free EBC pipeline calls which lets manage EBC from central job.

Signed-off-by: [email protected]

@mahdipub mahdipub force-pushed the EBC_pipeline_call branch from 3be7307 to a2fcdeb Compare June 26, 2025 23:09
@mahdipub
Copy link
Author

try {
timeout(time: 120, unit: 'MINUTES') {
// ToDo: pass in platform once we support more platforms. For now, we only support xlinux.
getEBCNode(ebcDemandId, dynamicMachineLabel)
def dynamicMachineLabel = 'ci.agent.dynamic.' + UUID.randomUUID().toString()
getEBCNode(dynamicMachineLabel)
node(dynamicMachineLabel) {
echo "EBC node ${dynamicMachineLabel} is ready"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check for the node to be ready here? It appears that is what param WAIT is doing on the Create job.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say it doesn't hurt if we keep it for when we decide to set wait:false.

@mahdipub mahdipub force-pushed the EBC_pipeline_call branch from a2fcdeb to 5e724bc Compare June 27, 2025 21:21
@mahdipub mahdipub force-pushed the EBC_pipeline_call branch from 5e724bc to ac8db10 Compare June 27, 2025 21:28
@karianna karianna requested review from llxia and AdamBrousseau June 27, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants