Skip to content

Remove unused ignored_subst_vars argument from Deploy._subst_vars#156

Open
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:subst-vars-dead-arg
Open

Remove unused ignored_subst_vars argument from Deploy._subst_vars#156
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:subst-vars-dead-arg

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
Copy link
Copy Markdown
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

I would need @machshev to weigh in, but I would hazard a guess that this was implemented with the long-term goal of staged evaluation of wildcards when merging the HJSONs? And so maybe it's worth keeping?

A current limitation of the system is that, if we were using --reseed 10000, we must make 10000 individual Deploy objects, and then evaluate the wildcards recursively for each of these 10000 objects. We need to do this because the HJSON could depend on the per-deploy unique seed values. But if we were more clever, we could substitute in all the wildcards except the Deploy-dependent ones (seeds, etc.), pass that to the Deploy objects, and then we only have to evaluate a couple of wildcards at most for each Deploy.

I believe that was the long term goal. At least, that's why it takes 5-10 minutes to even build the JobSpec graph to give the scheduler for an OpenTitan weekly run on my device 😅

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.

2 participants