Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release-branch deploys should be production quality #36333

Closed
chalin opened this issue Aug 26, 2022 · 12 comments
Closed

Release-branch deploys should be production quality #36333

chalin opened this issue Aug 26, 2022 · 12 comments
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@chalin
Copy link
Contributor

chalin commented Aug 26, 2022

Problem: currently, release-branch deploys are not "production quality". For example visit https://v1-24.docs.kubernetes.io/docs/home/ and view the page source. You'll see that the page source:

  • Isn't minified
  • Assets aren't finger printed -- e.g.:
    <link href="/scss/main.css" rel="stylesheet">
    <script src="/js/script.js"></script>

But release-branch deploys are officially supported documentation, and should be minified and assets finger printed (to avoid caching issues when assets are updated). The only thing that we don't want, as far as I understand, is for these deploys to be indexed. Is that correct @sftim?

Proposed Solution: recognized the officially supported release-branch deploys as "production" deploys, but with indexing turned off.

/cc @nate-double-u

@chalin chalin added the kind/bug Categorizes issue or PR as related to a bug. label Aug 26, 2022
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Aug 26, 2022
@bishal7679
Copy link
Member

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 27, 2022
@sftim
Copy link
Contributor

sftim commented Oct 6, 2022

/area web-development
/priority backlog

Minifying assets for older docs sounds useful. However, there are other issues I'd prefer us to prioritize - for example, #23518

@k8s-ci-robot k8s-ci-robot added area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes priority/backlog Higher priority than priority/awaiting-more-evidence. labels Oct 6, 2022
@chalin
Copy link
Contributor Author

chalin commented Oct 27, 2022

You're right @sftim, when seen in that context. Let me offer a more complete formulation (since I forgot to include the full context in this issue -- analytics migration -- taking it as implicit).

@chalin
Copy link
Contributor Author

chalin commented Oct 27, 2022

@sftim @nate-double-u - Ok, here's a more complete (hopefully better) picture of the situation as I see it.

When the website is built in production mode, we get the following by default from Hugo/Docsy:

  1. Site indexing is permitted
  2. Analytics is enabled
  3. Artifacts are minified
  4. Assets are finger printed

We want:

  • All of the above features for the main deploy, and
  • All except (1) for release-branch deploys

PR #36334 proposes to:

  • Build release-branch deploys in production mode and
  • Selectively disable (1) based on the value of the config paramdeprecated set to false for release-branches

This seems like an approach that is more compatible with Hugo/Docsy, and would require less code customization, as compared to continuing to build release-branches in non-production mode and then selectively turning on three features (2 to 4).

Hopefully this makes the benefits of #36334 clearer.

Thoughts?

@chalin
Copy link
Contributor Author

chalin commented Jan 25, 2023

@reylejano - during the 01/10 SIG docs meeting we discussed this issue among others. It's the previous comment in particular that I'd like your feedback on. Thanks! /cc @a-mccarthy @nate-double-u

@k8s-triage-robot
Copy link

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jan 25, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 24, 2024
@chalin
Copy link
Contributor Author

chalin commented Apr 24, 2024

I still think that this is relevant. Waiting on feedback from #36333 (comment).

@sftim
Copy link
Contributor

sftim commented Apr 24, 2024

Minifying assets for older docs sounds useful. However, there are other issues I'd prefer us to prioritize - for example, #23518

This is still my opinion. However, we're also looking to revisit the approach for serving older docs. If we do that, I expect that this request gets delivered implicitly.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 24, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants