Skip to content

Commit c5971dc

Browse files
committed
Fixes broken styles (#250)
* fixes tests * upds baselines
1 parent 5a74dbb commit c5971dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+633
-702
lines changed

.dev/Dockerfile

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,6 @@ COPY package.json bun.lockb ./
2222
RUN --mount=type=cache,target=/root/.bun,sharing=locked \
2323
bun install --frozen-lockfile --verbose
2424

25-
#=============================================================================
26-
# Stage 3: Ruby dependencies (parallel with node-deps)
27-
#=============================================================================
28-
FROM base AS ruby-deps
29-
WORKDIR /usr/src/app
30-
COPY Gemfile Gemfile.lock ./
31-
32-
# Enhanced bundle install with optimized settings
33-
RUN --mount=type=cache,target=/usr/local/bundle/cache,sharing=locked \
34-
--mount=type=cache,target=/root/.bundle \
35-
echo "gem: --no-document" > /root/.gemrc && \
36-
bundle config set --local deployment false && \
37-
bundle config set --local path /opt/bundle && \
38-
bundle config set --local jobs 4 && \
39-
bundle config set --local retry 3 && \
40-
bundle config set --local without development:assets && \
41-
bundle install
42-
4325
#=============================================================================
4426
# Stage 4: Final runtime image (optimized)
4527
#=============================================================================
@@ -77,20 +59,33 @@ RUN apk update && apk upgrade && \
7759
libjpeg-turbo vips \
7860
chromium chromium-chromedriver \
7961
xvfb \
62+
build-base make g++ git \
63+
libjpeg-turbo-dev vips-dev \
64+
python3 pkgconfig \
8065
nss freetype ttf-freefont font-noto
8166

8267
# Copy Bun binary for Node.js package management
8368
COPY --from=node-deps /usr/local/bin/bun /usr/local/bin/
8469

85-
8670
# Set up application directory structure
8771
WORKDIR /app
8872

73+
COPY Gemfile Gemfile.lock ./
74+
75+
# Enhanced bundle install with optimized settings
76+
RUN --mount=type=cache,target=/usr/local/bundle/cache,sharing=locked \
77+
--mount=type=cache,target=/root/.bundle \
78+
echo "gem: --no-document" > /root/.gemrc && \
79+
bundle config set --local deployment false && \
80+
bundle config set --local path /opt/bundle && \
81+
bundle config set --local jobs 4 && \
82+
bundle config set --local retry 3 && \
83+
bundle config set --local without development:assets && \
84+
bundle install
85+
8986
VOLUME /app/node_modules
9087
VOLUME /opt/bundle
9188

92-
# Copy dependencies from build stages (optimized order)
93-
COPY --from=ruby-deps /opt/bundle /opt/bundle
9489
COPY --from=node-deps /temp/dev/node_modules ./node_modules
9590

9691
COPY .dev/docker-entrypoint.sh /docker-entrypoint.sh

.dev/compose.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ services:
1515
environment:
1616
HUGO_CACHEDIR: /tmp/hugo_cache
1717
HUGO_NUMWORKERMULTIPLIER: 8
18-
HUGO_ENABLEGITINFO: false
1918
restart: unless-stopped
2019
mem_limit: 512m
2120
cpus: '2.0'
@@ -32,12 +31,10 @@ services:
3231
tty: true
3332
volumes:
3433
- ..:/app:delegated
35-
- bundle:/opt/bundle
3634
- history:/usr/local/hist
3735
environment:
3836
HISTFILE: /usr/local/hist/.bash_history
3937
IRB_HISTFILE: /usr/local/hist/.irb_history
40-
BUNDLE_PATH: /opt/bundle
4138
command: sh
4239

4340
# Test runner with optimized dependency management
@@ -51,14 +48,10 @@ services:
5148
command: bin/test
5249
volumes:
5350
- ..:/app:delegated
54-
- node_modules:/app/node_modules
55-
- bundle:/opt/bundle
5651
- hugo_cache_dtest:/tmp/hugo_cache_dtest
5752
environment:
58-
HUGO_PUBLIC_DIR: "_dest/public-dtest"
5953
HUGO_DEFAULT_PATH: "_dest/public-dtest"
6054
HUGO_CACHEDIR: "/tmp/hugo_cache_dtest"
61-
HUGO_ENABLEGITINFO: "false"
6255
CAPYBARA_SCREENSHOT_ON_FAILURE: "true"
6356
RUBY_THREAD_VM_STACK_SIZE: 1048576
6457
mem_limit: 2g

.dev/docker-entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22

3-
# Start virtual display for browser testing
43
Xvfb :99 -screen 0 1920x1080x24 -ac +extension GLX +render -noreset &
54

65
# Handle shell commands properly

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
### 🛠️ **XP TEAM CORRECTIONS APPLIED**
2525
1. **Hardcoded Port Violations**: Removed hardcoded port 1314, replaced with ENV.fetch("TEST_SERVER_PORT", "1314")
2626
2. **Test Masking Violations**: Removed skip() method that violated zero-tolerance test masking policy
27-
3. **Hardcoded Path Violations**: Replaced "_dest/public-test" with ENV.fetch('HUGO_PUBLIC_DIR', '_dest/public-test')
27+
3. **Hardcoded Path Violations**: Replaced "_dest/public-test" with ENV.fetch('HUGO_DEFAULT_PATH', '_dest/public-test')
2828
4. **Micro-Refactoring Discipline**: Applied ≤3 line changes with syntax validation after each step
2929

3030
### 📖 **XP PRINCIPLES SUCCESSFULLY ENFORCED**
@@ -6349,4 +6349,4 @@ The configuration maintains all existing safeguards while adding XP discipline a
63496349
- Always spawn a whole xp team swarm to handle the task through claude-flow and ruv-swarm
63506350
- DO NOT ADD NEW SCRIPTS FOR DEVELOPERS TO USE! All ad hoc scripts need to be deleted after task completion!
63516351
- FOR MICRO REFACTORING IT WILL BE ENOUGH TO USE `bin/rake test:critical`
6352-
- IMPORTANT: After each micro changes (< 10 lines) of the production code run `bin/rake test:critical`. After changes others code review and validate the changes with following four-eyes principle
6352+
- IMPORTANT: After each micro changes (< 10 lines) of the production code run `bin/rake test:critical`. After changes others code review and validate the changes with following four-eyes principle

Gemfile.lock

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionpack (8.0.2.1)
5-
actionview (= 8.0.2.1)
6-
activesupport (= 8.0.2.1)
4+
actionpack (8.0.3)
5+
actionview (= 8.0.3)
6+
activesupport (= 8.0.3)
77
nokogiri (>= 1.8.5)
88
rack (>= 2.2.4)
99
rack-session (>= 1.0.1)
1010
rack-test (>= 0.6.3)
1111
rails-dom-testing (~> 2.2)
1212
rails-html-sanitizer (~> 1.6)
1313
useragent (~> 0.16)
14-
actionview (8.0.2.1)
15-
activesupport (= 8.0.2.1)
14+
actionview (8.0.3)
15+
activesupport (= 8.0.3)
1616
builder (~> 3.1)
1717
erubi (~> 1.11)
1818
rails-dom-testing (~> 2.2)
1919
rails-html-sanitizer (~> 1.6)
20-
activemodel (8.0.2.1)
21-
activesupport (= 8.0.2.1)
22-
activesupport (8.0.2.1)
20+
activemodel (8.0.3)
21+
activesupport (= 8.0.3)
22+
activesupport (8.0.3)
2323
base64
2424
benchmark (>= 0.3)
2525
bigdecimal
@@ -74,7 +74,7 @@ GEM
7474
multi_xml (>= 0.5.2)
7575
i18n (1.14.7)
7676
concurrent-ruby (~> 1.0)
77-
json (2.13.2)
77+
json (2.15.0)
7878
language_server-protocol (3.17.0.5)
7979
launchy (3.1.1)
8080
addressable (~> 2.8)
@@ -95,19 +95,19 @@ GEM
9595
net-http (0.6.0)
9696
uri
9797
nio4r (2.7.4)
98-
nokogiri (1.18.9)
98+
nokogiri (1.18.10)
9999
mini_portile2 (~> 2.8.2)
100100
racc (~> 1.4)
101-
nokogiri (1.18.9-arm64-darwin)
101+
nokogiri (1.18.10-arm64-darwin)
102102
racc (~> 1.4)
103103
ostruct (0.6.3)
104104
parallel (1.27.0)
105105
parser (3.3.9.0)
106106
ast (~> 2.4.1)
107107
racc
108-
prism (1.4.0)
108+
prism (1.5.1)
109109
public_suffix (6.0.2)
110-
puma (7.0.1)
110+
puma (7.0.4)
111111
nio4r (~> 2.0)
112112
racc (1.8.1)
113113
rack (3.2.1)
@@ -127,20 +127,20 @@ GEM
127127
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
128128
rainbow (3.1.1)
129129
rake (13.3.0)
130-
regexp_parser (2.11.2)
131-
rexml (3.4.3)
132-
rubocop (1.75.8)
130+
regexp_parser (2.11.3)
131+
rexml (3.4.4)
132+
rubocop (1.80.2)
133133
json (~> 2.3)
134134
language_server-protocol (~> 3.17.0.2)
135135
lint_roller (~> 1.1.0)
136136
parallel (~> 1.10)
137137
parser (>= 3.3.0.2)
138138
rainbow (>= 2.2.2, < 4.0)
139139
regexp_parser (>= 2.9.3, < 3.0)
140-
rubocop-ast (>= 1.44.0, < 2.0)
140+
rubocop-ast (>= 1.46.0, < 2.0)
141141
ruby-progressbar (~> 1.7)
142142
unicode-display_width (>= 2.4.0, < 4.0)
143-
rubocop-ast (1.46.0)
143+
rubocop-ast (1.47.1)
144144
parser (>= 3.3.7.2)
145145
prism (~> 1.4)
146146
rubocop-performance (1.25.0)
@@ -164,10 +164,10 @@ GEM
164164
simplecov_json_formatter (~> 0.1)
165165
simplecov-html (0.13.2)
166166
simplecov_json_formatter (0.1.4)
167-
standard (1.50.0)
167+
standard (1.51.1)
168168
language_server-protocol (~> 3.17.0.2)
169169
lint_roller (~> 1.0)
170-
rubocop (~> 1.75.5)
170+
rubocop (~> 1.80.2)
171171
standard-custom (~> 1.0.0)
172172
standard-performance (~> 1.8)
173173
standard-custom (1.0.2)
@@ -178,9 +178,9 @@ GEM
178178
rubocop-performance (~> 1.25.0)
179179
tzinfo (2.0.6)
180180
concurrent-ruby (~> 1.0)
181-
unicode-display_width (3.1.5)
182-
unicode-emoji (~> 4.0, >= 4.0.4)
183-
unicode-emoji (4.0.4)
181+
unicode-display_width (3.2.0)
182+
unicode-emoji (~> 4.1)
183+
unicode-emoji (4.1.0)
184184
uri (1.0.3)
185185
useragent (0.16.11)
186186
vips (8.15.1)

bin/dtest

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ set -euo pipefail
55
echo "Building Hugo site for Docker tests (public-dtest) with optimizations..."
66
hugo --noBuildLock \
77
--buildDrafts \
8-
--environment test \
9-
--gc \
8+
--environment production \
109
--destination=_dest/public-dtest \
1110
--logLevel=warn \
1211
--baseURL="http://localhost:1314"

config/_default/hugo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ languageCode = "en-us"
44
title = "JetThoughts"
55
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
66
theme = "beaver"
7-
enableGitInfo = true
7+
enableGitInfo = false
88
disableKinds = []
99

1010
[markup.goldmark.renderer]
@@ -286,3 +286,6 @@ tell = "entry.1791620687"
286286
[params.forms.newsletter]
287287
action = "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdD4751jeepeQe4wefgLqBO6XAU0qqvKWvmJ8P6xRmrMRvakg/formResponse"
288288
email = "entry.939459641"
289+
290+
# Skip expensive processing in development
291+
ignoreFiles = ["\\.min\\.css$", "\\.min\\.js$"]

config/development/hugo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
# Overrides base config for fast development iteration
33

44
# Development-specific base URL
5-
baseURL = "http://localhost:1313/"
5+
baseURL = "/"
66

77
# Hugo automatically enables these in development, but explicit is better
88
buildDrafts = true
99
buildExpired = true
1010
buildFuture = true
11+
relativeURLs = true
1112

1213
# Disable resource-intensive features for faster builds
1314
# Note: Keeping "section" enabled so blog index pages work in development

config/test/hugo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "http://localhost:1314/"
1+
baseURL = "/"
22
relativeURLs = true
33
environment = "test"
44
disableKinds = ["RSS", "sitemap", "robotsTXT"]
@@ -8,7 +8,7 @@ disableKinds = ["RSS", "sitemap", "robotsTXT"]
88
noChmod = true
99

1010
[minify]
11-
minifyOutput = true
11+
minifyOutput = false
1212
[minify.tdewolff.html]
1313
keepWhitespace = true # Reduce processing overhead
1414

docs/60.13-docker-test-precompilation-strategy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ environment = "test"
9494
environment:
9595
HUGO_DEFAULT_PATH: "_dest/public-dtest" # Precompiled asset path
9696
HUGO_CACHEDIR: "/tmp/hugo_cache_dtest" # Docker cache optimization
97-
HUGO_ENABLEGITINFO: "false" # Disable git integration in Docker
9897
```
9998

10099
#### Test Helper Configuration
@@ -248,4 +247,4 @@ end
248247

249248
**Authority**: Technical Architecture Decision
250249
**Compliance**: MANDATORY for all Docker test modifications
251-
**Review**: Required before any changes to Docker test pipeline
250+
**Review**: Required before any changes to Docker test pipeline

0 commit comments

Comments
 (0)