Commit bd9bc55
authored
Migrate to Azure Functions Elastic Premium plan (#2893)
This pull request primarily removes the `parallel-workers` package from
the repository and cleans up related code and configuration.
Additionally, it refines error reporting in Azure credential management
and streamlines hash generation logic by removing unused methods. Below
are the most important changes grouped by theme:
**Parallel-workers package removal:**
* Deleted the entire `packages/parallel-workers` directory, including
all source files, configuration files, and tests.
[[1]](diffhunk://#diff-25989936846266e0f9905c0127502489515f0b137a328dfed9e31a561ccd819aL1-L9)
[[2]](diffhunk://#diff-a8b0eb3771036e137c69d2f3b9750b077d5728f50fce4ff02c6958ec681c2536L1-L46)
[[3]](diffhunk://#diff-4d638471a511daeea3e736674bb59d158210b45bcd822c5b2db42d89bc402d04L1-L8)
[[4]](diffhunk://#diff-7a556c7cebb73de26cd321fc591f315d0e943369427696919f21e6f8364a09bdL1-L4)
[[5]](diffhunk://#diff-1f31bb2f012812594874b44d5714037998a44d9550b7f3a268b68823d6331d22L1-L83)
[[6]](diffhunk://#diff-1c4cbe11be8ac467da7364d7c95a23bd239968517396f72b30c896eee9319bd6L1-L55)
[[7]](diffhunk://#diff-d0a67630bdf2a3aeed9ebecef997065069baf7358d643bf593c93223380947a9L1-L6)
* Removed references to `parallel-workers` from workspace configuration
files, build scripts, and package lists
(`.vscode/workspace.code-workspace`, `package.json`, and related
test/build configs).
[[1]](diffhunk://#diff-add87b7a14c2f7b31686c392cab5f20ed6f1245e2bb675aa78eb845d1a60102bL51-L54)
[[2]](diffhunk://#diff-8314470685c1f819d496e2aac5f58b3230753af65a0c87b3a4456ccab50b6a13L21)
[[3]](diffhunk://#diff-54e9026b0beaa1299fa79d49a2fade8542db7613c4de23abf2dba289eefba6e2L68-L72)
**Hash generator simplification:**
* Removed unused hash generation methods
(`getWebsiteScanResultDocumentId`, `getWebsiteScanResultPartDocumentId`,
and related test cases) from
`packages/common/src/ciphers/hash-generator.ts` and
`packages/crawler/src/common/hash-generator.ts`.
[[1]](diffhunk://#diff-c2186d9bc818cf91de90837f18062015a2f4fe0517329f58e3c205249d9efd42L20-L34)
[[2]](diffhunk://#diff-0e904fddbcaeb6ae5e54fe80fea0ecb7a60b7bdde81ec262914ece863e06ecc3L45-L65)
[[3]](diffhunk://#diff-5de80d0364ae76197deaddbe3f3bf6f1d6be292cdf5b96cbacb5c288dc8fda71L26-L51)
[[4]](diffhunk://#diff-5ad86124b1e8180a5c1aaa5523220fda4ee6ccefd80345f3f98a19b352803492L15-L38)
* Cleaned up imports in `packages/crawler/src/common/hash-generator.ts`
by removing unused dependencies.
**Azure credential error reporting:**
* Improved error messages in `IdentityCredentialCache` to provide more
context, including client ID, scope, and stack trace. Updated
corresponding test to match the new error message.
[[1]](diffhunk://#diff-a52017d64031aaf6e5a3c418ac0fffbc4ba982de6c03cf1d734ee0fb69cabd38L44-R48)
[[2]](diffhunk://#diff-7a27d7be70cbac5e5d29d16077b21535e3b68a2e76918745ab6452bc7226134bL122-R122)
**OpenAPI contract adjustment:**
* Updated `packages/api-contracts/openapi.json` to remove the `scanType`
property from one schema and restrict its enum to `"accessibility"` in
another, reflecting a change in supported scan types.
[[1]](diffhunk://#diff-d0825d6cd1593677824dda2a6df69779218ebfe33c83a4aa53560c2542743efbL223-L228)
[[2]](diffhunk://#diff-d0825d6cd1593677824dda2a6df69779218ebfe33c83a4aa53560c2542743efbR540-R545)
**Build and ignore file updates:**
* Broadened the ignore pattern for `.txt` files in `.prettierignore` and
adjusted the `clean` script in `package.json` to remove fewer
directories.
[[1]](diffhunk://#diff-b640b344ee7f3f03d2a443795a5d0708ef50e2e6e34214109ab2aad13ad6ba98L30-R30)
[[2]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L11-R11)1 parent 8814fa7 commit bd9bc55
File tree
69 files changed
+359
-2151
lines changed- .vscode
- packages
- api-contracts
- azure-services/src/credentials
- common/src/ciphers
- crawler/src
- build-utilities
- common
- health-client
- parallel-workers
- src
- privacy-scan-job-manager
- privacy-scan-runner
- report-generator-job-manager
- report-generator-runner
- .vscode
- resource-deployment
- scripts
- docker-scanner-image
- pool-startup
- templates
- service-library
- src
- data-providers
- storage-documents/src
- web-api-scan-job-manager
- web-api-scan-request-sender
- web-api-scan-runner
- .vscode
- web-api-send-notification-job-manager
- web-api-send-notification-runner
- web-api
- src
- controllers
- converters
- web-workers
- health-monitor-orchestration-func
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
69 files changed
+359
-2151
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 223 | | |
230 | 224 | | |
231 | 225 | | |
| |||
543 | 537 | | |
544 | 538 | | |
545 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 20 | | |
36 | 21 | | |
37 | 22 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 26 | | |
53 | 27 | | |
54 | 28 | | |
| |||
0 commit comments