[SERVER-33239] expansions.update generates error for src/${aws_ec2_yml} in evergreen.yml Created: 09/Feb/18  Updated: 06/Dec/22  Resolved: 11/May/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: stm, tig-evgconfig
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Tooling & Methods
Participants:

 Description   

This code block in the function "set EC2 address" generates an error if it's invoked in a non-Powercycle task:

    - command: expansions.update
      params:
        file: src/${aws_ec2_yml}

In this case the expansion macro aws_ec2_yml os not defined causing the expansions.update to attempt to use a directory:

[2018/02/09 13:43:42.864] Running command 'expansions.update' in "set EC2 address" (step 3.2 of 36)
[2018/02/09 13:43:42.864] Updating expansions with keys from file: /data/mci/29701ce16b48fecddfed1732d4bb3622/src
[2018/02/09 13:43:42.864] Command failed: read /data/mci/29701ce16b48fecddfed1732d4bb3622/src: is a directory

It might be desirable to create an empty YML file to prevent this in the pre step.



 Comments   
Comment by Ryan Timmons [ 11/May/20 ]

Major changes to evergreen.yml coming via INIT-57.

Generated at Thu Feb 08 04:32:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.