@suffolklitlab/alkiln 5.13.3 → 5.13.4-feat-textarea-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.github/workflows/github_server.yml +7 -7
  2. package/.github/workflows/playground.yml +1 -1
  3. package/CHANGELOG.md +34 -1
  4. package/_alkiln_meta/gherkin_parsed_example.json +1546 -0
  5. package/_alkiln_meta/shift_logs.js +75 -0
  6. package/action.yml +70 -28
  7. package/action_for_github_server/action.yml +61 -29
  8. package/docs/4_environments.md +243 -0
  9. package/docs/artifacts_folder_name.md +135 -0
  10. package/docs/constrained_random_tests.md +265 -14
  11. package/docs/decisions/006_which_log_level_to_pick_2024_09_5.md +70 -0
  12. package/docs/decisions/007_getting_and_storing_logs.md +179 -0
  13. package/docs/decisions/move_runtime_config_to_sources_folder.md +5 -1
  14. package/docs/decisions/reports_and_logs_2024_08_11.md +161 -0
  15. package/docs/kinds_of_errors.md +26 -0
  16. package/docs/prioritize_constrained_random_tests.md +35 -76
  17. package/lib/docassemble/docassemble_api_interface.js +77 -51
  18. package/lib/docassemble/server_install.js +32 -9
  19. package/lib/docassemble/setup.js +40 -25
  20. package/lib/docassemble/takedown.js +33 -10
  21. package/lib/run_cucumber.js +115 -36
  22. package/lib/scope.js +72 -76
  23. package/lib/steps.js +118 -65
  24. package/lib/utils/Log.js +981 -0
  25. package/lib/utils/_alkiln-constrained_random_tests_old.js +1776 -0
  26. package/lib/utils/files.js +18 -11
  27. package/lib/utils/reports.js +70 -21
  28. package/lib/utils/session_vars.js +34 -21
  29. package/lib/utils/time.js +44 -0
  30. package/package.json +1 -1
  31. package/tests/log_codes/check_codes.sh +2 -1
  32. package/tests/log_codes/log_code_expected_instances.txt +33 -9
  33. package/tests/unit_tests/example_of_chai_test_lifecycle.js +78 -0
  34. package/tests/unit_tests/getAllFields.test.js +5 -0
  35. package/tests/unit_tests/getMatchingRows.test.js +5 -0
  36. package/tests/unit_tests/log.test.js +581 -0
  37. package/tests/unit_tests/normalizeTable.test.js +5 -0
  38. package/docs/seprate_file_generation_GitHub_action.md +0 -11
  39. package/lib/utils/log.js +0 -96
@@ -45,15 +45,15 @@ jobs:
45
45
  #### keyword or values at all. See
46
46
  #### https://assemblyline.suffolklitlab.org/docs/alkiln/writing#env-vars
47
47
  env:
48
- SECRET_VAR1: secret-var1-value
49
- SECRET_VAR2: secret-var2-value
50
- SECRET_FOR_MISSING_FIELD: secret for missing field
51
- INVALID_API_KEY: invalidAPIkey
52
- EMPTY_STRING: ""
53
48
  NORMAL_USER_EMAIL: alkiln@example.com
54
49
  NORMAL_USER_PASSWORD: User123^
55
50
  WRONG_EMAIL: wrong_email@example.com
56
51
  WRONG_PASSWORD: wrong_password
52
+ INVALID_API_KEY: invalidAPIkey
53
+ EMPTY_STRING: ""
54
+ SECRET_VAR1: secret-var1-value
55
+ SECRET_VAR2: secret-var2-value
56
+ SECRET_FOR_MISSING_FIELD: secret for missing field
57
57
 
58
58
  steps:
59
59
  # Place the root directory in this branch to access
@@ -160,7 +160,7 @@ jobs:
160
160
  #### Developer note: You can probably leave the rest out
161
161
  #### To learn more, see https://assemblyline.suffolklitlab.org/docs/alkiln/writing/#optional-inputs
162
162
  ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
163
- # ALKILN_VERSION: da_DOM_fieldset
163
+ ALKILN_VERSION: "5.13.4-feat-textarea-1"
164
164
 
165
165
  #### Developer note: Example of making an issue when tests fail
166
166
  #### that includes the text of the failure output file
@@ -169,7 +169,7 @@ jobs:
169
169
  if: ${{ failure() }}
170
170
  env:
171
171
  GH_TOKEN: ${{ github.token }}
172
- PATH_TO_REPORT_FILE: "${{ steps.alkiln.outputs.PATH_TO_REPORT_FILE }}"
172
+ PATH_TO_REPORT_LOG_FILE: "${{ steps.alkiln.outputs.PATH_TO_REPORT_LOG_FILE }}"
173
173
  PATH_TO_UNEXPECTED_RESULTS_FILE: "${{ steps.alkiln.outputs.PATH_TO_UNEXPECTED_RESULTS_FILE }}"
174
174
  PATH_TO_DEBUG_LOG_FILE: "${{ steps.alkiln.outputs.PATH_TO_DEBUG_LOG_FILE }}"
175
175
  run: |
@@ -81,4 +81,4 @@ jobs:
81
81
  # want to check up on this.
82
82
  ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
83
83
  #### Developer note: You can probably leave this out
84
- # ALKILN_VERSION: da_DOM_fieldset
84
+ ALKILN_VERSION: "5.13.4-feat-textarea-1"
package/CHANGELOG.md CHANGED
@@ -43,7 +43,34 @@ Format:
43
43
  -
44
44
  -->
45
45
 
46
- <!-- ## [Unreleased] -->
46
+ ## [Unreleased]
47
+
48
+ ### Added
49
+
50
+ - Adds a linear Step to properly set multi-line values for `textarea`s (closes [#1003](https://github.com/SuffolkLITLab/ALKiln/issues/1003)). We are unable to fix the current "set variable" linear Step for this. See [this comment on #655](https://github.com/SuffolkLITLab/ALKiln/issues/655#issuecomment-2876491571).
51
+
52
+ ### Internal
53
+
54
+ - Changes how Log joins logs.
55
+ - Allows reports to accept log messages as an argument without duplicating metadata text. Debug logs will still save duplicate messages.
56
+
57
+ ## [5.13.4] - 2025-01-11
58
+
59
+ ### Changed
60
+
61
+ - Removed an extraneous log
62
+
63
+ ### Fixed
64
+
65
+ - Final error showed an undefined var instead of a more useful error message
66
+
67
+ ### Internal
68
+
69
+ - Refactored `log` into a class that works with ALKiln's 4 possible environments
70
+ - Refactored `Log` class to handle throwing errors
71
+ - Now store debug information in debug log instead of printing it live
72
+ - Removed debug flag so debug logs always get stored
73
+ - Added decision/design docs
47
74
 
48
75
  ## [5.13.3] - 2025-01-05
49
76
 
@@ -66,6 +93,8 @@ Format:
66
93
  ### Fixed
67
94
 
68
95
  - Detects failed sign in. Closes [#918](https://github.com/SuffolkLITLab/ALKiln/issues/918).
96
+ - Fixes undefined `errors` var in `After()`
97
+ - Closes [#924](https://github.com/SuffolkLITLab/ALKiln/issues/924), remove extra interview url print
69
98
 
70
99
  ### Internal
71
100
 
@@ -76,6 +105,10 @@ Format:
76
105
  - Adds decision docs
77
106
  - Updated CONTRIBUTING.md
78
107
  - Added example.env, closes [#374](https://github.com/SuffolkLITLab/ALKiln/issues/374)
108
+ - Closes [#805](https://github.com/SuffolkLITLab/ALKiln/issues/805), create verbose-type log
109
+ - Closes [#659](https://github.com/SuffolkLITLab/ALKiln/issues/659), abstract adding to debug_log
110
+ - Closes [#925](https://github.com/SuffolkLITLab/ALKiln/issues/925), allow a `Log` to throw an error
111
+ - Addresses [#461](https://github.com/SuffolkLITLab/ALKiln/issues/461), setup and takedown reports
79
112
  - Updates pdfjs-dist for node v20 and v22. See [#952](https://github.com/SuffolkLITLab/ALKiln/issues/952).
80
113
 
81
114
  ## [5.13.0] - 2024-07-11