Repository navigation
Forge 0.8.2: guild lifecycle, log and upload hardening, with 0.8.1 compatibility - #79
Merged
Merged
Conversation
- Ensuring an agent compares its launch profiles with the ones stored by 0.8.1 in its properties, so re-ensuring it is no longer a 409, and moves them to the dependency_profiles column. - NATS agent status written without a lease, by 0.8.1 nodes, stays live until the bucket TTL removes it instead of being deleted on read, which made the reconciler spawn the agent again. - Revision conflicts on NATS status updates are detected with ErrKeyRevisionMismatch, which also matches replicated buckets. - The Python NATS status reader ignores entries whose lease expired. - The guild manager starts an agent whose row already exists when it is not running, so an agent whose first launch failed is not left stopped.
- Store the base of the client's filename, as 0.8.1 did, instead of rejecting a name that has a directory in it. - Ignore form fields other than file and file_meta, as 0.8.1 did; uploaders may send their own. The body size limit still applies. - Do not ask S3 for conditional writes. S3-compatible stores without them reject the request; S3 uploads keep relying on the Exists check. - Correct the comments on the local upload lock and on rebuilding the Guild Manager's spawn request.
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.
Forge 0.8.2: the guild lifecycle, agent log and upload hardening from #78, rebased onto 0.8.1, with fixes so guilds, agents and status stored by 0.8.1 keep working after the upgrade, and rusticai-core 1.5.1. This replaces #78.
Changes
From #78, rebased onto 0.8.1
dependency_profilescolumn instead of in its properties, where agents with a strict properties class rejected them. Spawning reads the stored agent row, not the queued payload. Agents stored by 0.8.1 have the old_forge_dependency_profilesproperty removed from the spec they are given, and their profiles are read from it.FORGE_AGENT_ACCEPTED_WARMUP_SECONDSstill overrides it).--max-file-upload-bytes, 413 above it). Leftover temporary files are removed at startup, and concurrent uploads of the same file are serialized.Compatibility with 0.8.1
ErrKeyRevisionMismatch, which also matches replicated buckets.fileandfile_meta, as 0.8.1 did. S3 writes are not conditional, since S3-compatible stores without conditional writes reject them.Release
rusticai-core>=1.5.1, for the clear error when a dependency cannot be resolved. Version 0.8.2.rusticai-forge==<version>, so the 0.8.2 Python package must be published before the binary is used withoutFORGE_PYTHON_PKG.Validation
go vet ./..., the generated contract check,go test ./...and the Go build.ruff check,compileall,uv build,pytest tests/contractand the other Python tests, apart fromtest_forge_api_contract.pyand the Redis integration test. Those fail locally because the server cannot findconf/forge-agent-registry.yaml, the same as onmain.