Package: arcor2-build
arcor2_buildEnvironment variablesARCOR2_BUILD_URL=http://0.0.0.0:5008- by default, the service listens on port 5008.ARCOR2_BUILD_DEBUG=1- switches logger to theDEBUGlevel (useful to debug issues with publish/import).ARCOR2_REST_DEBUG=1- may be used to debug problems related to communication with the Project service.ARCOR2_REST_API_DEBUG=1- turns on Flask debugging (logs each endpoint call).ARCOR2_PROJECT_PATH=""- can be set to an arbitrary value, not actually used.ChangelogThe format is based onKeep a Changelog,[1.3.1] - 2024-01-30FixedObjects specified inproject_objects_idswere actually missing in the package.ChangesSupport forproject_objects_idswas added forimport.[1.3.0] - 2024-01-26ChangedObject Types listed inproject_objects_idsare now automatically added to the Execution package.Those objects don't have to be based onGeneric, actually the file may contain whatever (no need for a class with name corresponding to the name of the module / Object Type).All scene objects are downloaded prior to trying to find their predecessors. This will allow importing code from one Object Type into another.Cross-importing should be done only between OT listed in scene or objects listed inproject_objects_ids- OT should not import something from another OT predecessor, as this situation can't be figured out.All changes are fully backwards compatible.[1.2.0] - 2024-01-08ChangedDependency onarcor2_runtime~=1.1.0.[1.1.0] - 2023-07-20AddedDecompilerPossibility to decompile script from imported execution package and then update of project data.Decompiler has also detection of unsupported operations, syntax and semantic errors.Commands that can be decompiled:Object with method which can have many outputs, parameters in method can be:constantvariable which is result of methodproject parametervalue of ActionPointattribute of classConditions: alone "if" or "if" continued many "elif",  condition must be in formif "variable" == "constant":.Command "Continue" if is some command after command "continue" on same level it will be not compiled.[1.0.2] - 2023-04-04FixedFix of the fix (from the previous release).Side effect is that it is now necessary to setARCOR2_PROJECT_PATH(can be set to an arbitrary value).[1.0.1] - 2023-03-30FixedDependency onarcor2_runtimewas specified on a wrong place.[1.0.0] - 2023-02-14ChangedMarked as a stable version.Added dependency onarcor2_runtime(so a manually written script can import e.g.ResourcesException).Health check end-point changed to/healthz/ready.[0.25.0] - 2022-12-12ChangedDependency onarcor2~=0.26.0.[0.24.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.23.0] - 2022-07-08ChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.BREAKING:ProjectPublishoperation parameterproject_idmoved to query asprojectId.
Error codes were replaced with error types as described in swagger documentation.Update of API description.[0.22.0] - 2022-02-04ChangedPython 3.9.API version is now the same as service version.[0.21.0] - 2021-10-25ChangedPublished archive name.The resulting zip name ispkg_name_package.zip.Orproject_name_package.zipwhen no package name is given.[0.20.0] - 2021-09-07ChangedUpdatedarcor2dependency.New environment variableARCOR2_BUILD_DEBUG- to turn on debugging output.[0.19.1] - 2021-09-02ChangedAdded EXPOSE to dockerfile[0.19.0] - 2021-07-30ChangedDepending onarcor2==0.20.0.FixedPackage import failed in cases where files contained non-ascii characters.The problem was inarcor2.restmodule which was not encoding data properly.Scene/projectoverWriteflags were required all the time.[0.18.0] - 2021-07-29ChangedChange constants to project parameters.[0.17.0] - 2021-06-14ChangedUpdated code generation forResources(moved, now without parameters).[0.16.0] - 2021-06-11ChangedOpenAPI definition updated.[0.15.0] - 2021-05-21Changedoverwriteflag divided into:overwriteScene,overwriteProject,overwriteObjectTypes,overwriteProjectSources,overwriteCollisionModels.Action parameter value is always JSON.It used to be just string for link/constant types.Now it is always JSON to be more consistent.Support for multiple inheritance.ObjectTypes can now use mixins.It should be used likeclass NewObjectType(MixinA, MixinB, Generic).E.g. the last ancestor should be something derived fromGeneric.During a package import, object types used in a scene are checked whether they are not abstract.[0.14.1] - 2021-04-19FixedDependency on a bugfix release of arcor2.[0.14.0] - 2021-03-30ChangedConsiderably faster builds and imports.Allow unused actions.Import run returnsImportedPackagecontaining scene and project IDs.[0.13.0] - 2021-03-15ChangedDependency on arcor2 0.13.0.GeneratedActionPointsclass now returns copy of data (poses etc. can be freely modified within actions).[0.12.1] - 2021-03-08FixedBump dependency to arcor2 0.12.1 which fixes code generation in thePoseplugin.Check whether ObjectType id (class name) is the same as its models id.The assertion was turned into exception.[0.12.0] - 2021-03-03ChangedA new methodPUT /project/importto import existing execution package.Import fails if data already exists and there is any difference.Import can be forced by settingoverwriteparameter.FixedBuild now returns response messages in JSON.[0.11.0] - 2021-02-08ChangedPart of the code refactored intoarcor2/flask.py.Support for explicit parameters in the main script.Actionsclass is no longer generated (does not make sense now).Resourcesclass is no longer generated (used to have actions parameters as properties).Improved/adaptedActionPointsgenerated class.Support for project constants (parameter typeconstant).An action can now use a previous result as its parameter (parameter typelink).[0.10.0] - 2020-12-14ChangedAbility to generate branched logic (if/elif block after action).[0.9.2] - 2020-10-30ChangedARCOR2 dependency updated[0.9.1] - 2020-10-19ChangedARCOR2 dependency updated[0.9.0] - 2020-10-16ChangedCode generation adapted according toprint_exceptionlocation change.[0.8.1] - 2020-10-05AddedBuild now has--debugargument (0e6e418).FixedFixed empty response error (0edc1a6).ChangedBuild now assembles the execution package in memory (7ac70d0).[0.8.0] - 2020-09-24ChangedThe first release of the separated package.