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

AllocRunner v2 Feature Branch PR #4792

Merged
merged 152 commits into from
Oct 17, 2018
Merged

AllocRunner v2 Feature Branch PR #4792

merged 152 commits into from
Oct 17, 2018

Conversation

schmichael
Copy link
Member

Tests are not where we'd like them to be, but it's time to get this on the main development branch and get it in shape for release!

dadgar and others added 30 commits October 16, 2018 16:53
Tons left to do and lots of churn:
1. No state saving
2. No shutdown or gc
3. Removed AR factory *for now*
4. Made all "Config" structs local to the package they configure
5. Added allocID to GC to avoid a lookup

Really hating how many things use *structs.Allocation. It's not bad
without state saving, but if AllocRunner starts updating its copy things
get racy fast.
I think I like this pattern better as some Config vals are mutable
(Alloc) and some aren't and some are used to derive other values and
never used directly.

Promoting them onto the TR struct is a little more work but is hopefully
more clear as to how each value is used.
All hooks only need to be run once.
Since only one hook can fail per run there's no need to
track errors on a per hook basis.
splits apart local and remote persistence

removes some locking *for now*
Restoring calls NewAR -> Restore -> Run

NewAR now calls NewTR
AR.Restore calls TR.Restore
AR.Run calls TR.Run
nickethier and others added 24 commits October 16, 2018 16:56
Now passing the TaskDir struct to prestart hooks instead of just the
root task dir itself as dispatch needs local/.
PR #4392 was merged to master *after* allocrunnerv2 was branched, so the
client-specific portions must be ported from master to arv2.
Do not register mock_driver on release builds.
Was mock_driver before plugins, so keep the name.
was causing typed nil interface panics and served no purpose
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants