From b7c171426ef24a377264b7088d9881bb35e614a3 Mon Sep 17 00:00:00 2001 From: "slominskir-coding-agent[bot]" <335168828+slominskir-coding-agent[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:37:23 -0500 Subject: [PATCH] Load the SQAP's merged dependencies element The SQAP (acc/iac/docs/sqap!22, revision 19bcfba) merged "Dependencies on other ACS products recorded in the build files or README" into "Dependencies recorded in the build files or README: acquired software with its versions, and other ACS products, including their servers, schemas and web services", and named the group of dependency elements Dependencies instead of Acquired Software. A checklist now asks once for the record of a product's dependencies, and shows it with the other dependency elements; acs-dependencies-recorded is retired. 03_sqa_elements.sql is regenerated: 16 elements. Existing databases need container/oracle/upgrade/2.11.1_sqap_dependencies_merged.sql, which sets each element's row to what a new database loads, moves a status recorded for the retired element to dependencies-recorded where a product has none there, after listing the products that recorded the two differently, and deletes the retired element. It also sets the section links JeffersonLab/sim#91 changed, so it replaces that pull request's unreleased 2.11.1_sqap_draft_section_links.sql: one script for the release, with no order to get wrong. The user guide's links to section 4.3 name the new revision. Co-Authored-By: Claude Opus 5.5 --- container/oracle/initdb.d/03_sqa_elements.sql | 35 ++++++------- .../2.11.1_sqap_dependencies_merged.sql | 52 +++++++++++++++++++ .../2.11.1_sqap_draft_section_links.sql | 27 ---------- docs/user-guide/risk-assessment.md | 10 ++-- 4 files changed, 74 insertions(+), 50 deletions(-) create mode 100644 container/oracle/upgrade/2.11.1_sqap_dependencies_merged.sql delete mode 100644 container/oracle/upgrade/2.11.1_sqap_draft_section_links.sql diff --git a/container/oracle/initdb.d/03_sqa_elements.sql b/container/oracle/initdb.d/03_sqa_elements.sql index 2c52963..9b1bcb2 100644 --- a/container/oracle/initdb.d/03_sqa_elements.sql +++ b/container/oracle/initdb.d/03_sqa_elements.sql @@ -1,25 +1,24 @@ alter session set container = XEPDB1; --- The ACS SQAP's required SQA elements of a product, revision: draft 8905d54 after 1.0.0. +-- The ACS SQAP's required SQA elements of a product, revision: draft 19bcfba after 1.0.0. -- Generated by container/oracle/sqa_elements_sql.py from the SQAP's elements.json: do not edit. SET DEFINE OFF; -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('ratings-recorded', 'Ops Impact and Code Complexity recorded in the Software Directory', 'Ratings recorded', 'Requirements', '4.4.1', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#441-requirements', 1, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('requirements-specification', 'Software Requirements Specification', 'Requirements specification', 'Requirements', '4.4.1', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#441-requirements', 2, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('design-documented', 'Purpose and use documented in source code, README file or similar', 'Purpose and use documented', 'Design', '4.4.2', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design', 3, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('design-specification', 'Software Design Specification', 'Design specification', 'Design', '4.4.2', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design', 4, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('acs-dependencies-recorded', 'Dependencies on other ACS products recorded in the build files or README', 'ACS dependencies recorded', 'Design', '4.4.2', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design', 5, null, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('source-documentation', 'Source code documentation', 'Source code documentation', 'Development', '4.4.3', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#443-development', 6, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('version-control', 'Version control', 'Version control', 'Development', '4.4.3', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#443-development', 7, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('test-plan', 'Software Test Plan', 'Test plan', 'Testing and Verification', '4.4.4', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#444-testing-and-verification', 8, null, null, 'RECOMMENDED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('user-guide', 'User Guide', 'User guide', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment', 9, null, null, 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('installed-version', 'Version number, found from the installed instance', 'Installed version shown', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment', 10, null, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('installed-read-only', 'Installed software read-only to its users', 'Read-only install', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment', 11, null, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('issue-tracking', 'Issue Tracking', 'Issue tracking', 'Maintenance', '4.4.6', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#446-maintenance', 12, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('two-maintainers', 'At least two maintainers listed in the Software Directory', 'Two maintainers', 'Maintenance', '4.4.6', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#446-maintenance', 13, null, null, 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('dependencies-recorded', 'Dependencies and their versions recorded in the build files or README', 'Dependencies recorded', 'Acquired Software', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements', 14, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('versions-pinned', 'Versions pinned exactly, in a lock file where the build tool has one', 'Dependency versions pinned', 'Acquired Software', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements', 15, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('acquired-choice-recorded', 'Choice recorded: purpose, source, license, maintenance status', 'Dependency choices recorded', 'Acquired Software', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements', 16, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); -insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('advisories-watched', 'Advisories and end of support watched by the maintainer', 'Dependency advisories watched', 'Acquired Software', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements', 17, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 8905d54 after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('ratings-recorded', 'Ops Impact and Code Complexity recorded in the Software Directory', 'Ratings recorded', 'Requirements', '4.4.1', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#441-requirements', 1, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('requirements-specification', 'Software Requirements Specification', 'Requirements specification', 'Requirements', '4.4.1', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#441-requirements', 2, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('design-documented', 'Purpose and use documented in source code, README file or similar', 'Purpose and use documented', 'Design', '4.4.2', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#442-design', 3, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('design-specification', 'Software Design Specification', 'Design specification', 'Design', '4.4.2', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#442-design', 4, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('source-documentation', 'Source code documentation', 'Source code documentation', 'Development', '4.4.3', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#443-development', 5, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('version-control', 'Version control', 'Version control', 'Development', '4.4.3', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#443-development', 6, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('test-plan', 'Software Test Plan', 'Test plan', 'Testing and Verification', '4.4.4', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#444-testing-and-verification', 7, null, null, 'RECOMMENDED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('user-guide', 'User Guide', 'User guide', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', 8, null, null, 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('installed-version', 'Version number, found from the installed instance', 'Installed version shown', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', 9, null, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('installed-read-only', 'Installed software read-only to its users', 'Read-only install', 'Deployment', '4.4.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', 10, null, 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('issue-tracking', 'Issue Tracking', 'Issue tracking', 'Maintenance', '4.4.6', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#446-maintenance', 11, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('two-maintainers', 'At least two maintainers listed in the Software Directory', 'Two maintainers', 'Maintenance', '4.4.6', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#446-maintenance', 12, null, null, 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('dependencies-recorded', 'Dependencies recorded in the build files or README: acquired software with its versions, and other ACS products, including their servers, schemas and web services', 'Dependencies recorded', 'Dependencies', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', 13, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('versions-pinned', 'Versions pinned exactly, in a lock file where the build tool has one', 'Dependency versions pinned', 'Dependencies', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', 14, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('acquired-choice-recorded', 'Choice recorded: purpose, source, license, maintenance status', 'Dependency choices recorded', 'Dependencies', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', 15, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); +insert into SIM_OWNER.SQA_ELEMENT (ELEMENT_ID, NAME, SHORT_NAME, PHASE, SECTION_NUMBER, SECTION_URL, WEIGHT, LEVEL_0, LEVEL_1, LEVEL_2, LEVEL_3, SQAP_VERSION) values ('advisories-watched', 'Advisories and end of support watched by the maintainer', 'Dependency advisories watched', 'Dependencies', '6.1.5', 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', 16, null, 'RECOMMENDED', 'REQUIRED', 'REQUIRED', 'draft 19bcfba after 1.0.0'); commit; diff --git a/container/oracle/upgrade/2.11.1_sqap_dependencies_merged.sql b/container/oracle/upgrade/2.11.1_sqap_dependencies_merged.sql new file mode 100644 index 0000000..e6c9340 --- /dev/null +++ b/container/oracle/upgrade/2.11.1_sqap_dependencies_merged.sql @@ -0,0 +1,52 @@ +-- Load the SQAP's elements of revision draft 19bcfba after 1.0.0 (acc/iac/docs/sqap!22), and link each to its +-- section in the SQAP's source at that revision on code.jlab.org (JeffersonLab/sim#91), in place of +-- the website's "latest", the released 1.0.0, which lacks most of the draft's elements. +-- +-- The SQAP merged "Dependencies on other ACS products recorded ..." (acs-dependencies-recorded) into +-- "Dependencies recorded ..." (dependencies-recorded), which now covers acquired software and other +-- ACS products, and named the group of dependency elements "Dependencies". What was recorded of the +-- retired element moves to dependencies-recorded for a product with nothing recorded there; the +-- query below first lists the products that had both recorded, with different statuses, to review. +-- +-- Run once, as SIM_OWNER, on a database at 2.11.0. Afterwards each SQA_ELEMENT row matches +-- container/oracle/initdb.d/03_sqa_elements.sql, which container/oracle/sqa_elements_sql.py writes. + +SET DEFINE OFF; + +update SIM_OWNER.SQA_ELEMENT set NAME = 'Ops Impact and Code Complexity recorded in the Software Directory', SHORT_NAME = 'Ratings recorded', PHASE = 'Requirements', SECTION_NUMBER = '4.4.1', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#441-requirements', WEIGHT = 1, LEVEL_0 = 'REQUIRED', LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'ratings-recorded'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Software Requirements Specification', SHORT_NAME = 'Requirements specification', PHASE = 'Requirements', SECTION_NUMBER = '4.4.1', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#441-requirements', WEIGHT = 2, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'requirements-specification'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Purpose and use documented in source code, README file or similar', SHORT_NAME = 'Purpose and use documented', PHASE = 'Design', SECTION_NUMBER = '4.4.2', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#442-design', WEIGHT = 3, LEVEL_0 = 'REQUIRED', LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'design-documented'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Software Design Specification', SHORT_NAME = 'Design specification', PHASE = 'Design', SECTION_NUMBER = '4.4.2', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#442-design', WEIGHT = 4, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'design-specification'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Source code documentation', SHORT_NAME = 'Source code documentation', PHASE = 'Development', SECTION_NUMBER = '4.4.3', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#443-development', WEIGHT = 5, LEVEL_0 = 'RECOMMENDED', LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'source-documentation'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Version control', SHORT_NAME = 'Version control', PHASE = 'Development', SECTION_NUMBER = '4.4.3', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#443-development', WEIGHT = 6, LEVEL_0 = 'RECOMMENDED', LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'version-control'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Software Test Plan', SHORT_NAME = 'Test plan', PHASE = 'Testing and Verification', SECTION_NUMBER = '4.4.4', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#444-testing-and-verification', WEIGHT = 7, LEVEL_0 = null, LEVEL_1 = null, LEVEL_2 = 'RECOMMENDED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'test-plan'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'User Guide', SHORT_NAME = 'User guide', PHASE = 'Deployment', SECTION_NUMBER = '4.4.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', WEIGHT = 8, LEVEL_0 = null, LEVEL_1 = null, LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'user-guide'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Version number, found from the installed instance', SHORT_NAME = 'Installed version shown', PHASE = 'Deployment', SECTION_NUMBER = '4.4.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', WEIGHT = 9, LEVEL_0 = null, LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'installed-version'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Installed software read-only to its users', SHORT_NAME = 'Read-only install', PHASE = 'Deployment', SECTION_NUMBER = '4.4.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#445-deployment', WEIGHT = 10, LEVEL_0 = null, LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'installed-read-only'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Issue Tracking', SHORT_NAME = 'Issue tracking', PHASE = 'Maintenance', SECTION_NUMBER = '4.4.6', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#446-maintenance', WEIGHT = 11, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'issue-tracking'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'At least two maintainers listed in the Software Directory', SHORT_NAME = 'Two maintainers', PHASE = 'Maintenance', SECTION_NUMBER = '4.4.6', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#446-maintenance', WEIGHT = 12, LEVEL_0 = null, LEVEL_1 = null, LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'two-maintainers'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Dependencies recorded in the build files or README: acquired software with its versions, and other ACS products, including their servers, schemas and web services', SHORT_NAME = 'Dependencies recorded', PHASE = 'Dependencies', SECTION_NUMBER = '6.1.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', WEIGHT = 13, LEVEL_0 = 'RECOMMENDED', LEVEL_1 = 'REQUIRED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'dependencies-recorded'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Versions pinned exactly, in a lock file where the build tool has one', SHORT_NAME = 'Dependency versions pinned', PHASE = 'Dependencies', SECTION_NUMBER = '6.1.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', WEIGHT = 14, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'versions-pinned'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Choice recorded: purpose, source, license, maintenance status', SHORT_NAME = 'Dependency choices recorded', PHASE = 'Dependencies', SECTION_NUMBER = '6.1.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', WEIGHT = 15, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'acquired-choice-recorded'; +update SIM_OWNER.SQA_ELEMENT set NAME = 'Advisories and end of support watched by the maintainer', SHORT_NAME = 'Dependency advisories watched', PHASE = 'Dependencies', SECTION_NUMBER = '6.1.5', SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/06-reviews-and-audits.md#615-required-sqa-elements', WEIGHT = 16, LEVEL_0 = null, LEVEL_1 = 'RECOMMENDED', LEVEL_2 = 'REQUIRED', LEVEL_3 = 'REQUIRED', SQAP_VERSION = 'draft 19bcfba after 1.0.0' where ELEMENT_ID = 'advisories-watched'; + +-- Products that recorded both, differently: dependencies-recorded keeps its own status, so review these +select s.NAME, a.STATUS as ACS_DEPENDENCIES, b.STATUS as DEPENDENCIES + from SIM_OWNER.SOFTWARE_ELEMENT a + join SIM_OWNER.SOFTWARE_ELEMENT b on b.SOFTWARE_ID = a.SOFTWARE_ID and b.ELEMENT_ID = 'dependencies-recorded' + join SIM_OWNER.SOFTWARE s on s.SOFTWARE_ID = a.SOFTWARE_ID + where a.ELEMENT_ID = 'acs-dependencies-recorded' and a.STATUS <> b.STATUS; + +insert into SIM_OWNER.SOFTWARE_ELEMENT (SOFTWARE_ID, ELEMENT_ID, STATUS, LINK_URL, NOTE, RECORDED_BY, RECORDED_DATE) +select a.SOFTWARE_ID, 'dependencies-recorded', a.STATUS, a.LINK_URL, a.NOTE, a.RECORDED_BY, a.RECORDED_DATE + from SIM_OWNER.SOFTWARE_ELEMENT a + where a.ELEMENT_ID = 'acs-dependencies-recorded' + and not exists (select 1 from SIM_OWNER.SOFTWARE_ELEMENT b + where b.SOFTWARE_ID = a.SOFTWARE_ID and b.ELEMENT_ID = 'dependencies-recorded'); + +delete from SIM_OWNER.SOFTWARE_ELEMENT where ELEMENT_ID = 'acs-dependencies-recorded'; +delete from SIM_OWNER.REPOSITORY_ELEMENT where ELEMENT_ID = 'acs-dependencies-recorded'; +delete from SIM_OWNER.WORKFLOW_ELEMENT where ELEMENT_ID = 'acs-dependencies-recorded'; +delete from SIM_OWNER.SQA_ELEMENT where ELEMENT_ID = 'acs-dependencies-recorded'; + +COMMIT; diff --git a/container/oracle/upgrade/2.11.1_sqap_draft_section_links.sql b/container/oracle/upgrade/2.11.1_sqap_draft_section_links.sql deleted file mode 100644 index 88caf9e..0000000 --- a/container/oracle/upgrade/2.11.1_sqap_draft_section_links.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Link each SQA element to its section in the SQAP's source at the loaded draft revision --- (8905d54) on code.jlab.org, in place of the website's "latest", which is the last released --- revision (1.0.0) and lacks most of the draft's elements. Run once, as SIM_OWNER, on a database at --- 2.11.0. The links match container/oracle/initdb.d/03_sqa_elements.sql, which --- container/oracle/sqa_elements_sql.py writes; nothing else changes. - -SET DEFINE OFF; - -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#441-requirements' where ELEMENT_ID = 'ratings-recorded'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#441-requirements' where ELEMENT_ID = 'requirements-specification'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design' where ELEMENT_ID = 'design-documented'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design' where ELEMENT_ID = 'design-specification'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#442-design' where ELEMENT_ID = 'acs-dependencies-recorded'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#443-development' where ELEMENT_ID = 'source-documentation'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#443-development' where ELEMENT_ID = 'version-control'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#444-testing-and-verification' where ELEMENT_ID = 'test-plan'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment' where ELEMENT_ID = 'user-guide'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment' where ELEMENT_ID = 'installed-version'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#445-deployment' where ELEMENT_ID = 'installed-read-only'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#446-maintenance' where ELEMENT_ID = 'issue-tracking'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#446-maintenance' where ELEMENT_ID = 'two-maintainers'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements' where ELEMENT_ID = 'dependencies-recorded'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements' where ELEMENT_ID = 'versions-pinned'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements' where ELEMENT_ID = 'acquired-choice-recorded'; -update SIM_OWNER.SQA_ELEMENT set SECTION_URL = 'https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/06-reviews-and-audits.md#615-required-sqa-elements' where ELEMENT_ID = 'advisories-watched'; - -COMMIT; diff --git a/docs/user-guide/risk-assessment.md b/docs/user-guide/risk-assessment.md index 19a4808..62ec3d7 100644 --- a/docs/user-guide/risk-assessment.md +++ b/docs/user-guide/risk-assessment.md @@ -50,14 +50,14 @@ and reassess when the software or its use changes. Software not yet written, or that a coming operations program needs, can be rated too. The SQAP defines the two inputs that give the control level, so this guide doesn't repeat them. -Its links go to the SQAP revision this release of SIM loads, a draft (8905d54) whose text is on +Its links go to the SQAP revision this release of SIM loads, a draft (19bcfba) whose text is on code.jlab.org; the SQAP's website has only released revisions. -- **Ops Impact**: [SQAP §4.3.1](https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#431-ops-impact). -- **Code Complexity**: [SQAP §4.3.2](https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#432-code-complexity). +- **Ops Impact**: [SQAP §4.3.1](https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#431-ops-impact). +- **Code Complexity**: [SQAP §4.3.2](https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#432-code-complexity). Who rates the software, and when, is in [SQAP -§4.3.4](https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#434-recording-the-control-level). +§4.3.4](https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#434-recording-the-control-level). The other four inputs are SIM's own, and only set fragility and attention. ### Past Downtime Rate @@ -98,7 +98,7 @@ technology and subject. The SQA control level says how much process the SQAP asks for when the software changes: 0 **Minimal**, 1 **Partial**, 2 **Significant** or 3 **Full**. SIM derives it from Ops Impact and Code Complexity with the SQAP's [control level -table](https://code.jlab.org/acc/iac/docs/sqap/-/blob/8905d54/docs/04-software-development-life-cycle.md#433-control-level-table), +table](https://code.jlab.org/acc/iac/docs/sqap/-/blob/19bcfba/docs/04-software-development-life-cycle.md#433-control-level-table), and the dialog shows the result as you change them. An **override** replaces the derived level with another, for an exception the SQAP allows. The