Fix shared scheduler workers and verify full TA browser workflow
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex
2026-11-21 01:10:16 +00:00
parent 34edd679ea
commit 54a2dd85fb
10 changed files with 84 additions and 10 deletions
+2
View File
@@ -19,6 +19,8 @@
\bottomrule \bottomrule
\endlastfoot \endlastfoot
\parbox[t]{2.7cm}{\raggedright November 20, 2026\\ 1.11.0\\ NK, CDX} & Complete remaining mandatory browser workflows and retain minimal deployment limits. & The user directed all server work through the existing SSH connection. Codex inspected official worker code after browser Customer search failed, corrected threaded worker settings, reloaded derived indexes without removing volumes, and verified ticket 71007 through separate TA and Customer browser sessions. Screenshots and sanitized evidence were saved; the authorized temporary local credential copy was removed. No firewall changes or manual PDF compilation were performed. \\
\parbox[t]{2.7cm}{\raggedright November 18, 2026\\ 1.11.0\\ NK, CDX} & Implement instruction Chapter 7 with minimal resource use and update the newest team manual source. & The user authorized SSH through \texttt{ssw590-codex}, selected the newest documentation branch rather than main, deferred its merge, upgraded the Droplet, requested lower service ceilings, approved synthetic accounts and issue 22, and later requested full ongoing documentation with actual screenshots. Codex deployed the official stack, corrected an initially excessive heap and a Puma worker-setting interpretation, staged initialization, added limits and monitoring, tested tickets/customer isolation/TA access and backup/recovery, and retained explicit evidence limits. A recovery collector was corrected to distinguish real scrape timestamps from query times. The user expressly prohibited PDF compilation until a later authorized Jenkins build. \\ \parbox[t]{2.7cm}{\raggedright November 18, 2026\\ 1.11.0\\ NK, CDX} & Implement instruction Chapter 7 with minimal resource use and update the newest team manual source. & The user authorized SSH through \texttt{ssw590-codex}, selected the newest documentation branch rather than main, deferred its merge, upgraded the Droplet, requested lower service ceilings, approved synthetic accounts and issue 22, and later requested full ongoing documentation with actual screenshots. Codex deployed the official stack, corrected an initially excessive heap and a Puma worker-setting interpretation, staged initialization, added limits and monitoring, tested tickets/customer isolation/TA access and backup/recovery, and retained explicit evidence limits. A recovery collector was corrected to distinguish real scrape timestamps from query times. The user expressly prohibited PDF compilation until a later authorized Jenkins build. \\
\parbox[t]{2.7cm}{\raggedright November 8, 2026\\ 1.10.1\\ GDL, NK, CDX} & Continue the handoff; verify and document the release and recovery evidence. & Codex checked the merged and later branch work separately, assisted with approved v1 and v2 releases, and recorded immutable digests, scan results, staging idempotence and human production approvals. It orchestrated the approved rollback and staging-only port mismatch, documented the overnight recovery delay, added the HTTPS probe, checked Grafana, and audited archived evidence. The team reviews the manual and evidence. \\ \parbox[t]{2.7cm}{\raggedright November 8, 2026\\ 1.10.1\\ GDL, NK, CDX} & Continue the handoff; verify and document the release and recovery evidence. & Codex checked the merged and later branch work separately, assisted with approved v1 and v2 releases, and recorded immutable digests, scan results, staging idempotence and human production approvals. It orchestrated the approved rollback and staging-only port mismatch, documented the overnight recovery delay, added the HTTPS probe, checked Grafana, and audited archived evidence. The team reviews the manual and evidence. \\
+2
View File
@@ -20,6 +20,8 @@
\bottomrule \bottomrule
\endlastfoot \endlastfoot
November 20, 2026 / 1.11.0 & NK, CDX & Corrected scheduler worker semantics to shared-process threads, retained the 384 MiB limit and 128 MiB Elasticsearch heap, repaired derived search indexes and completed real TA browser create/assign/internal-note/public-reply/close on 71007. Added Customer visibility screenshots. Used SSH for server commands; privileged host audit remains pending. Source only; no PDF build. & \ChapterRef{SupportTicketManagement} \\
November 18, 2026 / 1.11.0 & NK, CDX & Added the Support Ticket Management with Zammad chapter for instruction Chapter 7 / team Assignment 9. Recorded official revision, small per-service limits, upgraded-host observations, private HTTPS networking, synthetic accounts/tickets, least-privilege TA API tests, bidirectional issue 22 linkage, backup and isolated recovery evidence. Added actual screenshots and an explicit required-deliverable gap audit. Updated Hosts, password-store hints and AI log. Source-only draft; no PDF compilation authorized. & \ChapterRef{SupportTicketManagement}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\ November 18, 2026 / 1.11.0 & NK, CDX & Added the Support Ticket Management with Zammad chapter for instruction Chapter 7 / team Assignment 9. Recorded official revision, small per-service limits, upgraded-host observations, private HTTPS networking, synthetic accounts/tickets, least-privilege TA API tests, bidirectional issue 22 linkage, backup and isolated recovery evidence. Added actual screenshots and an explicit required-deliverable gap audit. Updated Hosts, password-store hints and AI log. Source-only draft; no PDF compilation authorized. & \ChapterRef{SupportTicketManagement}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
November 8, 2026 / 1.10.1 & GDL, NK, CDX & Completed the secure delivery evidence audit, expanded the architecture with actual hosts, volumes and private paths, and linked release records, scans and recovery output. Recorded the v1 and v2 promotions, human decisions, production rollback samples, staging port-mismatch failure and delayed recovery. Added production HTTPS monitoring and preserved its limitation: the probe started after rollback. Recorded the unverified historical scanner database version and stateful rollback limitations. & \ChapterRef{SecureDeliveryRollback}, \ChapterRef{Hosts} \\ November 8, 2026 / 1.10.1 & GDL, NK, CDX & Completed the secure delivery evidence audit, expanded the architecture with actual hosts, volumes and private paths, and linked release records, scans and recovery output. Recorded the v1 and v2 promotions, human decisions, production rollback samples, staging port-mismatch failure and delayed recovery. Added production HTTPS monitoring and preserved its limitation: the probe started after rollback. Recorded the unverified historical scanner database version and stateful rollback limitations. & \ChapterRef{SecureDeliveryRollback}, \ChapterRef{Hosts} \\
@@ -163,7 +163,7 @@ session cookies; security checks were not disabled.
\toprule Service & RAM cap & CPU cap & Additional setting\\\midrule\endhead \toprule Service & RAM cap & CPU cap & Additional setting\\\midrule\endhead
Elasticsearch & 384 MiB & 0.35 & Heap 128 MiB initial/max\\ Elasticsearch & 384 MiB & 0.35 & Heap 128 MiB initial/max\\
Rails & 384 MiB & 0.40 & Single Puma process; 1--3 threads\\ Rails & 384 MiB & 0.40 & Single Puma process; 1--3 threads\\
Scheduler & 384 MiB & 0.25 & Worker counts reduced to one\\ Scheduler & 384 MiB & 0.25 & Required services use shared-process threads; unused AI/incoming-mail workers disabled\\
Websocket & 192 MiB & 0.15 & Official command retained\\ Websocket & 192 MiB & 0.15 & Official command retained\\
Backup & 192 MiB & 0.15 & Startup backup enabled\\ Backup & 192 MiB & 0.15 & Startup backup enabled\\
PostgreSQL & 128 MiB & 0.25 & Existing initialized volume\\ PostgreSQL & 128 MiB & 0.25 & Existing initialized volume\\
@@ -183,6 +183,25 @@ If a required service fails, preserve logs and raise only the demonstrated
limiting setting. Do not silence failures or remove the required search or limiting setting. Do not silence failures or remove the required search or
backup services to claim success. backup services to claim success.
\paragraph{November 20 browser-test correction.}
Although the container remained running, a later actual browser ticket-create
test could not find the existing synthetic Customer. The user search index
contained only one record. Scheduler process inspection showed that the
general delayed-job and scheduled-job workers were absent; its cgroup counters
recorded three killed processes under the original 384 MiB ceiling.
An initial 512 MiB scheduler trial still lost the delayed-job worker and
recorded one killed process. Inspection of the matching upstream
\path{lib/background_services/service_config.rb} established that a worker
count of zero selects shared-process threading, whereas one forks a separate
Rails process. The earlier attempt to minimize workers by setting each to one
was therefore counterproductive. Required session-management, scheduled-job
and delayed-job services were corrected to zero-worker threaded mode, the
scheduler ceiling was restored to 384 MiB, and unused AI/incoming-mail workers
were disabled. The Elasticsearch heap remained 128 MiB.
This records a functional failure that API CRUD and container-running checks
had not detected; the completed browser test is the acceptance check for the
correction, not merely a successful container restart.
\section{4. Validation, initialization and startup operations} \section{4. Validation, initialization and startup operations}
Run commands in the deployment directory so the same private environment and Run commands in the deployment directory so the same private environment and
all scenarios are loaded: all scenarios are loaded:
@@ -535,6 +554,38 @@ protection against loss of the Droplet or its disk. Off-Droplet replication is
not claimed. not claimed.
\end{enumerate} \end{enumerate}
\subsection{November 20 browser acceptance and indexing repair}
Customer autocomplete initially failed because the derived User search index
contained only one record. The official model methods
\texttt{User.search\_index\_reload(worker: 0)} and
\texttt{Ticket.search\_index\_reload(worker: 0)}, followed by
\texttt{SearchIndexBackend.refresh}, completed successfully using the existing
image and scheduler limits. The scheduler was paused during this one-time
operation and restarted afterward. Database records and volumes were retained.
The User index then contained six records and Customer autocomplete found
the existing Demo Customer. The saved JSON records the operation and exit status.
Logged in as \texttt{ta.agent}, the browser created ticket 71007, selected
Demo Customer, assigned TA Agent, retained normal priority, submitted an
internal note and then submitted a customer-visible resolution reply with
state closed. A separate Demo Customer login displayed the public reply and
closed state, with internal article 13 absent. This supplements, rather than
relabels, the earlier API-only CRUD test on ticket 71006. No SMTP delivery
was attempted. The earlier open, assigned and closed example tickets remain.
\begin{figure}[htbp]
\centering\includegraphics[width=\textwidth]{hw9_images/ta-browser-closed-reply.png}
\caption{TA Agent browser workflow: saved internal note, public resolution,
assigned owner, normal priority and closed state on ticket 71007.}
\label{fig:taBrowserClosedReply}
\end{figure}
\begin{figure}[htbp]
\centering\includegraphics[width=\textwidth]{hw9_images/customer-browser-closed-reply.png}
\caption{Demo Customer sees ticket 71007's public resolution and closed
state; the internal TA note is excluded from the conversation.}
\label{fig:customerBrowserClosedReply}
\end{figure}
\section{11. Deliverable coverage, final rechecks and remaining gaps} \section{11. Deliverable coverage, final rechecks and remaining gaps}
\begin{longtable}{L{3.2cm}L{6.2cm}L{3.4cm}} \begin{longtable}{L{3.2cm}L{6.2cm}L{3.4cm}}
\caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\ \caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\
@@ -543,7 +594,7 @@ Deployment / continuity & Revision, images, manifest, architecture, final HTTPS
Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\ Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\ Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, current cloud rules/attachment, no global IPv6/AAAA & Privileged host-rule audit pending\\ HTTPS / exposure & Certificate, redirect, blocked ports, private networks, current cloud rules/attachment, no global IPv6/AAAA & Privileged host-rule audit pending\\
Accounts / TA & Agent-only TA/group access, API CRUD 71006, authenticated screenshots & Browser login/read verified; API CRUD distinguished\\ Accounts / TA & Agent-only TA/group access, API CRUD 71006, browser workflow 71007 & Browser create, assign, internal/public reply and close verified\\
Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\ Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\
Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\ Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\
Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\ Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\
@@ -552,9 +603,9 @@ Manual / source & This chapter, Hosts, password hints, history, AI log, sanitize
\end{longtable} \end{longtable}
Every pending item is a required evidence follow-up, not an optional extra or Every pending item is a required evidence follow-up, not an optional extra or
an assertion of completion. Before submission: finish the click-by-click TA an assertion of completion. Before submission: review the saved TA
browser create/assign/reply/close demonstration and web-portal note/reply browser evidence for ticket 71007 (create, assign, internal/public
submission evidence (API actions and portal visibility are already verified); reply and close are now exercised through the portal);
finish privileged host-rule and effective key-only SSH evidence; current cloud finish privileged host-rule and effective key-only SSH evidence; current cloud
rules and attachment screenshots are now included; rules and attachment screenshots are now included;
review the password handoff and updated Hosts chapter together with the team review the password handoff and updated Hosts chapter together with the team
Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+6 -4
View File
@@ -11,13 +11,15 @@ TZ=America/New_York
COMPOSE_FILE=docker-compose.yml:scenarios/add-external-network-to-nginx.yml:scenarios/apply-resource-limits.yml:local/minimal.yml COMPOSE_FILE=docker-compose.yml:scenarios/add-external-network-to-nginx.yml:scenarios/apply-resource-limits.yml:local/minimal.yml
ELASTICSEARCH_JAVA_OPTS=-Xms128m -Xmx128m ELASTICSEARCH_JAVA_OPTS=-Xms128m -Xmx128m
ZAMMAD_WEB_CONCURRENCY=0 ZAMMAD_WEB_CONCURRENCY=0
ZAMMAD_PROCESS_SESSIONS_JOBS_WORKERS=1 ZAMMAD_PROCESS_SESSIONS_JOBS_WORKERS=0
ZAMMAD_MANAGE_SESSIONS_JOBS_WORKERS=1 ZAMMAD_MANAGE_SESSIONS_JOBS_WORKERS=0
ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS=1 ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS=0
ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS=1 ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS=0
ZAMMAD_PROCESS_DELAYED_JOBS_WORKER_THREADS=1 ZAMMAD_PROCESS_DELAYED_JOBS_WORKER_THREADS=1
ZAMMAD_PROCESS_DELAYED_AI_JOBS_WORKERS=1 ZAMMAD_PROCESS_DELAYED_AI_JOBS_WORKERS=1
ZAMMAD_PROCESS_DELAYED_COMMUNICATION_INBOUND_JOBS_WORKERS=1 ZAMMAD_PROCESS_DELAYED_COMMUNICATION_INBOUND_JOBS_WORKERS=1
ZAMMAD_PROCESS_DELAYED_AI_JOBS_DISABLE=true
ZAMMAD_PROCESS_DELAYED_COMMUNICATION_INBOUND_JOBS_DISABLE=true
ZAMMAD_ELASTICSEARCH_RESOURCES_LIMITS_MEMORY=384M ZAMMAD_ELASTICSEARCH_RESOURCES_LIMITS_MEMORY=384M
ZAMMAD_ELASTICSEARCH_RESOURCES_LIMITS_CPUS=.35 ZAMMAD_ELASTICSEARCH_RESOURCES_LIMITS_CPUS=.35
ZAMMAD_RAILSSERVER_RESOURCES_LIMITS_MEMORY=384M ZAMMAD_RAILSSERVER_RESOURCES_LIMITS_MEMORY=384M
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"captured_at": "2026-11-18T20:35:42.836404+00:00", "captured_at": "2026-11-21T01:06:52.602819+00:00",
"upstream_commit": "cb5ab9c805310515f4a55e70e94f9b4a28fa24a5", "upstream_commit": "cb5ab9c805310515f4a55e70e94f9b4a28fa24a5",
"documentation_baseline": "6e2873cc6bb476dab5ae680efb7ff6b997579081", "documentation_baseline": "6e2873cc6bb476dab5ae680efb7ff6b997579081",
"containers": [ "containers": [
@@ -0,0 +1,9 @@
{
"date": "2026-11-20",
"trigger": "Real browser ticket-create Customer autocomplete could not find existing synthetic users; user index contained only one record.",
"original_state": {"scheduler_limit_mib": 384, "forked_workers_per_required_service": 1, "observed_cgroup_oom_kill": 3, "missing_services": ["ProcessDelayedJobs", "ProcessScheduledJobs"]},
"trial": {"scheduler_limit_mib": 512, "observed_cgroup_oom_kill": 1, "missing_service": "ProcessDelayedJobs"},
"source_inspected": "Official pinned image: lib/background_services/service_config.rb, ServiceConfig.start_as selects fork when workers.positive? and thread otherwise.",
"correction": {"scheduler_limit_mib": 384, "ZAMMAD_PROCESS_SESSIONS_JOBS_WORKERS": 0, "ZAMMAD_MANAGE_SESSIONS_JOBS_WORKERS": 0, "ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS": 0, "ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS": 0, "unused_AI_and_incoming_mail_workers": "disabled", "elasticsearch_heap_mib": 128},
"acceptance": {"user_index_count_after_reload":6,"browser_ticket":"71007","ta_actions_verified":["create with existing Demo Customer","assign TA Agent","normal priority","submit internal note","submit public resolution","close"],"customer_view":"Public resolution and closed state visible; internal article 13 excluded","screenshots":["ta-browser-internal-note.png","ta-browser-closed-reply.png","customer-browser-closed-reply.png"],"scope":"Immediate functional acceptance; long-term scheduler stability not established by this short test"}
}
@@ -0,0 +1,8 @@
{
"started": "2026-11-21T01:00:35.810247+00:00",
"operation": "Reload derived User and Ticket search indexes with official model methods; retain database and volumes; reuse existing image and scheduler limits",
"exit_code": 0,
"stdout": "I, [2026-11-20T20:01:26.758659#7-3560] INFO -- : Using memcached as Rails cache store.\nI, [2026-11-20T20:01:26.764815#7-3560] INFO -- : Using the Redis back end for Zammad's web socket session store.\nW, [2026-11-20T20:01:32.307922#7-3560] WARN -- : Dalli 5.0 only supports the meta protocol. The :protocol option has been removed.\nI, [2026-11-20T20:01:40.866571#7-3560] INFO -- : ActionCable is configured to accept requests from (?-mix:https?:\\/\\/localhost:\\d+), https://support.myfileagent.tech.\nW, [2026-11-20T20:02:08.259307#7-3560] WARN -- : Generating image variants require the image_processing gem. Please add `gem \"image_processing\", \"~> 1.2\"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.\n\n 7/7\n 6/6User and Ticket search reload completed\n",
"stderr": " Container dos-support-zammad-scheduler-run-f28ffd16c5ed Creating \n Container dos-support-zammad-scheduler-run-f28ffd16c5ed Created \n",
"finished": "2026-11-21T01:02:51.591602+00:00"
}