mattermost/server/channels/jobs
Jesse Hallam 71ca373de7
Some checks are pending
API / build (push) Waiting to run
Server CI / Compute Go Version (push) Waiting to run
Server CI / Check mocks (push) Blocked by required conditions
Server CI / Check go mod tidy (push) Blocked by required conditions
Server CI / check-style (push) Blocked by required conditions
Server CI / Check serialization methods for hot structs (push) Blocked by required conditions
Server CI / Vet API (push) Blocked by required conditions
Server CI / Check migration files (push) Blocked by required conditions
Server CI / Generate email templates (push) Blocked by required conditions
Server CI / Check store layers (push) Blocked by required conditions
Server CI / Check mmctl docs (push) Blocked by required conditions
Server CI / Postgres with binary parameters (push) Blocked by required conditions
Server CI / Postgres (shard 0) (push) Blocked by required conditions
Server CI / Postgres (shard 1) (push) Blocked by required conditions
Server CI / Postgres (shard 2) (push) Blocked by required conditions
Server CI / Postgres (shard 3) (push) Blocked by required conditions
Server CI / Merge Postgres Test Results (push) Blocked by required conditions
Server CI / Postgres FIPS (shard 0) (push) Blocked by required conditions
Server CI / Postgres FIPS (shard 1) (push) Blocked by required conditions
Server CI / Postgres FIPS (shard 2) (push) Blocked by required conditions
Server CI / Postgres FIPS (shard 3) (push) Blocked by required conditions
Server CI / Merge Postgres FIPS Test Results (push) Blocked by required conditions
Server CI / Generate Test Coverage (push) Blocked by required conditions
Server CI / Run mmctl tests (push) Blocked by required conditions
Server CI / Run mmctl tests (FIPS) (push) Blocked by required conditions
Server CI / Build mattermost server app (push) Blocked by required conditions
Tools CI / check-style (mattermost-govet) (push) Waiting to run
Tools CI / Test (mattermost-govet) (push) Waiting to run
Web App CI / check-lint (push) Waiting to run
Web App CI / check-i18n (push) Blocked by required conditions
Web App CI / check-external-links (push) Blocked by required conditions
Web App CI / check-types (push) Blocked by required conditions
Web App CI / test (platform) (push) Blocked by required conditions
Web App CI / test (mattermost-redux) (push) Blocked by required conditions
Web App CI / test (channels shard 1/4) (push) Blocked by required conditions
Web App CI / test (channels shard 2/4) (push) Blocked by required conditions
Web App CI / test (channels shard 3/4) (push) Blocked by required conditions
Web App CI / test (channels shard 4/4) (push) Blocked by required conditions
Web App CI / upload-coverage (push) Blocked by required conditions
Web App CI / build (push) Blocked by required conditions
Generate instead of hard-coding test passwords, enforce new minimum for FIPS, shard CI, fix FIPS builds (#35905)
* Replace hardcoded test passwords with model.NewTestPassword()

Add model.NewTestPassword() utility that generates 14+ character
passwords meeting complexity requirements for FIPS compliance. Replace
all short hardcoded test passwords across the test suite with calls to
this function.

* Enforce FIPS compliance for passwords and HMAC keys

FIPS OpenSSL requires HMAC keys to be at least 14 bytes. PBKDF2 uses
the password as the HMAC key internally, so short passwords cause
PKCS5_PBKDF2_HMAC to fail.

- Add FIPSEnabled and PasswordFIPSMinimumLength build-tag constants
- Raise the password minimum length floor to 14 when compiled with
  requirefips, applied in SetDefaults only when unset and validated
  independently in IsValid
- Return ErrMismatchedHashAndPassword for too-short passwords in
  PBKDF2 CompareHashAndPassword rather than a cryptic OpenSSL error
- Validate atmos/camo HMAC key length under FIPS and lengthen test
  keys accordingly
- Adjust password validation tests to use PasswordFIPSMinimumLength
  so they work under both FIPS and non-FIPS builds

* CI: shard FIPS test suite and extract merge template

Run FIPS tests on PRs that touch go.mod or have 'fips' in the branch
name. Shard FIPS tests across 4 runners matching the normal Postgres
suite. Extract the test result merge logic into a reusable workflow
template to deduplicate the normal and FIPS merge jobs.

* more

* Fix email test helper to respect FIPS minimum password length

* Fix test helpers to respect FIPS minimum password length

* Remove unnecessary "disable strict password requirements" blocks from test helpers

* Fix CodeRabbit review comments on PR #35905

- Add server-test-merge-template.yml to server-ci.yml pull_request.paths
  so changes to the reusable merge workflow trigger Server CI validation
- Skip merge-postgres-fips-test-results job when test-postgres-normal-fips
  was skipped, preventing failures due to missing artifacts
- Set guest.Password on returned guest in CreateGuestAndClient helper
  to keep contract consistent with CreateUserWithClient
- Use shared LowercaseLetters/UppercaseLetters/NUMBERS/PasswordFIPSMinimumLength
  constants in NewTestPassword() to avoid drift if FIPS floor changes

https://claude.ai/code/session_01HmE9QkZM3cAoXn2J7XrK2f

* Rename FIPS test artifact to match server-ci-report pattern

The server-ci-report job searches for artifacts matching "*-test-logs",
so rename from postgres-server-test-logs-fips to
postgres-server-fips-test-logs to be included in the report.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-08 16:49:43 -03:00
..
active_users Pass a logger instead of embedding on job (#24650) 2023-10-09 11:04:55 -03:00
cleanup_desktop_tokens [MM-55014][MM-55015] Add last login timestamp for users, add materialized view and refresh job to keep track of post stats for Postgres (#25152) 2023-11-14 11:26:27 -05:00
delete_dms_preferences_migration [MM-56904] Reduce the number of api requests made to fetch user information for GMs on page load (#27149) 2024-07-25 15:57:23 -04:00
delete_empty_drafts_migration [MM-53428] Delete empty drafts on upsert (#24046) 2023-10-12 10:52:10 -04:00
delete_expired_posts Changes for BoR post soft-deletion (#35100) 2026-02-12 05:25:49 -05:00
delete_orphan_drafts_migration [GH-25484] Fix draft removal on post deletion (#25715) 2024-01-29 09:55:34 -05:00
expirynotify Pass a logger instead of embedding on job (#24650) 2023-10-09 11:04:55 -03:00
export_delete [MM-60888] Fix: Retention can cause unrelated files to be deleted (#29897) 2025-01-22 15:15:33 -05:00
export_process Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
export_users_to_csv Add single-channel guests filter and channel count column to System Console Users (#35517) 2026-03-12 12:50:53 -04:00
extract_content [MM-55052] Improve file extraction logging (#25036) 2023-10-23 20:25:40 +02:00
hosted_purchase_screening [MM-28761] Fix errcheck linter issues in hosted_purchase_screening worker (#30624) 2025-04-29 08:57:52 +02:00
import_delete Move HTTP service to public for plugin use (#27284) 2024-06-05 09:58:04 -07:00
import_process Add --workers flag to mmctl import process to control concurrency (#35582) 2026-03-13 21:30:32 -04:00
last_accessible_file Pass a logger instead of embedding on job (#24650) 2023-10-09 11:04:55 -03:00
last_accessible_post Message History Limits in Entry Edition (#33831) 2025-09-10 22:52:19 -04:00
migrations upgrade golangci-lint (#35845) 2026-03-30 13:41:32 -03:00
mobile_session_metadata Add metrics for mobile versions snapshots (#28191) 2024-09-24 12:02:19 +02:00
notify_admin Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
plugins [MM-63314] Fix ClaimJob in HA environments (#30383) 2025-03-14 10:24:26 -04:00
post_persistent_notifications Premium SKU (#30396) 2025-04-03 13:07:54 +05:30
product_notices Pass a logger instead of embedding on job (#24650) 2023-10-09 11:04:55 -03:00
recap Add structured JSON output for recap summarization (#35496) 2026-03-05 19:06:05 +00:00
refresh_materialized_views [AI assisted]: Improve system console statistics performance (#29899) 2025-02-04 21:54:01 +05:30
resend_invitation_email MM-64486: Remove telemetry (#33606) 2025-09-04 18:46:18 +00:00
s3_path_migration [MM-63314] Fix ClaimJob in HA environments (#30383) 2025-03-14 10:24:26 -04:00
base_schedulers.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
base_workers.go Lower Job complete log message to debug (#33828) 2025-09-10 15:40:30 +02:00
base_workers_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
batch_migration_worker.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
batch_migration_worker_test.go [MM-65837], [MM-65824] - Update Dependencies (#33972) 2025-10-01 20:19:22 +00:00
batch_report_worker.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
batch_report_worker_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
batch_worker.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
batch_worker_test.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
export_delete_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
helper_test.go Generate instead of hard-coding test passwords, enforce new minimum for FIPS, shard CI, fix FIPS builds (#35905) 2026-04-08 16:49:43 -03:00
jobs.go [MM-63561] - Job server: Fix read after write (#32527) 2025-11-11 13:21:03 -05:00
jobs_test.go [MM-63561] - Job server: Fix read after write (#32527) 2025-11-11 13:21:03 -05:00
jobs_watcher.go [MM-54132] Use annotated logger for log messages from jobs (#24275) 2023-09-07 08:50:22 +02:00
main_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
schedulers.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
schedulers_test.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
server.go Move HTTP service to public for plugin use (#27284) 2024-06-05 09:58:04 -07:00
server_test.go [MM-62408] Server Code Coverage with Fully Parallel Tests (#30078) 2025-05-30 13:58:26 +02:00
workers.go Move HTTP service to public for plugin use (#27284) 2024-06-05 09:58:04 -07:00