Lines Matching full:commit
9 The scripts take 2 optional args COMMIT and BASE_COMMIT, which tell the scripts
10 which commit to use as current commit and as base for comparing, respectively.
11 The script can take any SHA commit recognized for git.
13 COMMIT is the commit to compare against BASE_COMMIT.
17 BASE_COMMIT is the commit used as base to compare results.
21 HEAD~1 if we don't have changes and we have default COMMIT.
22 COMMIT~1 if we have a valid COMMIT.
75 parser.add_argument('-b', '--base-commit', default=None,
76 help="Commit ID to use as base for footprint "
77 "compare. Default is parent current commit."
79 parser.add_argument('-c', '--commit', default=None,
80 help="Commit ID to use compare footprint against base. "
84 def get_git_commit(commit): argument
86 proc = subprocess.Popen('git rev-parse %s' % commit, stdout=subprocess.PIPE,
92 def sanity_results_filename(commit=None, cwd=os.environ.get('ZEPHYR_BASE')): argument
93 if not commit:
96 if commit == RELEASE_DATA:
99 file_name = "%s.csv" % commit
103 def git_checkout(commit, cwd=os.environ.get('ZEPHYR_BASE')): argument
109 proc = subprocess.Popen('git reset %s --hard' % commit,
119 def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), argument
122 output_file = sanity_results_filename(commit)
125 logger.debug('Sanity (%s) %s' %(commit, cmd))
134 logger.error("Couldn't build footprint apps in commit %s" % commit)
136 raise Exception("Couldn't build footprint apps in commit %s" % commit)
138 def run_footprint_build(commit=None): argument
139 logging.debug("footprint build for %s" % commit)
140 if not commit:
153 if git_checkout(commit, tmp_location):
154 run_sanity_footprint(commit, tmp_location)
168 def get_footprint_results(commit=None): argument
169 sanity_file = sanity_results_filename(commit)
170 if (not os.path.exists(sanity_file) or not commit) and commit != RELEASE_DATA:
171 run_footprint_build(commit)
214 logger.error("Cannot resolve base commit")
293 build_history(args.base_commit, args.commit)