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 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
---
title: Release Process
sidebar_position: 6
---

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

# Release Process

Understand Apache Superset's release process, versioning strategy, and how to participate.

## Release Cadence

### Schedule

- **Major releases (X.0.0)**: Annually (approximately)
- **Minor releases (X.Y.0)**: Quarterly
- **Patch releases (X.Y.Z)**: As needed for critical fixes

### Version Numbering

Superset follows [Semantic Versioning](https://semver.org/):

```
MAJOR.MINOR.PATCH
  ↓      ↓     ↓
  β”‚      β”‚     └── Bug fixes, security patches
  β”‚      └────── New features, backwards compatible
  └──────────── Breaking changes
```

### Examples

- `3.0.0`: Major release with breaking changes
- `3.1.0`: Minor release with new features
- `3.1.1`: Patch release with bug fixes

## Release Types

### Major Releases (X.0.0)

#### Includes

- Breaking API changes
- Deprecated feature removals
- Major architectural changes
- Database migration requirements

#### Process

- 2-3 month preparation period
- Multiple release candidates (RC)
- Extensive testing period
- Migration guides required

### Minor Releases (X.Y.0)

#### Includes

- New features
- Performance improvements
- Non-breaking API additions
- Minor UI/UX updates

#### Process

- 1 month preparation
- 1-2 release candidates
- Standard testing period

### Patch Releases (X.Y.Z)

#### Includes

- Bug fixes
- Security patches
- Documentation fixes
- Dependency updates (security)

#### Process

- Fast track for critical issues
- May skip RC for urgent security fixes
- Minimal testing requirements

## Release Process (For Release Managers)

### 1. Pre-Release Preparation

#### Feature Freeze

```bash
# Create release branch
git checkout -b release-X.Y
git push upstream release-X.Y

# Update version
# Edit setup.py and package.json
VERSION = "X.Y.0rc1"
```

#### Update Documentation

- CHANGELOG.md
- UPDATING.md (for breaking changes)
- Documentation version

#### Release Notes Template

```markdown
# Apache Superset X.Y.0

## πŸŽ‰ Highlights

- Major feature 1
- Major feature 2

## πŸš€ New Features

- Feature 1 (#PR)
- Feature 2 (#PR)

## πŸ› Bug Fixes

- Fix 1 (#PR)
- Fix 2 (#PR)

## ⚠️ Breaking Changes

- Breaking change 1
- Migration required for X

## πŸ“ Documentation

- Doc update 1 (#PR)

## πŸ™ Thank You

Thanks to all contributors!
```

### 2. Create Release Candidate

#### Build RC

```bash
# Tag release candidate
git tag -a vX.Y.Zrc1 -m "Apache Superset X.Y.Z RC1"
git push upstream vX.Y.Zrc1

# Build source distribution
python setup.py sdist

# Build wheel
python setup.py bdist_wheel

# Sign artifacts
gpg --armor --detach-sig dist/apache-superset-X.Y.Zrc1.tar.gz
```

#### Upload to staging

```bash
# Upload to Apache staging
svn co https://dist.apache.org/repos/dist/dev/superset
cd superset
mkdir X.Y.Zrc1
cp /path/to/dist/* X.Y.Zrc1/
svn add X.Y.Zrc1
svn commit -m "Add Apache Superset X.Y.Z RC1"
```

### 3. Voting Process

#### Call for Vote Email

Send to dev@superset.apache.org:

```
Subject: [VOTE] Release Apache Superset X.Y.Z RC1

Hi all,

I'd like to call a vote to release Apache Superset version X.Y.Z RC1.

The release candidate:
- Git tag: vX.Y.Zrc1
- Git hash: abc123def456
- Source: https://dist.apache.org/repos/dist/dev/superset/X.Y.Zrc1/

Resources:
- Release notes: [link]
- CHANGELOG: [link]
- PR list: [link]

The vote will be open for at least 72 hours.

[ ] +1 approve
[ ] +0 no opinion
[ ] -1 disapprove (and reason why)

Thanks,
[Your name]
```

#### Voting Rules

- **Duration**: Minimum 72 hours
- **Required**: 3 +1 votes from PMC members
- **Veto**: Any -1 vote must be addressed

#### Testing Checklist

```markdown
- [ ] Source builds successfully
- [ ] Docker image builds
- [ ] Basic functionality works
- [ ] No critical bugs
- [ ] License check passes
- [ ] Security scan clean
```

### 4. Release Approval

#### Tally Votes

```
Subject: [RESULT][VOTE] Release Apache Superset X.Y.Z RC1

The vote to release Apache Superset X.Y.Z RC1 has passed.

+1 votes (binding):
- PMC Member 1
- PMC Member 2
- PMC Member 3

+1 votes (non-binding):
- Contributor 1
- Contributor 2

0 votes:
- None

-1 votes:
- None

Thank you to everyone who tested and voted!
```

### 5. Perform Release

#### Promote RC to Release

```bash
# Tag final release
git tag -a vX.Y.Z -m "Apache Superset X.Y.Z"
git push upstream vX.Y.Z

# Move from dev to release
svn mv https://dist.apache.org/repos/dist/dev/superset/X.Y.Zrc1 \
       https://dist.apache.org/repos/dist/release/superset/X.Y.Z
```

#### Publish to PyPI

```bash
# Upload to PyPI
python -m twine upload dist/*X.Y.Z*
```

#### Build Docker Images

```bash
# Build and push Docker images
docker build -t apache/superset:X.Y.Z .
docker push apache/superset:X.Y.Z
docker tag apache/superset:X.Y.Z apache/superset:latest
docker push apache/superset:latest
```

### 6. Post-Release Tasks

#### Update Documentation

```bash
# Update docs version
cd docs
# Update docusaurus.config.js with new version
npm run build
```

#### Announcement Email

Send to announce@apache.org, dev@superset.apache.org:

```
Subject: [ANNOUNCE] Apache Superset X.Y.Z Released

The Apache Superset team is pleased to announce the release of
Apache Superset X.Y.Z.

Apache Superset is a modern data exploration and visualization platform.

This release includes [number] commits from [number] contributors.

Highlights:
- Feature 1
- Feature 2
- Bug fixes and improvements

Download: https://superset.apache.org/docs/installation/
Release Notes: https://github.com/apache/superset/releases/tag/vX.Y.Z
PyPI: https://pypi.org/project/apache-superset/
Docker: docker pull apache/superset:X.Y.Z

Thanks to all contributors who made this release possible!

The Apache Superset Team
```

#### Update GitHub Release

```bash
# Create GitHub release
gh release create vX.Y.Z \
  --title "Apache Superset X.Y.Z" \
  --notes-file RELEASE_NOTES.md
```

## For Contributors

### During Feature Freeze

#### What's Allowed

- βœ… Bug fixes
- βœ… Documentation updates
- βœ… Test improvements
- βœ… Security fixes

#### What's Not Allowed

- ❌ New features
- ❌ Major refactoring
- ❌ Breaking changes
- ❌ Risky changes

### Testing RCs

#### How to Test

```bash
# Install RC from staging
pip install https://dist.apache.org/repos/dist/dev/superset/X.Y.Zrc1/apache-superset-X.Y.Zrc1.tar.gz

# Or use Docker
docker pull apache/superset:X.Y.Zrc1
```

#### What to Test

- Your use cases
- New features mentioned in release notes
- Upgrade from previous version
- Database migrations
- Critical workflows

#### Reporting Issues

```markdown
Found issue in RC1:

- Description: [what's wrong]
- Steps to reproduce: [how to trigger]
- Impact: [blocker/major/minor]
- Suggested fix: [if known]
```

### CHANGELOG Maintenance

#### Format

```markdown
## X.Y.Z (YYYY-MM-DD)

### Features

- feat: Description (#PR_NUMBER)

### Fixes

- fix: Description (#PR_NUMBER)

### Breaking Changes

- BREAKING: Description (#PR_NUMBER)
  Migration: Steps to migrate
```

#### Generating CHANGELOG

```bash
# Use git log to generate initial list
git log --oneline vX.Y-1.Z..vX.Y.Z | grep -E "^[a-f0-9]+ (feat|fix|perf|refactor|docs)"

# Group by type and format
```

## Breaking Changes Process

### Documentation Required

#### UPDATING.md Entry

````markdown
# X.Y.Z

## Breaking Change: [Title]

### Description

What changed and why.

### Before

```python
# Old way
old_function(param1, param2)
```
````

### After

```python
# New way
new_function(param1, param2, param3)
```

### Migration Steps

1. Update your code to...
2. Run migration script...
3. Test that...

````

### Deprecation Process

1. **Version N**: Mark as deprecated
   ```python
   @deprecated(version="3.0.0", remove_in="4.0.0")
   def old_function():
       warnings.warn("Use new_function instead", DeprecationWarning)
````

2. **Version N+1**: Keep deprecated with warnings

3. **Version N+2**: Remove completely

## Security Releases

### Expedited Process

- No RC required for critical security fixes
- Coordinate with security@apache.org
- Embargo period may apply
- CVE assignment through ASF security team

### Security Advisory Template

```markdown
CVE-YYYY-XXXXX: [Title]

Severity: [Critical/High/Medium/Low]
Affected Versions: < X.Y.Z
Fixed Version: X.Y.Z

Description:
[Vulnerability description]

Mitigation:
[How to fix or work around]

Credit:
[Reporter name/organization]
```

## Resources

### Internal

- [Apache Release Policy](https://www.apache.org/legal/release-policy.html)
- [Superset Release History](https://github.com/apache/superset/releases)
- [Version Strategy Discussion](https://github.com/apache/superset/discussions)

### Tools

- [Release Scripts](https://github.com/apache/superset/tree/master/scripts/release)
- [Superset Repository Scripts](https://github.com/apache/superset/tree/master/scripts)

Next: Return to [Contributing Overview](./overview.md)