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

jobspec: remove HCL1 support #23912

Merged
merged 1 commit into from
Sep 5, 2024
Merged

jobspec: remove HCL1 support #23912

merged 1 commit into from
Sep 5, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented Sep 4, 2024

This changeset removes support for parsing jobspecs via the long-deprecated HCLv1.

Fixes: #20195
Ref: https://hashicorp.atlassian.net/browse/NET-10220

@tgross tgross added this to the 1.9.0 milestone Sep 4, 2024
tgross added a commit that referenced this pull request Sep 4, 2024
In Nomad 1.9.0 we're removing support for HCLv1. This has been long deprecated,
but this changeset adds warnings to the command line and package documentation
to make it that much more obvious.

Ref: #23912
Ref: #20195
tgross added a commit that referenced this pull request Sep 4, 2024
In Nomad 1.9.0 we're removing support for HCLv1. This has been long deprecated,
but this changeset adds warnings to the command line and package documentation
to make it that much more obvious.

Ref: #23912
Ref: #20195
tgross added a commit that referenced this pull request Sep 4, 2024
In Nomad 1.9.0 we're removing support for HCLv1. This has been long deprecated,
but this changeset adds warnings to the command line and package documentation
to make it that much more obvious.

Ref: #23912
Ref: #20195
@tgross tgross marked this pull request as ready for review September 4, 2024 18:34
Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure to mention it in version specific upgrade docs and release notes too.

🎉 🙇 Very excited to finally remove this. A whopping 193KB off the make dev binary as a bonus.

gsa
┌─────────────────────────────────────────────────────────────────────────────┐
│ Diff between nomad-36522ec632 and nomad-remove-hcl1-jobspec                 │
├─────────┬───────────────────────────────────┬──────────┬──────────┬─────────┤
│ PERCENT │ NAME                              │ OLD SIZE │ NEW SIZE │ DIFF    │
├─────────┼───────────────────────────────────┼──────────┼──────────┼─────────┤
│ +0.00%  │ google.golang.org/api             │ 653 kB   │ 653 kB   │ +30 B   │
│ +0.00%  │ github.com/fsouza/go-dockerclient │ 295 kB   │ 295 kB   │ +10 B   │
│ -0.02%  │ github.com/morikuni/aec           │ 18 kB    │ 18 kB    │ -4 B    │
│ -0.01%  │ github.com/digitalocean/godo      │ 260 kB   │ 260 kB   │ -28 B   │
│ -0.02%  │ -autogenerated-                   │ 3.3 MB   │ 3.3 MB   │ -520 B  │
│ -0.74%  │ github.com/hashicorp/nomad        │ 16 MB    │ 16 MB    │ -122 kB │
├─────────┼───────────────────────────────────┼──────────┼──────────┼─────────┤
│ -0.07%  │ .debug_rnglists                   │ 1.5 kB   │ 1.5 kB   │ -1 B    │
│ -0.03%  │ .debug_loclists                   │ 10 kB    │ 10 kB    │ -3 B    │
│ -0.00%  │ .typelink                         │ 138 kB   │ 138 kB   │ -4 B    │
│ -0.01%  │ .noptrdata                        │ 335 kB   │ 335 kB   │ -32 B   │
│ -0.05%  │ .data                             │ 322 kB   │ 322 kB   │ -168 B  │
│ -0.08%  │ .symtab                           │ 2.8 MB   │ 2.8 MB   │ -2.3 kB │
│ -0.26%  │ .debug_frame                      │ 886 kB   │ 883 kB   │ -2.3 kB │
│ -0.07%  │ .strtab                           │ 7.4 MB   │ 7.4 MB   │ -5.2 kB │
│ -0.51%  │ .debug_ranges                     │ 1.1 MB   │ 1.1 MB   │ -5.6 kB │
│ -0.20%  │ .debug_line                       │ 3.8 MB   │ 3.8 MB   │ -7.5 kB │
│ -0.05%  │ .rodata                           │ 20 MB    │ 20 MB    │ -11 kB  │
│ -0.18%  │ .debug_info                       │ 7.3 MB   │ 7.3 MB   │ -13 kB  │
│ -0.38%  │ .debug_loc                        │ 4.6 MB   │ 4.5 MB   │ -18 kB  │
├─────────┼───────────────────────────────────┼──────────┼──────────┼─────────┤
│ -0.18%  │ nomad-36522ec632                  │ 106 MB   │ 106 MB   │ -193 kB │
│         │ nomad-remove-hcl1-jobspec         │          │          │         │
└─────────┴───────────────────────────────────┴──────────┴──────────┴─────────┘

This changeset removes support for parsing jobspecs via the long-deprecated
HCLv1.

Fixes: #20195
Ref: https://hashicorp.atlassian.net/browse/NET-10220
tgross added a commit that referenced this pull request Sep 5, 2024
In Nomad 1.9.0 we're removing support for HCLv1. This has been long deprecated,
but this changeset adds warnings to the command line and package documentation
to make it that much more obvious.

Ref: #23912
Ref: #20195
@tgross tgross merged commit a9beef7 into main Sep 5, 2024
20 checks passed
@tgross tgross deleted the remove-hcl1-jobspec branch September 5, 2024 13:02
tgross added a commit that referenced this pull request Sep 9, 2024
HCLv1 support was removed entirely in #23912, but I missed this one test and
documentation reference.
tgross added a commit that referenced this pull request Sep 9, 2024
HCLv1 support was removed entirely in #23912, but I missed this one test and
documentation reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intent to Deprecate HCLv1
2 participants