Repository navigation
Conversation
…and moves A new Nullius standard job declares a UUID, standard.uuid in its config.json: a run resumed into the same folder keeps it, a merge makes a new one. The reader exposes Job.uid and Job.uid_source: the declared id, else a uuid5 derived from fixed facts of the files (format, folder name, what ran, the start), else pending for a job with no trial and no start. No path is a fact, so a copy or a move keeps the identity; old files are never rewritten to gain one. Trial.key names a trial within it, a try by its attempt.
…it move with the feed A run resumed under the same name keeps the folder's uuid only when the earlier config names the same benchmark, plugged agent or capability, model and dataset; a job from before standard.uuid is given the uid it was read under. A Harbor job's start is read from result.json only, never from Nullius's feed, which may appear later; a feed that is not UTF-8 is read with replacement. A merge writes its config.json first and whole, so its result is never read without the merge's uuid. Imports' identity by folder name is marked as a known limit.
Two ATIF or OpenTelemetry sources of one basename were converted into one imported/<format>__<basename> folder, each conversion pruning the other's trials, and shared one derived identity. A source's first conversion now gives it an id, written in the job's config.json as nullius.source with its absolute path, and kept on every reconversion. Its folder is the one recording it; a new source takes the default name, or <default>-2, -3... when that belongs to another source. The job's identity is declared from the id. A folder converted before ids is reused for its own source, never rewritten to gain one, and keeps its derived identity. Refs ThinkFlowLab#400
A random id gave one tree a new identity in each workspace that imported
it, so its judgements stayed behind. nullius.source is now a uuid5 over
the format and the tree's real path ("v": 1), still written at the first
conversion and read back on reconversion, so a copied job keeps it. A tree
moved or renamed on disk is a new source.
Refs ThinkFlowLab#400
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #400
Stacked on #402 (job identity): its commits show here until #402 merges.
What
Two ATIF or OpenTelemetry sources of one basename were converted into one
imported/<format>__<basename>folder: each conversion pruned the other's trials, and both had one derived identity (#399).uuid5over the format and that path, so every workspace importing the tree agrees. It is written in the job'sconfig.jsonasnullius.sourcewithnullius.source_path, read back on every reconversion and kept by a copied job.<format>__<basename>, or-2,-3... when that folder belongs to another source.nullius.source. Theshortcut:comment inuid.pyis gone.Touches
app/nullius/importers/__init__.py:place(), the folder and id for a source;recorded_as()app/nullius/importers/atif.py,otel.py: use them; each reads the source an older conversion recordedapp/nullius/runs/uid.py: declared fromnullius.sourceapp/tests/test_import_unchanged_source.pyVerified
Two ATIF sources
team-a/runandteam-b/run, converted into one imports folder, thenteam-a/runagain.Before:
After:
New tests, ATIF and OpenTelemetry: two sources of one basename get two folders and two identities; one source converted into two workspaces gives one identity, and a copy of the job keeps it; reconverting one keeps its identity and leaves the other's files untouched; a conversion without the id is reconverted in place, gains no id and keeps its identity, and another source of its basename gets a new folder.
Risk