CircleCI-Public / CircleCI-Public/BATS-orb

Expose resource_class for executor on all jobs

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Shell
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Currently jobs don't expose a resource_class to use, this means they use the default. Currently this is Large, which is significantly more expensive than Small which would probably be sufficient. If we can expose this santza on the jobs, we can switch to these smaller instances and make our build cheaper.

**Describe the solution you'd like**

Add the resource_class to the parameters section for all jobs.

```
parameters:
resource_class:
type: enum
enum:
- small
- medium
- medium+
- large
- xlarge
- 2xlarge
- 2xlarge+
description: Configure the executor resource class
default: small
```

An example of when this is exposed can be seen here:
https://circleci.com/developer/orbs/orb/circleci/orb-tools#jobs-pack

**Describe alternatives you've considered**

N/A

**Additional context**

N/A

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the repository's job definitions and reviewing how their parameters are declared. Add the requested resource_class parameter to every job with the listed enum values and small as the default; done means all jobs expose the same configurable executor resource class.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.