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

Prepare for 2.16.0 release #3820

Merged
merged 140 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
79e73f5
Remove node 14 support
1000TurquoisePogs Oct 20, 2023
fd0831c
Update node.sh
1000TurquoisePogs Oct 20, 2023
013c2b8
Update cicd-test.yml
1000TurquoisePogs Oct 20, 2023
4ed7caf
Update cicd-test-readme.md
1000TurquoisePogs Oct 20, 2023
4338f3c
Update make_matrix.sh
1000TurquoisePogs Oct 20, 2023
4a31ab0
Update node.sh
1000TurquoisePogs Oct 20, 2023
6afc567
Tracing messages with correct function names (#3619)
Martin-Zeithaml Oct 20, 2023
5bb6282
Replace introspect URL with JWK for OIDC validation (#3614)
taban03 Oct 20, 2023
9f5c095
Ensure workflow files are in ascii in final PAX (#3593)
MarkAckert Oct 20, 2023
bfc4f26
Formatting in general pattern (#3615)
Martin-Zeithaml Oct 20, 2023
9c584f9
add new PTF numbers
ojcelis Oct 24, 2023
1cf6d44
Promote PTF after release v2.12.0
zowe-robot Oct 24, 2023
02d9cc9
Merge pull request #3631 from zowe/users/robot/promote-ptf-from-51
ojcelis Oct 25, 2023
2e0e28d
Merge branch 'v2.x/staging' into users/oscar/newv2PTFnumbers
ojcelis Oct 25, 2023
ea362ce
updated PTF bucket
ojcelis Oct 25, 2023
7022b62
Merge pull request #3628 from zowe/users/oscar/newv2PTFnumbers
ojcelis Oct 25, 2023
f842322
Update cicd-test-readme.md
1000TurquoisePogs Oct 25, 2023
250e53a
Update cicd-test.yml
1000TurquoisePogs Oct 25, 2023
b31828d
update zowe version to next release
ojcelis Oct 25, 2023
75414a8
build: remove node v14/v16 refs; cicd defaults to v16
MarkAckert Oct 25, 2023
87ba685
Merge branch 'v2.x/staging' into chore/v2/remove-node14
MarkAckert Oct 25, 2023
312bda6
zwe diagnose running under configmgr
Martin-Zeithaml Oct 27, 2023
6fad6ca
Make example-zowe.yaml certificate scenarios more accurate
DivergentEuropeans Nov 16, 2023
9aef627
Add global and component level network configuration options (#3509)
timgerstel Nov 17, 2023
b2b7b02
Build: fix failing chown from build step (#3658)
MarkAckert Nov 20, 2023
386e8ed
Merge branch 'v2.x/staging' into chore/v2/remove-node14
ojcelis Nov 21, 2023
3003b42
Merge pull request #3620 from zowe/chore/v2/remove-node14
ojcelis Nov 21, 2023
e982bc8
Merge branch 'v2.x/staging' into clarification-example-zowe
DivergentEuropeans Nov 22, 2023
1a25ee1
Merge pull request #3655 from zowe/clarification-example-zowe
ojcelis Nov 22, 2023
4bd0bf8
zzow system updates (#3651)
MarkAckert Nov 22, 2023
dca2a7e
Update TLS settings (#3659)
1000TurquoisePogs Nov 27, 2023
6cfe733
Add getesm to build (#3663)
1000TurquoisePogs Nov 28, 2023
1190cbb
Reduce string fields by introducing better typing (#3617)
1000TurquoisePogs Nov 28, 2023
d6234a2
build: update zzow matrix generator (#3665)
MarkAckert Nov 28, 2023
846d8f0
Added more clarification to example-zowe.yaml (#3660)
DivergentEuropeans Nov 28, 2023
98048f1
Add zosmf scheme option for at-tls in api ml (#3661)
pablocarle Nov 29, 2023
c436e5e
Revert "Reduce string fields by introducing better typing (#3617)" (#…
MarkAckert Dec 1, 2023
7810be6
Typo in comment (#3679)
Martin-Zeithaml Dec 6, 2023
ceb2663
Promote PTF after release v2.13.0
zowe-robot Dec 14, 2023
8fc6591
Merge pull request #3689 from zowe/users/robot/promote-ptf-from-55
MarkAckert Dec 14, 2023
c389faf
update manifest version
MarkAckert Dec 14, 2023
b3b76b7
Update version to 2.14.0 (#3691)
struga0258 Dec 19, 2023
8c22024
Add return code to zis plugin install
struga0258 Jan 8, 2024
832bd26
add typescript too
struga0258 Jan 8, 2024
62415b5
Schema missing in staging
struga0258 Jan 8, 2024
ca1841e
Merge pull request #3697 from zowe/struga0258-patch-14
MarkAckert Jan 8, 2024
2a9da35
Merge branch 'v2.x/staging' into user/markackert/staging-to-2.14.0
MarkAckert Jan 9, 2024
3848ac7
Merge pull request #3690 from zowe/user/markackert/staging-to-2.14.0
MarkAckert Jan 9, 2024
78f3f65
Fix components not being enabled or disabled at ha instance level (#3…
1000TurquoisePogs Jan 9, 2024
a3bf0d2
build: sigstore sign build artifacts
MarkAckert Jan 22, 2024
9354d7c
build: add id-token permissions for sigstore
MarkAckert Jan 22, 2024
95eefda
build: discrete permissions cont..
MarkAckert Jan 22, 2024
1cde352
build: discrete permissions cont... PR
MarkAckert Jan 22, 2024
d3a3531
build: update contents permissions (ack locks)
MarkAckert Jan 22, 2024
443e4a0
upgrade cicd-test to node18
MarkAckert Jan 25, 2024
b398038
Promote PTF after release v2.14.0
zowe-robot Jan 26, 2024
ce43251
Merge pull request #3717 from zowe/users/robot/promote-ptf-from-59
MarkAckert Jan 26, 2024
453dd69
update manifest to 2.15.0
MarkAckert Jan 26, 2024
b6e3d80
Merge branch 'v2.x/staging' into user/markackert/sigstore-zowe-pax
MarkAckert Jan 26, 2024
34c2c30
bin/libs/string.sh: trim update
Martin-Zeithaml Jan 31, 2024
ae070bb
Merge pull request #3710 from zowe/user/markackert/sigstore-zowe-pax
MarkAckert Feb 1, 2024
8ad163e
Update zwe for handeling missing parms
Martin-Zeithaml Feb 6, 2024
d8b2652
Treat special chars
Martin-Zeithaml Feb 6, 2024
4bec72e
Too many slashes
Martin-Zeithaml Feb 6, 2024
686cd79
Minor fixes
Martin-Zeithaml Feb 6, 2024
24e90c6
Merge pull request #3727 from zowe/Martin-Zeithaml-patch-1
MarkAckert Feb 6, 2024
74b26d8
Merge branch 'v2.x/staging' into v2.x/bugfix/Dollar
MarkAckert Feb 6, 2024
4c4df13
Merge branch 'v2.x/staging' into v2.x/bugfix/trim
MarkAckert Feb 6, 2024
8bbb8bc
Merge pull request #3721 from zowe/v2.x/bugfix/trim
MarkAckert Feb 6, 2024
af0e6a0
Switch ChangeTag to sh
Martin-Zeithaml Feb 7, 2024
9e382c7
Merge branch 'v2.x/staging' into v2.x/bugfix/Dollar
Martin-Zeithaml Feb 7, 2024
dc66beb
Regex update
Martin-Zeithaml Feb 8, 2024
d1abd3e
Revert changes
Martin-Zeithaml Feb 8, 2024
0d461b6
Get volume
Martin-Zeithaml Feb 9, 2024
f77aba5
Support '$' and '-' in ds name
Martin-Zeithaml Feb 9, 2024
406e1bc
Escape prefix
Martin-Zeithaml Feb 12, 2024
d52a333
Use the zos function for getFileEncoding (#3642)
Martin-Zeithaml Feb 14, 2024
e85771c
Merge branch 'v2.x/staging' into v2.x/feature/diagnose
MarkAckert Feb 14, 2024
1f334af
update changelog to align with 2.15.0
MarkAckert Feb 14, 2024
e9156fa
Merge pull request #3637 from zowe/v2.x/feature/diagnose
MarkAckert Feb 14, 2024
6f67af4
Merge branch 'v2.x/staging' into v2.x/bugfix/Dollar
MarkAckert Feb 14, 2024
2d8b04d
TSS: Detect zOSMF Root CA (#3725)
Martin-Zeithaml Feb 15, 2024
e237272
Escape dataset in copyMvsToUss
Martin-Zeithaml Feb 15, 2024
274a307
Merge branch 'v2.x/staging' into v2.x/bugfix/Dollar
MarkAckert Feb 15, 2024
f4f61a7
Merge pull request #3728 from zowe/v2.x/bugfix/Dollar
MarkAckert Feb 20, 2024
1646329
add backtick to <empty> (#3736)
MarkAckert Feb 21, 2024
468aeb3
allow custom properties in components.zowe (#3735)
1000TurquoisePogs Feb 21, 2024
70003f4
Add ESM to support details (#3749)
Martin-Zeithaml Mar 6, 2024
2a0cd42
Promote PTF after release v2.15.0 (#3754)
zowe-robot Mar 8, 2024
abadb12
set manifest to 2.15.1 (#3755)
MarkAckert Mar 9, 2024
db377be
Added new PTF numbers for v2 (#3757)
ManjuVNair133 Mar 13, 2024
a72d2e8
User/pavelzlatnik/fix zweconf yaml generator (#3761)
muzikovam Mar 18, 2024
5bdd3b4
add different message ids for VSAM errors (#3760)
taban03 Mar 19, 2024
fa2ec5b
Use labels to adjust CI behavior (#3766)
MarkAckert Mar 22, 2024
bef14be
Handle null to blank for configmgr update
1000TurquoisePogs Apr 2, 2024
f99515c
Merge pull request #3785 from zowe/bugfix/v2/configmgr-null
MarkAckert Apr 2, 2024
b38395d
Update ZE references to use new repo name zowe-explorer-vscode
t1m0thyj Apr 5, 2024
e8a54e8
Regression fix on network vars (#3784)
1000TurquoisePogs Apr 8, 2024
a2f4c04
Remove node usage in startup when using configmgr (#3756)
1000TurquoisePogs Apr 8, 2024
2235990
Fix heappools64 setting (#3799)
1000TurquoisePogs Apr 15, 2024
5cc7b41
Merge branch 'v2.x/staging' into chore/rename-ze-repo-v2
MarkAckert Apr 15, 2024
31a2894
simplify run_test condition
MarkAckert Mar 22, 2024
a4f02a3
update run-test conditional and add debug stmt
MarkAckert Mar 26, 2024
167ed34
another debug stmt
MarkAckert Mar 26, 2024
2caf38a
debug stmt
MarkAckert Mar 26, 2024
a2508bc
more debug
MarkAckert Mar 26, 2024
e1d0ba4
remove debug statements
MarkAckert Mar 26, 2024
a62a2d1
debug: dump context
MarkAckert Mar 26, 2024
6805243
Handle null to blank for configmgr update
1000TurquoisePogs Apr 2, 2024
ca0b2ab
Revert "debug: dump context"
MarkAckert Apr 15, 2024
33e77ab
refactor issue trigger into a separate action
MarkAckert Apr 15, 2024
156a98b
Merge branch 'v2.x/staging' into user/markackert/ci-label-behavior-up…
MarkAckert Apr 15, 2024
b36340f
pswi build with pre-built smp/e
MarkAckert Mar 22, 2024
6b84340
missing space
MarkAckert Mar 22, 2024
5f6b657
missed another space
MarkAckert Mar 22, 2024
efab2c5
make AZWE source configurable
MarkAckert Mar 22, 2024
3c0bdf7
Cherry-pick PSWI build updates
MarkAckert Mar 26, 2024
132d523
remove debug from comment-trigger
MarkAckert Apr 16, 2024
3753c0b
quick debug statements
MarkAckert Apr 16, 2024
fe00442
more label debug
MarkAckert Apr 16, 2024
fceb36e
remove debug, output looks good
MarkAckert Apr 16, 2024
1b3f629
Merge pull request #3772 from zowe/user/markackert/ci-label-behavior-…
MarkAckert Apr 16, 2024
80475f8
Merge branch 'v2.x/staging' into chore/rename-ze-repo-v2
MarkAckert Apr 16, 2024
3cfb5d9
update cicd-comment-trigger
MarkAckert Apr 16, 2024
a4a722e
Merge pull request #3802 from zowe/user/markackert/trigger-fix
MarkAckert Apr 16, 2024
ff3c131
fix incorrect variable
MarkAckert Apr 16, 2024
534bd90
Merge branch 'v2.x/staging' into chore/rename-ze-repo-v2
MarkAckert Apr 16, 2024
3591972
Merge pull request #3788 from zowe/chore/rename-ze-repo-v2
MarkAckert Apr 16, 2024
f0fcfec
debug stmt for cicd-trigger
MarkAckert Apr 16, 2024
efabac3
forgot to set output properly
MarkAckert Apr 16, 2024
5ce4af6
fix bad vars w/ comment-trigger
MarkAckert Apr 16, 2024
ebede03
debug pr labels from ci trigger
MarkAckert Apr 16, 2024
68bc64e
octokit is async
MarkAckert Apr 16, 2024
679e2c0
remove debug stmt
MarkAckert Apr 16, 2024
011ab28
Merge pull request #3803 from zowe/user/markackert/ci-trigger-fixes-p2
MarkAckert Apr 17, 2024
9ecc9be
Update the version
struga0258 Apr 17, 2024
4a8cc0e
Merge pull request #3804 from zowe/struga0258-patch-16
MarkAckert Apr 17, 2024
2d56f3e
manifest sourceDep check worflow (#3806)
MarkAckert Apr 18, 2024
5c0d368
Reduce shell count by one when configmgr used by using pipe directly …
1000TurquoisePogs Apr 30, 2024
55e4d34
Merge branch 'v2.x/staging' into user/markackert/v2.16-staging-to-rc
MarkAckert May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions .github/scripts/manifest_verification/check_sources.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
// This script checks that the manifest sourceDependencies are reachable.

const core = require('@actions/core');
const fs = require('fs-extra');

const results = {
success: 'found_matching_commit_or_tag',
warn: 'found_matching_branch',
fail: 'no_matching_tag_or_branch'
}

function is_sha(item) {
return /^[0-9a-f]{7}$/.test(item) || /^[0-9a-f]{40}$/.test(item)
}

function isRcOrMaster(branchName) {
return /v[0-9]\.x\/(rc|master)/i.test(branchName);
}

async function main() {

if (process.env['BASE_REF'] == null) {
core.setFailed('This script requires the BASE_REF env to bet set.');
return;
}

if (process.env['GITHUB_TOKEN'] == null) {
core.setFailed('This script requires the GITHUB_TOKEN env to be set.');
return;
}

const baseRef = process.env['BASE_REF'].trim();

const github = require('@actions/github')
const octokit = github.getOctokit(process.env['GITHUB_TOKEN']);

// expect script to be run from repo root
const sourceDeps = fs.readJSONSync('./manifest.json.template').sourceDependencies;

/**
* Source dep structure is below:
*
* [
* {
* "componentGroup": "Performance Timing Utility",
* "entries": [{
* "repository": "perf-timing",
* "tag": "master",
* "destinations": ["Zowe CLI Package"]
* }]
* },
* { ...same structure as prior...}
* ]
*/

const analyzedRepos = [];

for (const dep of sourceDeps) {
for (const entry of dep.entries) {
const repo = entry.repository;
const tag = entry.tag;

// octokit ref/commit_sha APIs work for branches/tags, and we only want to test when its an actual hash
if (is_sha(tag)) {
const isCommit = await octokit.rest.repos.getCommit({
owner: 'zowe',
repo: repo,
ref: tag
}).then((resp) => {
if (resp.status < 400) {
return true;
}
return false;
})

// Pinning repos with a commit is ok
if (isCommit) {
analyzedRepos.push({repository: repo, tag: tag, result: results.success});
continue;
}
}

// If not a commit, check repo tags
const tags = await octokit.rest.repos.listTags({
owner: 'zowe',
repo: repo,
}).then((resp) => {
if (resp.status < 400) {
return resp.data;
}
return [];
})

const knownTag = tags.find((item) => item.name === tag);
if (knownTag != null && knownTag.name.trim().length > 0) {
analyzedRepos.push({repository: repo, tag: tag, result: results.success});
continue;
}

// if we didn't find tag, look at branches
// 2 REST Requests, unset protected was operating as protected=false
const protBranches = await octokit.rest.repos.listBranches({
owner: 'zowe',
repo: repo,
protected: true
}).then((resp) => {
if (resp.status < 400) {
return resp.data;
}
return [];
})
const unProtBranches = await octokit.rest.repos.listBranches({
owner: 'zowe',
repo: repo,
protected: false
}).then((resp) => {
if (resp.status < 400) {
return resp.data;
}
return [];
})

const branches = [...protBranches, ...unProtBranches];

const knownBranch = branches.find((item) => item.name === tag);
if (knownBranch != null && knownBranch.name.trim().length > 0) {
analyzedRepos.push({repository: repo, tag: tag, result: results.warn});
continue;
}

// if we didn't find commit, tag or branch
analyzedRepos.push({repository: repo, tag: tag, result: results.fail});
}
}

let didFail = false;

const failRepos = analyzedRepos.filter((item) => item.result === results.fail);
if (failRepos != null && failRepos.length > 0) {
core.warning('There are manifest sourceDependencies without a matching tag or branch. Review the output and update the manifest.');
core.warning('The following repositories do not have a matching commit hash, tag or branch: ' + JSON.stringify(failRepos, null, {indent: 4}))
didFail = true;
}

const warnRepos = analyzedRepos.filter((item) => item.result === results.warn) ;
if (warnRepos != null && warnRepos.length > 0) {
if (isRcOrMaster(baseRef)) {
core.warning('Merges to RC and master require tags or commit hashes instead of branches for sourceDependencies.')
didFail = true
}
core.warning('The following repositories have a branch instead of tag: ' + JSON.stringify(warnRepos, null, {indent: 4}))
}

if (didFail) {
core.setFailed('The manifest validation was not successful. Review the warning output for more details.');
}

}
main()
Loading
Loading